myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Korherr (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-2621) BeanValidation does not work with Unified EL 2.2
Date Tue, 23 Mar 2010 18:56:27 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848851#action_12848851
] 

Jakob Korherr commented on MYFACES-2621:
----------------------------------------

We could do something like this in all our ValueExpression wrapper classes:

public Object getValueReference(ELContext context)
    {
        try
        {
            Method method = ValueExpression.class.getMethod("getValueReference", ELContext.class);
            return method.invoke(this.orig, context);
        }
        catch (Exception e)
        {
            return null;
        }
    }

I just tested it and it works great. What do you think?

> BeanValidation does not work with Unified EL 2.2
> ------------------------------------------------
>
>                 Key: MYFACES-2621
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2621
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta-3
>         Environment: bean validation 1.0.0.GA, unified el 2.2
>            Reporter: Jakob Korherr
>            Assignee: Jakob Korherr
>
> When using the new Unified EL 2.2, BeanValidation does not work, because _BeanValidatorUELUtils.getUELValueReferenceWrapper()
always returns null.
> See also the related thread on the mailing list: http://www.mail-archive.com/users@myfaces.apache.org/msg55250.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message