webtier@glassfish.java.net

Re: [webtier] JSF2: Empty Strings

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Thu, 21 May 2009 13:13:44 -0700

On 5/21/09 1:07 PM, webtier_at_javadesktop.org wrote:
> Is there any way to make empty string be a null value not a "" when we submit a form?
>
> Thks
>
> Israel
> [Message sent by forum member 'israelbgf' (israelbgf)]
>
> http://forums.java.net/jive/thread.jspa?messageID=347221
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>
Use the javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL
context init parameter with a value of true.