Not to come across snide but of course I know how to set a component to
invisible. I need to know how to get the current page URL/URI as the
page loads - remember that the navigator is only a panel and can be
inside of many pages. Is this more clear?

Thanks for trying to help.

Michael

-----Original Message-----
From: David Leangen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2008 6:14 PM
To: users@wicket.apache.org
Subject: RE: Enabling compoents based on Wicket URI path?


> A little bit confused... perhaps I or you misunderstood. I'm using a
> textfield in the 'navigator' section of my site. So, if a particular
URL
> is being accessed (.../foo or .../bar) then I want to hide the
> textfield. Otherwise the navigator shows the textfield. Does that make
> more sense?

In any case, the way you would show/hide any component is by overriding
the isVisible method:

@Override public boolean isVisible()
{
    // do your test here
}

So you need some way of testing this. The way to do that is using
PageParameters with one of the IndexedCodingStrategies.

Make more sense? Or do you need more info?


Cheers,
David




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to