You can register a new converter for your data types

http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/bea
nutils/ConvertUtils.html#register(org.apache.commons.beanutils.Convert
er, java.lang.Class)

You will need to build a RoleConverter, that has access to your Role
objetcs, and does convertion based on string roleName.

Nico.

>
> Am i right in that BeanUtil can only copy basic data types and not
> complex data types that i have created myself? Presumably if I have
a
> form that allows changing a user's role ( which is of type Role ) i
need
> to compare the string roleName returned by the form with a cache of
> possible role objects and if one exists with that name assign it to
the
> user manually.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to