You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Josh Kamau <jo...@gmail.com> on 2010/01/28 10:53:19 UTC
Repeating View Horizontally
Hi;
How do you make repeating view to repeat the items horizontally? The number
of items is not known at the time of creating the markup.
Am a bit new to wicket
Regards
Josh
Re: Repeating View Horizontally
Posted by Josh Kamau <jo...@gmail.com>.
Thanks. I managed with a span for horizontal flow and div for vertical
flow. With a nested Repeating view, i am able to generate any my interfaces
dynamically.
Regards.
On Thu, Jan 28, 2010 at 7:06 PM, Riyad Kalla <rk...@gmail.com> wrote:
> Josh,
>
> Just what Tor said -- repeaters will just repeat whatever markup you feed
> it
> over and over again doing substitution on each one according to the backing
> components. So just make sure you are repeating an element that flows right
> to left -- a <td> or <span> -- probably a <span> is what you want (or heck,
> even LI's that are styled like a menu to flow left to right would work,
> just
> takes more CSS). Don't use <divs> because they are block level elements and
> won't flow the way (l > r) you want them to.
>
> Best,
> Riyad
>
> On Thu, Jan 28, 2010 at 3:06 AM, Wilhelmsen Tor Iver <TorIverW@arrive.no
> >wrote:
>
> > > How do you make repeating view to repeat the items horizontally? The
> > > number
> > > of items is not known at the time of creating the markup.
> >
> > Repeaters do not care about horizontal vs. vertical; it all comes down to
> > the markup.
> >
> > E.g. you can have a ListView which generates a sequence of table cells:
> >
> > <tr><td wicket:id="myList"><span wicket:id="subelement">Subelement
> > here</span></td></tr>
> >
> > where you have a new ListView<Foo>("myList", ...)
> >
> > - Tor Iver
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
Re: Repeating View Horizontally
Posted by Riyad Kalla <rk...@gmail.com>.
Josh,
Just what Tor said -- repeaters will just repeat whatever markup you feed it
over and over again doing substitution on each one according to the backing
components. So just make sure you are repeating an element that flows right
to left -- a <td> or <span> -- probably a <span> is what you want (or heck,
even LI's that are styled like a menu to flow left to right would work, just
takes more CSS). Don't use <divs> because they are block level elements and
won't flow the way (l > r) you want them to.
Best,
Riyad
On Thu, Jan 28, 2010 at 3:06 AM, Wilhelmsen Tor Iver <To...@arrive.no>wrote:
> > How do you make repeating view to repeat the items horizontally? The
> > number
> > of items is not known at the time of creating the markup.
>
> Repeaters do not care about horizontal vs. vertical; it all comes down to
> the markup.
>
> E.g. you can have a ListView which generates a sequence of table cells:
>
> <tr><td wicket:id="myList"><span wicket:id="subelement">Subelement
> here</span></td></tr>
>
> where you have a new ListView<Foo>("myList", ...)
>
> - Tor Iver
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
SV: Repeating View Horizontally
Posted by Wilhelmsen Tor Iver <To...@arrive.no>.
> How do you make repeating view to repeat the items horizontally? The
> number
> of items is not known at the time of creating the markup.
Repeaters do not care about horizontal vs. vertical; it all comes down to the markup.
E.g. you can have a ListView which generates a sequence of table cells:
<tr><td wicket:id="myList"><span wicket:id="subelement">Subelement here</span></td></tr>
where you have a new ListView<Foo>("myList", ...)
- Tor Iver
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org