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:37:13 UTC

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

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

        

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

Posted by "Arjuna Wijeyekoon (JIRA)" <ad...@incubator.apache.org>.
     [ 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

        

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

Posted by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated ADFFACES-75:
---------------------------------------

        Fix Version/s: 1.0.0-incubating-core
    Affects Version/s: 1.0.0-incubating-core

> CLASSCASTEXCEPTION WHEN USING NON-STRING PARA VALUE WITHIN COMMANDBUTTON
> ------------------------------------------------------------------------
>
>                 Key: ADFFACES-75
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-75
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-incubating-core
>            Reporter: Arjuna Wijeyekoon
>            Priority: Trivial
>             Fix For: 1.0.0-incubating-core
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.