Repeating View Horizontally

2010-01-28 Thread Josh Kamau
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


SV: Repeating View Horizontally

2010-01-28 Thread Wilhelmsen Tor Iver
 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:

trtd wicket:id=myListspan wicket:id=subelementSubelement 
here/span/td/tr

where you have a new ListViewFoo(myList, ...)

- Tor Iver

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



Re: Repeating View Horizontally

2010-01-28 Thread Riyad Kalla
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 toriv...@arrive.nowrote:

  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:

 trtd wicket:id=myListspan wicket:id=subelementSubelement
 here/span/td/tr

 where you have a new ListViewFoo(myList, ...)

 - Tor Iver

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




Re: Repeating View Horizontally

2010-01-28 Thread Josh Kamau
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 rka...@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 toriv...@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:
 
  trtd wicket:id=myListspan wicket:id=subelementSubelement
  here/span/td/tr
 
  where you have a new ListViewFoo(myList, ...)
 
  - Tor Iver
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org