Here's the sample code:
<ul>
<li wicket:id="strings">
<span wicket:id="string"></span>
</li>
</ul>
IModel<String> strings = ...;
add(new ListView("strings", strings)) {
protected void populateItem(ListItem<String> item) {
item.add(new Label("string", item.getModel()));
}
};
Not too much code for an always up-to-date rendered list with clean separation
of markup and code.
Sven
On 09/14/2012 02:55 PM, jam.ntk wrote:
Thanks, I think i can achieve this simply by adding mark up tags in the
wicket code.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Generating-markup-from-Wicket-tp4652003p4652005.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]