Eelco Hillenius <eelco.hillenius <at> gmail.com> writes:
>
> Or use
>
> public class SimpleImage extends WebComponent {
>
> public SimpleImage(String id, String imgSrc) {
> super(id, new Model(imgSrc));
> }
>
> public SimpleImage(String id, IModel imgSrcModel) {
> super(id, imgSrcModel);
> }
>
> protected void onComponentTag(ComponentTag tag) {
> tag.getAttributes().put("src", getModelObjectAsString());
> }
> }
>
> Eelco
>
Hi Eelco,
Seems good. I was hoping for a solution done in the wicket way.
Will try it ;-)
Thanks.
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user