you can do this by simply switching the
visibility of the panels on and off in the onSubmit of
your form.
I tried it out and its working for me without any
problems.
Dipu
----- Original Message -----
From: "Dorel Vaida" <[EMAIL PROTECTED]>
Sent: Monday, October 31, 2005 9:43 AM
Subject: [Wicket-user] refreshing page
content
>
> I have a small problem with refreshing the page content and I don't know
> which is the best way to handle it.
>
> In short, I have a sign in panel to the left and after the user signs in
> I'd like to set it to invisible and display a "Welcome" label in another
> panel. The code is trivial, I just add to the page both the sign in
> panel and the panel containing the label and I set their visibility to
> true and false respectively based on session user is/is not null.
>
> What happens is that the signin panel/ welcome label remain the same
> after signing in, until I reenter the page by the way of clicking on the
> menu link which displays the page, but I'd like the refresh to be
> performed right after submission. It's like the setVisible(true/false)
> for both panels is not called until the next page rendering.
>
> Now I know I am missing something related to how components are rendered
> inside the page or something, but maybe someone can give me a hint.
>
> thanks
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course
> Free Certification Exam for All Training Attendees Through End of 2005
> Visit http://www.jboss.com/services/certification for more information
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>