servlets - How to render a Vaadin view from backend -


in application, remote client making restful call backend method,

@post response lookup(@context httpservletrequest request).

then, if request parameters satisfy conditions, vaadin view, resultview supposed rendered client's browser. in other cases, lookup() returns without confrontation myui.

this boils down creating ui instance backend(?) how this? tried (1) below , found out (2).

1.) put @post response lookup(@context httpservletrequest request) myui. this, added myui @path("/lookup"). change made myui. following annotations on myui now:

@suppresswarnings("serial") @theme("mytheme") @path("/lookup")   

i havent changed web.xml mapping restful calls:

enter image description here

this didn't show errors. however, didn't invoke lookup().

2.) make uiprovider create ui instance suggested in this post.

vaadin @push wouldn't work this, have invoke ui explicitly.

this may naive question, i'm backend developer-- not familiar servlet containers , first time vaadin.

tia


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -