You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Arjuna Wijeyekoon (JIRA)" <ad...@incubator.apache.org> on 2006/07/19 23:54:14 UTC

[jira] Closed: (ADFFACES-75) CLASSCASTEXCEPTION WHEN USING NON-STRING PARA VALUE WITHIN COMMANDBUTTON

     [ http://issues.apache.org/jira/browse/ADFFACES-75?page=all ]

Arjuna Wijeyekoon closed ADFFACES-75.
-------------------------------------

    Resolution: Cannot Reproduce

sorry, this has already been fixed on trunk by adam.

> 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