Re: and user types ...

2011-01-10 Thread Gunnar Eketrapp
Great and thanks for the info! Now it works without writing any conduit classes ... 2011/1/10 Yohan Yudanara : > Oops.. sorry, Gunnar. Thiago is right. You don't need PropertyConduit. > We need PropertyConduit if we add non-property column on Grid. > > So, you just need this on setupRender: > void

Re: and user types ...

2011-01-10 Thread Yohan Yudanara
Oops.. sorry, Gunnar. Thiago is right. You don't need PropertyConduit. We need PropertyConduit if we add non-property column on Grid. So, you just need this on setupRender: void setupRender() { beanModel = beanModelSource.createEditModel(, messages); beanModel.add(""); } Best Regar

Re: and user types ...

2011-01-10 Thread Thiago H. de Paula Figueiredo
On Mon, 10 Jan 2011 06:13:33 -0200, Gunnar Eketrapp wrote: Thanks Yohan ! I now got it to work with my Money type in the grid + sorting. I created a TransactionAmountPropertyConduit as you advised ... But it's less then ideal to have to write a PropertyConduit class every time you use an own

Re: and user types ...

2011-01-10 Thread Gunnar Eketrapp
Thanks Yohan ! I now got it to work with my Money type in the grid + sorting. I created a TransactionAmountPropertyConduit as you advised ... But it's less then ideal to have to write a PropertyConduit class every time you use an own defined type in a grid. Have I missed something ... Thanks a

Re: and user types ...

2011-01-09 Thread Yohan Yudanara
If you want simpler solution, just add property with java type that can represent your user type in your bean class. On 1/9/11, Yohan Yudanara wrote: > You can take a look at > http://tapestry.1045711.n5.nabble.com/Grid-sortable-additionnal-column-td2433091.html. > > On .tml file, you need to use

Re: and user types ...

2011-01-09 Thread Yohan Yudanara
You can take a look at http://tapestry.1045711.n5.nabble.com/Grid-sortable-additionnal-column-td2433091.html. On .tml file, you need to use beanModel attribute on the Grid component: On .java file, you need to add your "amount" property to the beanModel: @Inject private BeanModelSource b

Re: and user types ...

2011-01-09 Thread Gunnar Eketrapp
Hi Thiago and others ... I still haven't managed to display and sort user types in the grid. If I do the cell rendering on my own as in ... ${transaction.amount.format()} .. the sorting goes away I have added a MoneyTranslator but that one is only

Re: and user types ...

2010-12-17 Thread Thiago H. de Paula Figueiredo
On Fri, 17 Dec 2010 12:42:14 -0200, Stephan Windmüller wrote: You have to define the layout of the cell by yourself. Have a look at http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html You can also provide a view block for your own types:

Re: and user types ...

2010-12-17 Thread Stephan Windmüller
On 17.12.2010 15:22, Gunnar Eketrapp wrote: > I just started to use the grid component and noticed that all fields that > have a type other then standrad java types gets silently ignored. > > Can I add something to get them displayed or do I have create display > classes with simpler value types

and user types ...

2010-12-17 Thread Gunnar Eketrapp
Hi! I just started to use the grid component and noticed that all fields that have a type other then standrad java types gets silently ignored. Can I add something to get them displayed or do I have create display classes with simpler value types for each grid !? Yea yea I am reading the gr