Sure, but it seems that that could be easily served by a custom component that wraps both a TextField and an Insert. The component decides which to render (or whether to render at all) based on a role property.
In your scenario, once you set the visible parameter to true you'd still need ifs to decide whether to simply show the value (Insert) OR show the value in a text box. It would work, I just think it can be done other ways. -Mike On 3/24/06, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > imagine you have a complicated (>60 components) page and different users > with different authorizations. > and you want to hide certain fields/information/possibilites for > interaction from users with lower authorizations. > instead of changing your template by adding Ifs you could just set the > visibility. if the requirements change > (User A may change field1, User B may no change field1, but can see it, > User C doesn't know anything about > field 1,...) you'd only have to set the visibility :) > > ... just my thoughts :) > > kris > > > > > > "Mike Snare" > <[EMAIL PROTECTED] > com> An > "Tapestry users" > 24.03.2006 12:38 <tapestry-user@jakarta.apache.org> > Kopie > > Bitte antworten Thema > an Re: Why IComponent does not > "Tapestry users" provide a setVisiable(boolean > <[EMAIL PROTECTED] visiable) method? > karta.apache.org> > > > > > > > > > > What does 'hidden' mean? If I'm writing a non-visual component (like > a scroll state tracker or an auto refresher) my component is already > hidden. Or do you mean disabled, which is different. For many > components, being hidden may make no sense at all. > > You ought to be able to do whatever you are trying to do by wrapping > your component in an if. > > -Mike > > On 3/24/06, linuja <[EMAIL PROTECTED]> wrote: > > Why IComponent does not provide a setVisiable(boolean visiable) method? > > > > So it can be hidden component easier. > > > > tks. > > > > > > --------------------------------------------------------------------- > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]