Johan Compagner <jcompagner <at> gmail.com> writes:

> 
> 
> jip that is what i meant
> But ofcourse eelco's method is also fine to use.
> 
> On 11/15/05, Scott Sauyet <lists <at> sauyet.com> wrote:
>  > = James Yong <i_yongbl <at> yahoo.com.sg>
>  >> = Johan Compagner <jcompagner <at> gmail.com> >> If you can do that then 
i would just have the <img tag> directly in >> the html with a wicket id and 
then you use a label componet which
>  >> only has a attribute modifier to set the src attribute. >> That looks to 
me as the cleanest method. > [ ... ] > In the end, I used the label component 
to generate the whole img tag.I don't mean to speak for Johan, but I think the 
suggestion wassomething like this:     listItem.add(new Label("file_img").add
(new AttributeModifier("src","" + childfolder + "/" + 
> file.getName()));     along with     <img wicket:id="file_img" 
src="placeholder.png" alt=""/>That sounds to me the most Wicketish way of doing 
this.   -- Scott


Hi Johan and Scott,

Sorry for my misinterpretion. Thanks for clearing things up. I didn't expect 
there are so many approaches. keke.

Regards,
james



-------------------------------------------------------
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

Reply via email to