Hi,

I've created some classes that are used rather prominently in my Tapestry 5.3.8 
application.

The classes have some attributes that are themselves simple string wrappers.

So, for example, I have:

SomeClass.java
------------------
UidString someUid;
[...]

And UidString is basically a String wrapper with some additional validation:

UidString.java
----------------
String uidString;
public String toString() {return uidString;}
public String get() {return uidString;}
[...]

Anyway, when I use the SomeClass in a grid, the UidString isnt' recognized, so 
that I either have to add the column by myself every time or create a custom 
bean model for the class.
I chose the latter. Now I have a method creating the bean model for me and use 
it every time with t:model="mySomeClassBeanModel" every time I have a grid 
containing SomeClass.

Can I register the bean model in Tapestry so I don't have to set the model 
myself?

Are there other ways to recognize/configure the String wrappers?

Regards,
Daniel P.

Reply via email to