You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by spotlight2001 <wa...@gmx.at> on 2009/09/03 17:05:13 UTC

java.lang.Long empty turns to 0 on post

I have a java.lang.Long attribute in a backing bean.
It is value bound as a <h:inputHidden

On entering the form the backing bean value is "null".

After a postback without entering anything ...

I expect the java.lang.Long to be "null".
... but the value is "0".

---

I debugged into the "LongConverter" and it already gets a "0".

I tried different variations with myfaces, facelets but still the same
result.

Where should I search/debug?
Maybe el-api?

Where is the value before? The component keeps it as a string I think? Who
sets the value to the component?

---

myfaces 1.2.7
jsf-facelets-1.1.15.B1.jar
jboss 5.1.0.GA 

---


-- 
View this message in context: http://www.nabble.com/java.lang.Long-empty-turns-to-0-on-post-tp25278003p25278003.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: java.lang.Long empty turns to 0 on post

Posted by spotlight2001 <wa...@gmx.at>.
CompositeELResolver.java

in el-api.jar

public void setValue(ELContext context, Object base, Object property,
Object value) throws NullPointerException,

... already get the "0" although it should be "null".

Who calls CompositeELResolver?
-- 
View this message in context: http://www.nabble.com/java.lang.Long-empty-turns-to-0-on-post-tp25278003p25278252.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.