You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christoph Jaeger <ch...@derwald.at> on 2007/08/28 22:39:30 UTC
[T5] Usage of Grid component
Hi,
is there a simple example of how to use the grid component, which is
just a bit more complex than
<t:grid source="items"/>
There are basically two things I am looking for at the moment:
1. hide columns (without using annotations in the java files, my feeling
is that the configuration which fields to show on the web-form does not
belong in an annotation in the java entity, but in the page)
2. create a link (actionlink?) in each row to reach a page where the
specific item can be edited
I think almost every tapestry application will use features like this in
a grid, but I could not find a simple example of how to do it.
I someone points me to the right direction, I will create a simple
example for the wiki.
Thanks,
Christoph Jäger
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Usage of Grid component
Posted by Cristian Gonzalo Gary <cr...@gmail.com>.
hi Ned . i have a little problem modified the actual Grid. and i find your
link. but i see this dosnt work .
can you tell me if yet exist that page.?
thanks . gracias.
Ned Jackson Lovely-2 wrote:
>
> On Thu, Aug 30, 2007 at 08:06:54AM +0200, Christoph Jaeger wrote:
>> A comma separated list of properties would be great. Then you can hide
>> and sort columns as you like (didn't think about sorting yet).
>
> http://blog.njl.us/blojsom/blog/default/2007/09/01/Configurable-Grid
>
> --
> njl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-T5--Usage-of-Grid-component-tf4344089.html#a13868361
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] Usage of Grid component
Posted by Christoph Jaeger <ch...@derwald.at>.
Hi Ned,
thanks for your link, I had some troubles with it, should probably read:
http://blog.njl.us/blog/default/2007/09/01/Configurable-Grid
Anyway, I will try this out. Maybe your enhancement will find its way
into the standard Grid component?
Best Regards,
Christoph
Ned Jackson Lovely wrote:
> On Thu, Aug 30, 2007 at 08:06:54AM +0200, Christoph Jaeger wrote:
>> A comma separated list of properties would be great. Then you can hide
>> and sort columns as you like (didn't think about sorting yet).
>
> http://blog.njl.us/blojsom/blog/default/2007/09/01/Configurable-Grid
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Usage of Grid component
Posted by Ned Jackson Lovely <nj...@qu.to>.
On Thu, Aug 30, 2007 at 08:06:54AM +0200, Christoph Jaeger wrote:
> A comma separated list of properties would be great. Then you can hide
> and sort columns as you like (didn't think about sorting yet).
http://blog.njl.us/blojsom/blog/default/2007/09/01/Configurable-Grid
--
njl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Usage of Grid component
Posted by Christoph Jaeger <ch...@derwald.at>.
A comma separated list of properties would be great. Then you can hide
and sort columns as you like (didn't think about sorting yet).
Christoph
Thiago H. de Paula Figueiredo wrote:
> Em Tue, 28 Aug 2007 19:00:13 -0300, Daniel Jue <te...@gmail.com>
> escreveu:
>
>> "Hacking" the beanmodel is definitely possible. You can actually dump
>> all the columns that bean model picks up, and re-add them to the
>> beanmodel's
>> list in the order you want. You'd probably want something more
>> streamlined
>> if you are letting your users reorder the columns at run time.
>
> I meant "hacking" as a synonim for "taking a look and coding". ?)
>
>> This is pretty essential since we should never rely on the order of
>> getters/setters in the code to determine the order of visual output.
>> It's great to get started, but if you are like me and let your IDE
>> sort your
>> class members for you, you'll need more than the default order.
>
> Agreed!
> I all wanted was something like a columns parameter that takes a
> comma-separated list of properties, existing or not. It must not be
> difficult to do.
>
> Thiago
>
> ---------------------------------------------------------------------
> 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
Re: [T5] Usage of Grid component
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Tue, 28 Aug 2007 19:00:13 -0300, Daniel Jue <te...@gmail.com>
escreveu:
> "Hacking" the beanmodel is definitely possible. You can actually dump
> all the columns that bean model picks up, and re-add them to the
> beanmodel's
> list in the order you want. You'd probably want something more
> streamlined
> if you are letting your users reorder the columns at run time.
I meant "hacking" as a synonim for "taking a look and coding". ?)
> This is pretty essential since we should never rely on the order of
> getters/setters in the code to determine the order of visual output.
> It's great to get started, but if you are like me and let your IDE sort
> your
> class members for you, you'll need more than the default order.
Agreed!
I all wanted was something like a columns parameter that takes a
comma-separated list of properties, existing or not. It must not be
difficult to do.
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Usage of Grid component
Posted by Daniel Jue <te...@gmail.com>.
"Hacking" the beanmodel is definitely possible. You can actually dump all
the columns that bean model picks up, and re-add them to the beanmodel's
list in the order you want. You'd probably want something more streamlined
if you are letting your users reorder the columns at run time.
This is pretty essential since we should never rely on the order of
getters/setters in the code to determine the order of visual output. It's
great to get started, but if you are like me and let your IDE sort your
class members for you, you'll need more than the default order.
I was able to do this with much help from this list, btw.
I'll try and post some code later, but you can search the list for now.
On 8/28/07, Thiago H de Paula Figueiredo <th...@gmail.com> wrote:
>
> On Tue, 28 Aug 2007 17:39:30 -0300, Christoph Jaeger
> <ch...@derwald.at> wrote:
>
> > Hi,
> >
> > is there a simple example of how to use the grid component, which is
> > just a bit more complex than
> >
> > <t:grid source="items"/>
>
> Something I really miss in Grid that is present in T4's contrib:Table
> flexibility
> (
> http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html
> ),
> specifically the columns parameter. That's why I'm developing an
> application en T5 and I'm not using Grid yet: it doesn't allow me to
> reorder the columns easily. I tried to grok the BeanModel default
> implementation, but I had to have a working code quickly and then I
> postponed my BeanModel hackings. :)
>
> --
> Thiago H. de Paula Figueiredo
> Desenvolvedor, Instrutor e Consultor de Tecnologia
> Eteg Tecnologia da Informação Ltda.
> http://www.eteg.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: [T5] Usage of Grid component
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 28 Aug 2007 17:39:30 -0300, Christoph Jaeger
<ch...@derwald.at> wrote:
> Hi,
>
> is there a simple example of how to use the grid component, which is
> just a bit more complex than
>
> <t:grid source="items"/>
Something I really miss in Grid that is present in T4's contrib:Table
flexibility
(http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html),
specifically the columns parameter. That's why I'm developing an
application en T5 and I'm not using Grid yet: it doesn't allow me to
reorder the columns easily. I tried to grok the BeanModel default
implementation, but I had to have a working code quickly and then I
postponed my BeanModel hackings. :)
--
Thiago H. de Paula Figueiredo
Desenvolvedor, Instrutor e Consultor de Tecnologia
Eteg Tecnologia da Informação Ltda.
http://www.eteg.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org