You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Kočí (Created JIRA)" <de...@myfaces.apache.org> on 2012/03/17 19:27:37 UTC
[jira] [Created] (MYFACES-3503) Improve exception handling for
f:setPropertyActionListener and EL coercion
Improve exception handling for f:setPropertyActionListener and EL coercion
--------------------------------------------------------------------------
Key: MYFACES-3503
URL: https://issues.apache.org/jira/browse/MYFACES-3503
Project: MyFaces Core
Issue Type: Sub-task
Reporter: Martin Kočí
Assignee: Martin Kočí
Priority: Trivial
<f:setPropertyActionListener value="#{10}" target=#{bean.booleanProperty} /> leads to exception:
Cannot convert 10 of type class java.long.Long to class java.lang.Boolean
but without line/column (without javax.faces.view.Location), because expressionFactory.coerceToType is not oam-LocationAware operation.
See attached patch for details.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MYFACES-3503) Improve exception handling for
f:setPropertyActionListener and EL coercion
Posted by "Martin Kočí (Updated JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Kočí updated MYFACES-3503:
---------------------------------
Status: Patch Available (was: Open)
> Improve exception handling for f:setPropertyActionListener and EL coercion
> --------------------------------------------------------------------------
>
> Key: MYFACES-3503
> URL: https://issues.apache.org/jira/browse/MYFACES-3503
> Project: MyFaces Core
> Issue Type: Sub-task
> Components: General
> Reporter: Martin Kočí
> Assignee: Martin Kočí
> Priority: Trivial
> Attachments: MYFACES-3503.patch
>
>
> <f:setPropertyActionListener value="#{10}" target=#{bean.booleanProperty} /> leads to exception:
> Cannot convert 10 of type class java.long.Long to class java.lang.Boolean
> but without line/column (without javax.faces.view.Location), because expressionFactory.coerceToType is not oam-LocationAware operation.
> See attached patch for details.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MYFACES-3503) Improve exception handling for
f:setPropertyActionListener and EL coercion
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe updated MYFACES-3503:
------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.8
2.0.14
Status: Resolved (was: Patch Available)
Good idea. Thanks to Martin Koci for provide this patch
> Improve exception handling for f:setPropertyActionListener and EL coercion
> --------------------------------------------------------------------------
>
> Key: MYFACES-3503
> URL: https://issues.apache.org/jira/browse/MYFACES-3503
> Project: MyFaces Core
> Issue Type: Sub-task
> Components: General
> Reporter: Martin Kočí
> Assignee: Martin Kočí
> Priority: Trivial
> Fix For: 2.0.14, 2.1.8
>
> Attachments: MYFACES-3503.patch
>
>
> <f:setPropertyActionListener value="#{10}" target=#{bean.booleanProperty} /> leads to exception:
> Cannot convert 10 of type class java.long.Long to class java.lang.Boolean
> but without line/column (without javax.faces.view.Location), because expressionFactory.coerceToType is not oam-LocationAware operation.
> See attached patch for details.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira