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:
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
Post a Comment