jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] Re: TagValueExpression and getValueReference

From: Josh Juneau <juneau001_at_gmail.com>
Date: Sat, 2 Jul 2016 00:26:03 -0500

+1

Josh Juneau
juneau001_at_gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/index.php/author/author/view/id/1866


On Thu, Jun 30, 2016 at 12:43 PM, Bauke Scholtz <balusc_at_gmail.com> wrote:

> Just do it. I believe this was just an oversight.
>
> Cheers, B
>
> On Thu, Jun 30, 2016 at 7:17 PM, arjan tijms <arjan.tijms_at_gmail.com>
> wrote:
>
>> <https://java.net/jira/browse/JAVASERVERFACES-4096>Hi,
>>
>> Although this is practically speaking more of an implementation issue,
>> I'd like to discuss it here anyway since both Mojarra and MyFaces have the
>> same problem.
>>
>> In EL 2.2 ValueExpression had a new method added; getValueReference
>>
>> TagValueExpression however was never updated to implement this, so the
>> default implementation of the ValueExpression it inherits from gets used,
>> which just returns null.
>>
>> Effectively, the getValueReference feature can not be used in JSF because
>> of this and e.g. Mojarra has to keep using its own ValueExpressionAnalyzer.
>> OmniFaces too had to assume it can't simply use
>> ValueExpression#getValueReference and had to come up with its own
>> workaround.
>>
>> There are some existing issues filed that are related to this, e.g.
>> <https://java.net/jira/browse/JAVASERVERFACES-4096>
>> <https://java.net/jira/browse/JAVASERVERFACES-4096>
>> <https://java.net/jira/browse/JAVASERVERFACES-4096>
>> <https://java.net/jira/browse/JAVASERVERFACES-4096>
>> <https://java.net/jira/browse/JAVASERVERFACES-4096>
>> https://java.net/jira/browse/JAVASERVERFACES-4096
>>
>> Since this method has not been implemented for such a long time I wonder
>> if anyone has anything against just implementing it, and perhaps
>> additionally asking for a TCK test to be added for this.
>>
>> Thoughts?
>>
>> Kind regards,
>> Arjan Tijms
>>
>
>