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
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.
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