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?
Michael -----Original Message----- From: David Leangen [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2008 5:41 PM To: users@wicket.apache.org Subject: Re: Enabling compoents based on Wicket URI path? So essentially, you need some variable to hold state and based on the value of that variable, you show or hide a component, right? Just use an IndexedParamCodingStrategy. Does that make sense, or do you need more details? On Wed, 2008-07-02 at 11:12 -0700, Michael Mehrle wrote: > I need to hide a textfield based on the URI path of the page that's > being visited. For instance: > > > > http://www.mysite.com/app/foo (hide the field) > > http://www.mysite.com/app/bar (hide the field) > > > > http://www.mysite.com/app/* (any other path, show the field). > > > > I don't want to use the HTTP URI var since I would have to change that > everytime I change wicket URI paths. What approach would you guys > suggest? > > > > Thanks, > > > > Michael > --------------------------------------------------------------------- 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]