I just ran into this while upgrading an application from MyFaces 1.1 to Mojarra 1.2. In MyFaces 1.1, empty strings were converted to null for Long properties in a backing bean. Now, they are converted to 0. I found several postings about this issue, culminating in this bug: <a href="https://jsp-spec-public.dev.java.net/issues/show_bug.cgi?id=183">https://jsp-spec-public.dev.java.net/issues/show_bug.cgi?id=183</a>. <br>
<br>So, unless I'm missing something, this issue is really the same as <a href="https://uel.dev.java.net/issues/show_bug.cgi?id=12" target="_blank">https://uel.dev.java.net/issues/show_bug.cgi?id=12</a>. If everyone agrees, I'll go ahead and update the description accordingly, since the description currently mentions Booleans only, not number values.<br>
<br>Are there any plans to address this issue in 1.2 branches of the implementations?<br clear="all">---<br>Kito D. Mann | twitter: kito99 | Author, JSF in Action<br>Virtua, Inc. | <a href="http://www.virtua.com">http://www.virtua.com</a> | JSF/Java EE training and consulting<br>
<a href="http://www.JSFCentral.com">http://www.JSFCentral.com</a> - JavaServer Faces FAQ, news, and info | twitter: jsfcentral<br>+1 203-404-4848 x3<br><br>Sign up for the JSFCentral newsletter: <a href="http://oi.vresp.com/?fid=ac048d0e17">http://oi.vresp.com/?fid=ac048d0e17</a><br>
<br>
<br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 11:51 AM, Andy Schwartz <span dir="ltr"><<a href="mailto:andy.schwartz@oracle.com">andy.schwartz@oracle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 3/4/10 3:01 AM, Martin Marinschek wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Optionally, we can try to solve this in the new spec-revision of the<br>
Unified-EL - for which work is already being started on. That would of<br>
course be the easier way out.<br>
<br>
</blockquote>
<br></div>
One option might be to allow the JSF implementations to provide this functionality in an implementation-specification way (eg. expose a context parameter) as a short-term solution that can be exposed now independent of any spec changes. Then, once the new revision of UEL is available (which I am sure will address this issue), we can pick that up as our standard solution.<br>
<font color="#888888">
<br>
Andy<br>
<br>
</font></blockquote></div><br>