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 "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org> on 2007/03/16 08:37:11 UTC
[jira] Updated: (ADFFACES-22) Allow parameter values to take a
wider range of types
[ https://issues.apache.org/jira/browse/ADFFACES-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf updated ADFFACES-22:
---------------------------------------
Fix Version/s: 1.0.0-incubating-core
Affects Version/s: 1.0.0-incubating-core
> Allow parameter values to take a wider range of types
> -----------------------------------------------------
>
> Key: ADFFACES-22
> URL: https://issues.apache.org/jira/browse/ADFFACES-22
> Project: MyFaces ADF-Faces
> Issue Type: Bug
> Affects Versions: 1.0.0-incubating-core
> Environment: 3.2-SNAPSHOT version of the andromda.org jsf cartridge.
> Reporter: Leif Johansson
> Assigned To: Adam Winer
> Priority: Minor
> Fix For: 1.0.0-incubating-core
>
>
> When modelling a Long parameter on an action I noticed that FireActionBoundValue could not
> handle UIParameter values not of type String. By replacing the typecast (String) with a call
> to toString() a wider range of types are permitted. Impact on existing code should be nil. This
> is a patch against adf-faces-impl revision 414891.
> Index: src/main/java/org/apache/myfaces/adfinternal/uinode/FireActionBoundValue.java
> ===================================================================
> --- src/main/java/org/apache/myfaces/adfinternal/uinode/FireActionBoundValue.java (revision 414891)
> +++ src/main/java/org/apache/myfaces/adfinternal/uinode/FireActionBoundValue.java (working copy)
> @@ -100,7 +100,7 @@
> {
> Parameter p = new Parameter();
> p.setKey(((UIParameter)kid).getName());
> - p.setValue((String)((UIParameter)kid).getValue());
> + p.setValue(((UIParameter)kid).getValue().toString());
> params.add(p);
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.