Well, if you use a repeater it will go through its model in the order you added the items to it. If you want to control where on the page they go, then you would need some kind of dynamic template or overlay.
For that I used HTML tables with North, South, Center, East, West table cells and I add the container to all 5 cells but hide the ones that I don't want to see. It's a bit extensive as the page map grows, but it works and it should be okay to get you started on a better solution :) For some other dynamic components I used Velocity as their template: http://en.wikipedia.org/wiki/Apache_Velocity This is the Wicket project on it: http://wicket.apache.org/learn/projects/velocity.html ~ Thank you, Paul Bors -----Original Message----- From: oggie [mailto:gog...@gmail.com] Sent: Tuesday, August 07, 2012 4:01 PM To: users@wicket.apache.org Subject: dynamic control of location of panels on page Let's say we want to have a number of widgets on the page. But we want to be able to dynamically define what widgets are shown, and in what order they appear on the page. So I can create a bunch of panels, each with their own html, and add those panels to a container to display on the screen. But how do I control the order of them? If I put them in a list, will they be drawn in the order they were added to the list? I'm following this example: https://cwiki.apache.org/WICKET/page-with-dynamic-components.html wicket dynamic content Will this type of solution work even if the widgets are of different widths? Can we still control the layout in the html if we never know what widgets are shown? I hope I explained it properly. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/dynamic-control-of-location-of-pa nels-on-page-tp4651043.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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org