[
https://issues.apache.org/jira/browse/MYFACES-3632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACES-3632.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.10
2.0.16
1.2.13
Assignee: Leonardo Uribe
JSF 2.0 spec section 5.6.1.4 says this about ResourceBundle ELResolver :
"... If base is null and property is null, throw PropertyNotFoundException. If
base is null and property is a String equal to the value of the <var> element
of one of the <resource-bundle>'s in the application configuration resources
throw javax.el.PropertyNotWriteable, since ResourceBundles are read-only. ..."
Reading carefully the text, the check for (base != null) is implicit there, or
in other words, there is no check for base == null in that part before invoke
scanning for ResourceBundles.
The bug should be fixed in 1.2.x branch too. Thanks for report it.
> resource bundle name with bean property collition when trying to set value
> --------------------------------------------------------------------------
>
> Key: MYFACES-3632
> URL: https://issues.apache.org/jira/browse/MYFACES-3632
> Project: MyFaces Core
> Issue Type: Bug
> Components: General
> Affects Versions: 2.0.9
> Reporter: Michael Moossen
> Assignee: Leonardo Uribe
> Fix For: 1.2.13, 2.0.16, 2.1.10
>
>
> http://stackoverflow.com/questions/12951850/richtabpanel-does-not-work-with-textarea
> The point is that my property is named 'text', and i have also a resource
> bundle called 'text'. Additionally in the javax.el.CompositeELResolver the
> org.apache.myfaces.el.unified.resolver.ResourceBundleResolver is before the
> javax.el.BeanELResolver.
> And the
> org.apache.myfaces.el.unified.resolver.ResourceBundleResolver.setValue(ELContext
> context, Object base, Object property, Object value) method does NOT check
> the base object and just looks for a resource bundle named as the property,
> in my case it finds something and peng! Exception!
> It should check (base != null) and just leave.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira