One option: Use a panel that contains both. Rather than adding B, add the panel, which knows to display one or both.
-- Jeremy Thomerson http://www.wickettraining.com On Tue, Feb 17, 2009 at 4:37 PM, Prag <pragprog...@gmail.com> wrote: > > For a component (A) I would like to be able to add a surrounding component > (B) (a link) in some cases. Component A itself should be able to add > surrounding component B. > > Example: > A product component in some cases has detailed info. If this is the case, > the product component should be linkable to the detailed page. If it's > linkable, the product component should add a surrounding link to itself to > the detailed page. > > > So the product component should be able to hide/add its parent without > itself become hidden. > > How can I achieve this? > -- > View this message in context: > http://www.nabble.com/Add-a-surrounding-component-to-itself-tp22067906p22067906.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >