Re: t:type="grid" "Excerpt" column

2011-08-18 Thread TG
All, thanks for your explanations, it works. I can see ... now :) Antalk, your Java example codes is the answer that fill the missing gap. I understand the use case of excerpt now. Thanks a lot and it is not late at all. -- View this message in context: http://tapestry.1045711.n5.nabble.com/t-ty

Re: t:type="grid" "Excerpt" column

2011-08-18 Thread antalk
Your TML page should have a grid component, in there you would have a parameter defined as such: ${storyexcerpt} Also you should assign the 'row' parameter of the grid component to a property value in your page: @Property private 'Entity' gridRow; And then in your page you would have a

Re: t:type="grid" "Excerpt" column

2011-08-18 Thread Emmanuel DEMEY
At this moment, I think you have something like that So if you wan to override the renderinf of one of your attribute (story for example), you have to add a parameter block inside the Grid block. The name of this parameter block should be the name of the attribute suffixed by Cell. Be

Re: t:type="grid" "Excerpt" column

2011-08-17 Thread TG
Could you clarify with a sample codes of what you mean by "add a String getStoryExcerpt() methord that returns the excerpt."? Also, do I implement it in the Page? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/t-type-grid-Excerpt-column-tp4708859p4710871.html S

Re: t:type="grid" "Excerpt" column

2011-08-17 Thread Thiago H. de Paula Figueiredo
On Wed, 17 Aug 2011 13:27:23 -0300, Robert Zeigler wrote: Pretty sure that should be: ${storyExceprt} Ooops, thanks Robert! :D -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Inform

Re: t:type="grid" "Excerpt" column

2011-08-17 Thread Robert Zeigler
Pretty sure that should be: ${storyExceprt} Cheers, Robert On Aug 17, 2011, at 8/1711:24 AM , Thiago H. de Paula Figueiredo wrote: > On Wed, 17 Aug 2011 13:06:22 -0300, TG wrote: > >> I am trying to display a table using grid and one of the column are the >> details of a story, but in the st

Re: t:type="grid" "Excerpt" column

2011-08-17 Thread Taha Tapestry
Use JavaScript. Regards Taha On Aug 17, 2011, at 9:36 PM, TG wrote: > I am trying to display a table using grid and one of the column are the > details of a story, but in the start page, I would like an excerpt of that > column. Meaning the text should be truncated to say first 100 characters

Re: t:type="grid" "Excerpt" column

2011-08-17 Thread Thiago H. de Paula Figueiredo
On Wed, 17 Aug 2011 13:06:22 -0300, TG wrote: I am trying to display a table using grid and one of the column are the details of a story, but in the start page, I would like an excerpt of that column. Meaning the text should be truncated to say first 100 characters. Hi! Just use ${storyE

t:type="grid" "Excerpt" column

2011-08-17 Thread TG
I am trying to display a table using grid and one of the column are the details of a story, but in the start page, I would like an excerpt of that column. Meaning the text should be truncated to say first 100 characters. What is the best way to do this? With minimal codes in Tapestry 5? Thanks.