Hi, Yes, you have to add the component anyway, and you can controls its rendering by using #setEnable based on your condition. Note that if you need to not render severals components in the same time, you can have a look at wicket:enclosure. Finally, if you need to control its/their rendering afterward, using ajax, you will weed to set setOutputMarkupId(true), or even setOutputMarkupPlaceholderTag(true) if the components starts un-rendered
Hope this helps, Sebastien. On Thu, Aug 9, 2012 at 10:53 PM, wicket user <samd...@live.com> wrote: > I was reading about setEnable(false), will that will be sufficient for my > requirement ? > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/enabling-and-disabling-the-components-tp4651107p4651108.html > Sent from the Users forum 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 > >