Hi!

Here:
http://code.google.com/p/wicket-mashup/

**
Martin

2010/3/29 Stefan Lindner <lind...@visionet.de>:
> How can I implement a Loop or ListView that can display any wicket
> component?
>
> Let's have a HTML lik this
>
>        <div wicket:id="loop"><div wicket:id="item"/></div>
>
> How can I write a Loop like
>
>        add(new Loop("loop", 10) {
>                protected void populateItem(LoopItem item) {
>                        item.add( new
> <AnyWicketComponentE.G.Image>("item") );
>                }
>        );
>
> An Image will always throw an Exception like "...must be applied to a
> tag of type 'img', not ...".
>
> How can I write my HTML so that I can display an Image, a Label or
> anything else, just on demand?
>
> Of course, I can place a Panel there but this means I must construct a
> panel with markup etc.
>
> I playes around with <wicket:fragment> but this also did not work.
>
> Or is this impossible?
>
> The background: I want to create a list of Links where the visual part
> of the link can be a Label, an Image or somthing else.
>
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to