Hi,

Is it possible to tell Wicket to redirect the HTTP request prior to the rendering phase of the current page? Last time I checked, setRedirectPage() only issues a redirect command after rendering.

I have a BookmarkablePage which lazily-generates database entries if it needs them. Igor mentioned a while back that Wicket's architecture is geared towards read-only Sessions during the constructor/rendering phase (i.e. all exceptions during this phase are fatal) and read/write Sessions during the HTTP-response-generating phase. Because of Hibernate's versioning mechanism, it is possible I will run into StaleObjectStateException while generating the necessary data and I will need to retry the entire operation.

What I am trying to do is if a user hits a BookmarkablePage that is missing data, a read/write Session is used to generate the data, then the response redirects the browser back to the same Page and retries the operation. In theory, the second time around we will have all necessary data and a read-only Session may be used.

        Is this possible under Wicket or should I file a RFE?

Thanks,
Gili
--
http://www.desktopbeautifier.com/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to