Hi All, I am new to wicket world. I have a similar requirement. I want to show images in one column of datatable. This image should be picked based on the value in another column. Please help me in implementing the same(kindly provide some examples).
Regards, Shubhendu On Tue, Apr 23, 2013 at 12:15 PM, Raul <[email protected]> wrote: > Hi Antonio. For this you can use the Image component and the > ContextRelativeResource. > > if ( isaIcon() ) { > relativeResource = new ContextRelativeResource( > "/images/a_icon.png"); > } else { > relativeResource = new ContextRelativeResource( > "/images/other_icon.png"); > } > add(new Image("tuId", > relativeResource)); > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Datatable-with-Image-in-Cell-tp4658204p4658205.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] > >
