You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by kristjankelt <kr...@hotmail.com> on 2008/11/17 20:14:54 UTC
T5 selectable grid
Hello,
I need a grid component that can take a list of entities like the Tapestry
grid
component does, but in addition it should also be able to display the first
column
with checkboxes. Selectable grid.
This grid component should provide a list of selected entities.
<t:grid source="users" selectedItems="selectedUsers" />
class Page {
@Property
private List<User> users;
@Property
private List<User> selectedUsers;
}
My idea is to create a mixin for the grid component.
Now my question is that what would be the recommended method for adding an
additional column on the fly.
Kristjan Kelt
--
View this message in context: http://www.nabble.com/T5-selectable-grid-tp20546080p20546080.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 selectable grid
Posted by kristjankelt <kr...@hotmail.com>.
Thiago H. de Paula Figueiredo wrote:
>
>
> A simple way to do it to use Grid's add parameter to add a column and a
> <t:parameter> to define that column content and then wrapping the Grid
> inside a Form.
>
>
Yes, this is the simple way but does not resolve the problem I have.
What I really need, is the solution that is easy for a component user and
not for me.
<t:grid source="users" selectedRows="selectedUsers" mixin="selectableGrid"
/>
An end user of this component should not worry about logic behind it.
One solution would be to add a new row with JavaScript but I do not find it
an elegant solution.
What I'm really looking, is the way to add a new parameter inside mixin
code.
Kristjan Kelt
--
View this message in context: http://www.nabble.com/T5-selectable-grid-tp20546080p20556180.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 selectable grid
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Mon, 17 Nov 2008 16:14:54 -0300, kristjankelt
<kr...@hotmail.com> escreveu:
> I need a grid component that can take a list of entities like the
> Tapestry grid component does, but in addition it should also be able to
> display the first column with checkboxes. Selectable grid.
A simple way to do it to use Grid's add parameter to add a column and a
<t:parameter> to define that column content and then wrapping the Grid
inside a Form.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org