Re: How to use a grid with some "null" cells

2010-05-12 Thread Thiago H. de Paula Figueiredo
On Wed, 12 May 2010 07:09:18 -0300, Claude Dubois wrote: Is it possible to use this syntax in other cases? For example adding a "else"? No. Create a getXXX() method in your corresponding class and do this logic there. Tapestry's philosophy is to not have logic in templates. I tried to

Re: How to use a grid with some "null" cells

2010-05-12 Thread Claude Dubois
Thank you, it works very well ! Is it possible to use this syntax in other cases? For example adding a "else"? I tried to add ":" like this : ${user.shop?.shoCode:"No Data"} and it doesn't work. Does someone know a way to do that? Thanks ! Pierce T. Wetter III-3 wrote: > > > On May 11, 2

Re: How to use a grid with some "null" cells

2010-05-11 Thread Pierce T. Wetter III
On May 11, 2010, at 5:59 AM, Claude Dubois wrote: > > You put me on the right way. > It still didn'twork using the tag, so I tried to add a . > > My tml looks like that : > > > > ${user.shop.shoCode} > > > > Using this method it works well. > > Thanks for your help

Re: How to use a grid with some "null" cells

2010-05-11 Thread Claude Dubois
You put me on the right way. It still didn'twork using the tag, so I tried to add a . My tml looks like that : ${user.shop.shoCode} Using this method it works well. Thanks for your help Joost Schouten (ml) wrote: > > Hi, > > What problem do you experience (except

Re: How to use a grid with some "null" cells

2010-05-11 Thread Thiago H. de Paula Figueiredo
On Tue, 11 May 2010 06:24:43 -0300, Claude Dubois wrote: Hi everybody, Hi! Does anyone know a solution to make possible to display a row even if one of its fields is null? This is strange, as Grid always create a table row for each object, regardless of its property values. -- Thia

Re: How to use a grid with some "null" cells

2010-05-11 Thread Joost Schouten (ml)
Hi, What problem do you experience (exception/stacktrace)? You should just see an empty cell if your null value is of a type recognized by the BeanModel. You can override every cell by using this: display whatever you want eg: ${row.yourPropertyName} or ${computedValueInTheComponent}

How to use a grid with some "null" cells

2010-05-11 Thread Claude Dubois
Hi everybody, I am developping an application on Tapestry 5 with JPA/Hibernate persistence. I am using the grid component, which is very powerful, but I encounter a problem while trying to display some data whose one field contains a "null" value. Does anyone know a solution to make possible to