Re: How to refresh ListView on ModalWindow
Hi Sven, Thank you for suggestion. This works. Best, Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-ListView-on-ModalWindow-tp2341639p2398942.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Expire session
Hello! Does anybody know, which is the best way to expire wicket session? I have these lines in web.xml and they seem to affecft nothing: 10 Best regards, Sigmar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Expire session
Got problem solved. Also made it configurable per-user: http://www.weask.us/entry/page-expiration-wicket Still wondering, how to disable concurrent logins with wicket-auth-roles... On Sun, Aug 29, 2010 at 11:22 PM, Sigmar Muuga wrote: > Hello! > > Does anybody know, which is the best way to expire wicket session? > > I have these lines in web.xml and they seem to affecft nothing: > > > 10 > > > Best regards, > Sigmar > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: EXception handling in Wicket
arunarapole wrote: > > Thank you for replay i am very glad you have sent me the sample code thank > you so much > > My problem is i have to handle SQLException and only message to be > display > in hidden field same webpage > > do u have any idea regarding this > > Aruna > > It depends. Is your exception thrown in an ajax call or a form submit? In your WebRequestCycle.onRuntimeException you have two parameters: page on which exception was thrown and which exception was thrown. If your runtime exception was SQLException then you can access any element on your page and set any value to it. Next you can update an element on page if it's AJAX or show this page again by returning updated page. You can get your ajax target this way: (AjaxRequestTarget)RequestCycle.get().getRequestTarget(). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EXception-handling-in-Wicket-tp2340439p2399426.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: EXception handling in Wicket
Antoine van Wel wrote: > > I think you should prevent that SQLException from happening in the first > place by validating the form input. > Then use a FeedbackPanel to display suitable error messages. Just google > for > example code with forms, it's basic stuff. > > Otherwise, create a FeedbackPanel on your page, put a try .. catch block > around your sql methods and in case of an exception, write to the > FeedbackPanel using error("your message") > > I agree with you, catching Runtime exceptions in WebRequestCycle should not be a part of normal workflow. I use this thing only to display critical failures information. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EXception-handling-in-Wicket-tp2340439p2399427.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Expire session
> Still wondering, how to disable concurrent logins with wicket-auth- > roles... Can't you cache the sessions and return the cached one from Application.newSession() if the same user logs in again? Or invalidate the old session? - Tor Iver