You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ajit Rajasekharan <aj...@hotmail.com> on 2007/04/02 18:07:44 UTC
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Layout of dynamic checkout box
Posted by Ajit Raj <aj...@hotmail.com>.
Yes, Thanks.
This looks like one way to make it work.
>From: "Jonathan Barker" <jo...@gmail.com>
>Reply-To: "Tapestry users" <us...@tapestry.apache.org>
>To: "'Tapestry users'" <us...@tapestry.apache.org>
>Subject: RE: Layout of dynamic checkout box
>Date: Mon, 2 Apr 2007 15:52:46 -0400
>
>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:ajit_raj@hotmail.com]
> > 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>For additional commands, e-mail: users-help@tapestry.apache.org
>
_________________________________________________________________
Download Messenger. Join the im Initiative. Help make a difference today.
http://im.live.com/messenger/im/home/?source=TAGHM_APR07
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Layout of dynamic checkout box
Posted by Jonathan Barker <jo...@gmail.com>.
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:ajit_raj@hotmail.com]
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org