dcsimg
Argument Type Mismatch Exception while setting integer value to backing bean through custom component.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sireesha_L
Posted On:   Tuesday, September 26, 2006 01:26 AM

Hi, I have developed a custom component which takes any type of data(String or primitive values). That is working fine when i used to submit a string , but the same is giving the following exception while trying to submit an integer value. java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.faces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:178) at com.sun.faces.el.impl   More>>

Hi,

I have developed a custom component which takes any type of data(String or primitive values). That is working fine when i used to submit a string , but the same is giving the following exception while trying to submit an integer value.



java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:178)
at com.sun.faces.el.impl.ArraySuffix.setValue(ArraySuffix.java:192)
at com.sun.faces.el.impl.ComplexValue.setValue(ComplexValue.java:171)
at com.sun.faces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:234)






Thanks in Advance.    <<Less
About | Sitemap | Contact