CLASSCASTEXCEPTION WHEN USING NON-STRING PARA VALUE WITHIN COMMANDBUTTON
------------------------------------------------------------------------

                 Key: ADFFACES-75
                 URL: http://issues.apache.org/jira/browse/ADFFACES-75
             Project: MyFaces ADF-Faces
          Issue Type: Improvement
            Reporter: Arjuna Wijeyekoon
            Priority: Trivial


I have the following:

<af:commandButton >
  <f:param value="#{foo.inputValue}" 
          name="empId"/>
</af:commandButton> 

since #{foo.inputValue} evaluates to a java.lang.Number this is throwing 
ClassCastException.

trivial fix is to use
String foo = label.toString()
instead of
String foo = (String) label

I have a fix already. will upload patch shortly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to