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 Koci (JIRA)" <de...@myfaces.apache.org> on 2007/05/22 14:02:18 UTC
[jira] Updated: (TRINIDAD-28) MessageFactory.BindingFacesMessage
resolves parameters only once
[ https://issues.apache.org/jira/browse/TRINIDAD-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Koci updated TRINIDAD-28:
--------------------------------
Status: Patch Available (was: Open)
> MessageFactory.BindingFacesMessage resolves parameters only once
> ----------------------------------------------------------------
>
> Key: TRINIDAD-28
> URL: https://issues.apache.org/jira/browse/TRINIDAD-28
> Project: MyFaces Trinidad
> Issue Type: Improvement
> Components: Components
> Affects Versions: 1.0.1-incubating-core-SNAPSHOT
> Reporter: Martin Koci
> Priority: Minor
> Attachments: MessageFactory.java.patch
>
>
> I probably found a problem with BindingFacesMessage class. If calling getMessage() it resolves value binding only once and then cache it.
> I think values should be resolved every time as normal ValueBinding or ValueExpressing does - calling getValue(context) creates a new value every time; but BindingFacesMessage returns still same value (which can be pretty old and unactual).
> I fixed it locally with:
> private void _resolveBindings()
> {
> //if (_resolvedParameters == null)
> //{
> _resolvedParameters = _getProcessedBindings(null, _parameters);
> //}
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.