jip that is what i meant
But ofcourse eelco's method is also fine to use.

On 11/15/05, Scott Sauyet <[EMAIL PROTECTED]> wrote:
> = James Yong <[EMAIL PROTECTED]>
>> = 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 was
something like this:

     listItem.add(new Label("file_img").add(new AttributeModifier("src",
"" + childfolder + "/" + file.getName()));

     along with

     <img wicket:id="file_img" src="" alt=""/>

That sounds to me the most Wicketish way of doing this.

   -- Scott



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