aja i see is more elgant and simple
On 10/31/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> ofcourse that should be return !isUserLoggedin()
>
> :)
> -Igor
>
>
>
>
> On 10/31/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > IMHO this isnt the right place for this kind of stuff
> > you can override isvisible() on the login panel and make it something like
> this:
> >
> > LoginPanel {
> > isVisible() { return isUserLoggedin(); }
> > }
> >
> > that way you dont even need to toggle it anywhere, its fully automatic and
> only shows up when it needs to.
> >
> > -Igor
> >
> >
> >
> >
> > On 10/31/05, pepone pepone <[EMAIL PROTECTED] > wrote:
> > > onBeginRequest ensure that login panel is reshow if session is not
> > > still alive in next request
> > >
> > > On 10/31/05, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > > > Well, it's true, but the problem I was heaving wasn't related to
> > > > > coupling between panels or anything, but it was the fact that
> somehow,
> > > > > though I set the panels to invisible in the submit handler, the page
> > > > > seem to ignore this fact until I reopen it.
> > > >
> > > >
> > > > What do you mean by "reopen" it?
> > > > The following works for me, it toggles between panels when the button
> is
> > > > pressed:
> > > >
> > > > public Index(final PageParameters parameters)
> > > > {
> > > > add(new TestPanel("a"));
> > > > add(new TestPanelB("b").setVisible(false));
> > > >
> > > > add(new Form("form") {
> > > > protected void onSubmit()
> > > > {
> > > > Component a=getPage().get("a");
> > > > a.setVisible(!a.isVisible());
> > > >
> > > > Component b=getPage().get("b");
> > > > b.setVisible (!b.isVisible());
> > > > }
> > > > });
> > > > }
> > > >
> > > > -Igor
> > > >
> > > >
> > >
> > >
> > > -------------------------------------------------------
> > > 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
> > > [email protected]
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
>
>
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user