RE: Retrieving the Class of an enum backing a Grid column

2015-12-10 Thread Davide Vecchi
Great, it’s exactly there, thanks a lot. So here is the code that works for me: BeanModel dataModel = getDataModel();// : The data model of the grid. PropertyModel pm = dataModel.get(columnName); Class columnClass = pm.getPropertyType(); Cheers Davide -Original

Retrieving the Class of an enum backing a Grid column

2015-12-09 Thread Davide Vecchi
Hi everybody, I'm writing a custom component to be used by the Grid component, such that - in a very few words - when the user clicks on an icon placed in the header of a column whose datatype is an Enumeration, I show a dropdown containing all the existing members of that enumeration.

Re: Retrieving the Class of an enum backing a Grid column

2015-12-09 Thread Chris Poulsen
Maybe you can find it in the PropertyModel for the column? ( http://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/beaneditor/PropertyModel.html#getPropertyType%28%29 ) -- Chris On Wed, Dec 9, 2015 at 5:10 PM, Davide Vecchi wrote: > Hi everybody, > > I'm writing a custom