Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 724E29C01 for ; Fri, 13 Jan 2012 13:54:09 +0000 (UTC) Received: (qmail 10033 invoked by uid 500); 13 Jan 2012 13:54:09 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 10011 invoked by uid 500); 13 Jan 2012 13:54:08 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 9997 invoked by uid 99); 13 Jan 2012 13:54:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 13:54:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gerhard.petracek@gmail.com designates 209.85.213.53 as permitted sender) Received: from [209.85.213.53] (HELO mail-yw0-f53.google.com) (209.85.213.53) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 13:54:03 +0000 Received: by yhjj56 with SMTP id j56so238563yhj.12 for ; Fri, 13 Jan 2012 05:53:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=NA3jZtutyCfRd47GqfFIU03gLY3Mmu4m9DxwVeBriQk=; b=I2Z3oVmoRUBp0C/x5Buw6+b1z7fqJXmMZWubyF8nL7yYQAIKsoOKKpy1P/iOCu/Nf4 fZvw4E/+KT2SQgiSj6p2nAk0+vmYfn5JmTiiUee2N7lmCloVkr79NwZ0p3zx/zM1lRgo YNWuoyVLRBEaKmLVgtWjY68aEBsYa75haMiJ0= Received: by 10.236.80.4 with SMTP id j4mr1770867yhe.65.1326462822246; Fri, 13 Jan 2012 05:53:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.27.68 with HTTP; Fri, 13 Jan 2012 05:53:21 -0800 (PST) In-Reply-To: References: <1289799714.22599.1326137259584.JavaMail.tomcat@hel.zones.apache.org> <1585545424.37739.1326460001325.JavaMail.tomcat@hel.zones.apache.org> From: Gerhard Petracek Date: Fri, 13 Jan 2012 14:53:21 +0100 Message-ID: Subject: Re: [jira] [Commented] (EXTVAL-140) Error when rendering components trinidad To: MyFaces Development Cc: igorcicompuit@gmail.com Content-Type: multipart/alternative; boundary=20cf3005101053e84804b669318b --20cf3005101053e84804b669318b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable +1 thx & regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2012/1/13 Igor Guimar=E3es > ok Gerhard, > > I will try detect why it doesn't work only for some special el-expression= s. > > At first, I will try integrate ExtVal with the reference project of Weld > (with Trinidad). > > If I simulate the problem, I will send for you. > > Thanks. > > Igor Guimar=E3es... > > > > > > > On Fri, Jan 13, 2012 at 11:06 AM, Gerhard Petracek (Commented) (JIRA) < > dev@myfaces.apache.org> wrote: > >> >> [ >> https://issues.apache.org/jira/browse/EXTVAL-140?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1318557= 5#comment-13185575] >> >> Gerhard Petracek commented on EXTVAL-140: >> ----------------------------------------- >> >> hi igor, >> >> the sample app is already quite special. however, as mentioned by rudy >> the correct starting point for detecting the issue is to analyze why it >> doesn't work only for some special el-expressions (esp. the difference t= o >> the other expressions). -> it would be nice if you provide those details= . >> >> regards, >> gerhard >> >> > Error when rendering components trinidad >> > ---------------------------------------- >> > >> > Key: EXTVAL-140 >> > URL: https://issues.apache.org/jira/browse/EXTVAL-140 >> > Project: MyFaces Extensions Validator >> > Issue Type: Bug >> > Components: Trinidad Support >> > Affects Versions: 2.0.5 >> > Environment: Projecto using >> > - JSF 2.0.3 >> > - Trinidad 2.0.0-beta-2 >> > or >> > - JSF 2.1.7-SNAPSHOT >> > - Trinidad 2.0.2-SNAPSHOT >> > Both >> > Weld 1.1.4-Final >> > Weld 1.1.5-Final >> > Reporter: Igor Guimaraes >> > Attachments: validation.zip, validation.zip >> > >> > >> > Error processing trinidad components. >> > For testing, I override the encodeBegin method, and it worked without >> super.encodeBegin >> > There is a solution for this error? >> > Caused by: java.lang.IllegalStateException: No CreationalContext >> registered for EL evaluation, it is likely that the the expression facto= ry >> has not been wrapped by the CDI BeanManager, which must be done to use t= he >> ELResolver from CDI >> > at >> org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(Abstract= WeldELResolver.java:148) >> > at >> org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.j= ava:123) >> > at >> org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver= .java:96) >> > at >> org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(Fo= rwardingELResolver.java:49) >> > at >> javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54) >> > at >> com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELReso= lver.java:176) >> > at >> com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResol= ver.java:203) >> > at >> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getBean(= DefaultELHelper.java:79) >> > at >> org.apache.myfaces.extensions.validator.beanval.util.BeanValidationUtils= .addMetaDataToContext(BeanValidationUtils.java:119) >> > at >> org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanVa= lidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(E= xtValBeanValidationMetaDataExtractionInterceptor.java:82) >> > at >> org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanVa= lidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationM= etaDataExtractionInterceptor.java:61) >> > at >> org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataE= xtractionInterceptors(ExtValUtils.java:268) >> > at >> org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtV= alUtils.java:79) >> > at >> org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtVa= lUtils.java:236) >> > at >> org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleVali= dationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValid= ationInterceptorInternals.java:64) >> > at >> org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleVali= dationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.j= ava:55) >> > at >> org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidat= ionInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112) >> > at >> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWra= pper.encodeBegin(ExtValRendererWrapper.java:162) >> > at >> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeBegin(UIXCo= mponentBase.java:987) >> >> -- >> 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/jir= a >> >> >> > > > -- > Igor Luiz Vieira Guimar=E3es > > --20cf3005101053e84804b669318b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable +1

thx & regards,
gerhard

http://www.irian.at<= /a>

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development a= nd
Courses in English and German

Professional Support for Apache MyFace= s



2012/1/13 Igor Guimar=E3es <igorcicompuit@gmail= .com>
ok Gerhard,

I will try detect why it doesn't work only for some = special el-expressions.

At first, I will try integrate ExtVal with t= he reference project of Weld (with Trinidad).

If I simulate the prob= lem, I will send for you.

Thanks.

Igor Guimar=E3es...






On Fri, Jan 13, 2012 = at 11:06 AM, Gerhard Petracek (Commented) (JIRA) <dev@myfaces.apache.= org> wrote:

=A0 =A0[ https://issues= .apache.org/jira/browse/EXTVAL-140?page=3Dcom.atlassian.jira.plugin.system.= issuetabpanels:comment-tabpanel&focusedCommentId=3D13185575#comment-131= 85575 ]

Gerhard Petracek commented on EXTVAL-140:
-----------------------------------------

hi igor,

the sample app is already quite special. however, as mentioned by rud= y the correct starting point for detecting the issue is to analyze why it d= oesn't work only for some special el-expressions (esp. the difference t= o the other expressions). -> it would be nice if you provide those detai= ls.

regards,
gerhard

> Error when rendering components trinidad
> ----------------------------------------
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Key: EXTVAL-140
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 URL: https://issues.apache.org/jir= a/browse/EXTVAL-140
> =A0 =A0 =A0 =A0 =A0 =A0 Project: MyFaces Extensions Validator
> =A0 =A0 =A0 =A0 =A0Issue Type: Bug
> =A0 =A0 =A0 =A0 =A0Components: Trinidad Support
> =A0 =A0Affects Versions: 2.0.5
> =A0 =A0 =A0 =A0 Environment: Projecto using
> =A0- JSF 2.0.3
> =A0- Trinidad 2.0.0-beta-2
> or
> =A0- JSF 2.1.7-SNAPSHOT
> =A0- Trinidad 2.0.2-SNAPSHOT
> Both
> Weld 1.1.4-Final
> Weld 1.1.5-Final
> =A0 =A0 =A0 =A0 =A0 =A0Reporter: Igor Guimaraes
> =A0 =A0 =A0 =A0 Attachments: validation.zip, validation.zip
>
>
> Error processing trinidad components.
> For testing, I override the encodeBegin method, and it worked without = super.encodeBegin
> There is a solution for this error?
> Caused by: java.lang.IllegalStateException: No CreationalContext regis= tered for EL evaluation, it is likely that the the expression factory has n= ot been wrapped by the CDI BeanManager, which must be done to use the ELRes= olver from CDI
> =A0 =A0 =A0 at org.jboss.weld.el.AbstractWeldELResolver.getELCreationa= lContext(AbstractWeldELResolver.java:148)
> =A0 =A0 =A0 at org.jboss.weld.el.AbstractWeldELResolver.lookup(Abstrac= tWeldELResolver.java:123)
> =A0 =A0 =A0 at org.jboss.weld.el.AbstractWeldELResolver.getValue(Abstr= actWeldELResolver.java:96)
> =A0 =A0 =A0 at org.jboss.weld.environment.servlet.util.ForwardingELRes= olver.getValue(ForwardingELResolver.java:49)
> =A0 =A0 =A0 at javax.el.CompositeELResolver.getValue(CompositeELResolv= er.java:54)
> =A0 =A0 =A0 at com.sun.faces.el.DemuxCompositeELResolver._getValue(Dem= uxCompositeELResolver.java:176)
> =A0 =A0 =A0 at com.sun.faces.el.DemuxCompositeELResolver.getValue(Demu= xCompositeELResolver.java:203)
> =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.core.el.Default= ELHelper.getBean(DefaultELHelper.java:79)
> =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.beanval.util.Be= anValidationUtils.addMetaDataToContext(BeanValidationUtils.java:119)
> =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.beanval.interce= ptor.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanVal= idationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)<= br> > =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.beanval.interce= ptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtV= alBeanValidationMetaDataExtractionInterceptor.java:61)
> =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.util.ExtValUtil= s.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.util.ExtValUtil= s.access$100(ExtValUtils.java:79)
> =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.util.ExtValUtil= s$1.extract(ExtValUtils.java:236)
> =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.beanval.BeanVal= idationModuleValidationInterceptorInternals.extractPropertyDetails(BeanVali= dationModuleValidationInterceptorInternals.java:64)
> =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.beanval.BeanVal= idationModuleValidationInterceptor.initComponent(BeanValidationModuleValida= tionInterceptor.java:55)
> =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.core.intercepto= r.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterce= ptor.java:112)
> =A0 =A0 =A0 at org.apache.myfaces.extensions.validator.core.renderkit.= ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> =A0 =A0 =A0 at org.apache.myfaces.trinidad.component.UIXComponentBase.= encodeBegin(UIXComponentBase.java:987)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/Con= tactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira





--
Igor Luiz Vieira Guimar=E3e= s


--20cf3005101053e84804b669318b--