hi,
A simple workaround would be defining the bean property as String type
rather than as the actual enum.
Then use the two enum type built in operations "name()" and "valueOf()"
to implement the getter and setter respectively.
If there is actually an elegant way to do it, I would also be interested
to know.
regards,
Giovanni
Ramanathan RV wrote:
Hello,
I wish to display/read value that belongs to an enumerated type. Struts
seems to handle Class and Enum differently. For instance,
*xwork-conversion*
com.company.utils.Constants.EducationalQualification=com.company.ui.utils.EducationalQualificationConverter
java.util.Date=com.loandukaan.ui.utils.DateConverter
For the date parameter, the converter gets invoked. Whereas, for the type
EducationalQualification, the converter doesnt get invoked and the set
method in the form bean fails. Any thoughts?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]