[jboss-user] [JBoss Seam] - inputText / empty string versus NULL
toni
do-not-reply at jboss.com
Thu Sep 13 10:31:18 EDT 2007
Hi,
I need the instance variables bound to my "inputText" fields to be set to NULL instead of an empty string, if the user leaves the input field blank.
However, in the database I can see that those values get set as an empty string.
How can I make sure that, if the user enters an empty string ("") or does not enter anything at all into a text field, the instance variable is set to NULL instead of to an empty string?
Toni
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083988#4083988
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083988
More information about the jboss-user
mailing list