Ajit,

Given that you are trying to render a list of boxes, have you tried using
CSS with a list rather than a table?  The strategy would be the same as that
used to generate Navigation Menus using <ul><li>.

ul { 
        list-style: none;
        margin: 0px;
        padding: 0px;
}
li { 
        display: block;
        float: left;
        width: 20%;
}


Jonathan

> -----Original Message-----
> From: Ajit Rajasekharan [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 02, 2007 12:08 PM
> To: users@tapestry.apache.org
> Subject: Layout of dynamic checkout box
> 
> Hi,
> 
> I am new to the tapestry. I have a question to the layout of dynanmic
> generated checkout box(or other components).
> 
> I know that I could put dynamic generated checkbox items into a list and
> use
> following mechanism to display in each rows:
> 
> <component id="eachEntry" type="For">
>              <binding name="source" value="itemss"/>
>              <binding name="element" value="literal:tr"/>
>              <binding name="index" value="index"/>
>              <binding name="keyExpression" value="index"/>
> </component>
> <component id="eachTerminal" type="Checkbox">
>          <binding name="value" value="item[index].checked"/>
> </component>
> 
> The above will put the checkbox in each rows (defined by "literal:tr").
> But
> I can't figure out how to put the dynamic generated items into a better
> layout format such as (rows + columns). For example, I like the checkout
> boxes displayed on the first rows (maximum to 5 items), then the next 5
> items displayed to the second rows, and so on...
> 
> 
> Could anyone let me know the best way to do it?
> 
> 
> Thanks in advance...
> 
> 
> Ajit
> 
> _________________________________________________________________
> Live Search Maps - find all the local information you need, right when you
> need it. http://maps.live.com/?icid=hmtag2&FORM=MGAC01
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to