You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sami Dalouche <sk...@free.fr> on 2007/02/25 22:50:22 UTC
Struts2 : TypeConverter and Null Values
Hi,
Let's consider we have a S2 select box that is not required (s:select
required="false" ).
The property to which it is bound can be null. However, by default,
Struts2 complains using the invalid field error message.
One way to circumvent this would be, I guess, to use some
NullSafeTypeConverter, associated to the java.lang.Object type.
Several questions :
1] Is this the best approach ?
2] Why doesn't Struts ship NullSafeTypeConverter by default ?
Regards,
Sami Dalouche
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org