There are multiple solution for this. Either dynamically change visibility of the components, or add WebMarkupContainer instead of the component as placeholder. Or use some kind of repeater (ListView, RepeatingView, ...).
Also you can group the components to a panel and then just switch panels, the possibilities are numerous. -Matej On 4/17/07, Shailendra Pandey <[EMAIL PROTECTED]> wrote: > Hi every one, > I am using wicket for past few months now. And the initial troubles have > started coming. One of them is my needs to choose to add or not add > components when page is being rendered. But as wicket forces me to have a > component added for every wicket:id and wicket:id for every component added > ; THE ONLY way I could realise this was using WebMarkupContainer to insert > markup of whatever component i want based on if a certain condition is true > . > Is there any way the framework supports this?? Like a text field i add to > the page on a certain condition... > Thanks > Atul > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user