You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Igor Guimaraes (Created) (JIRA)" <de...@myfaces.apache.org> on 2012/01/09 20:27:39 UTC

[jira] [Created] (EXTVAL-140) Error when rendering components trinidad

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


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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
	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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Created] (EXTVAL-140) Error when rendering components trinidad

Posted by Rudy De Busscher <rd...@gmail.com>.
Hello Igor,

I tried to reproduce your issue with one of the test examples of ExtVal.

I toke the example (1) and added Weld 1.1.5-Final and run in with Tomcat.

I don't have that exception, and I do pass the code mentioned in the
stacktrace.

Can you give us an example where this issue occurs.


Thx
Rudy

(1) =
http://svn.apache.org/repos/asf/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/feature-set_02

-- 
Rudy De Busscher
http://www.c4j.be


On 9 January 2012 20:27, Igor Guimaraes (Created) (JIRA) <
dev@myfaces.apache.org> wrote:

> 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
>
>
> 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 factory
> has not been wrapped by the CDI BeanManager, which must be done to use the
> ELResolver from CDI
>        at
> org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
>        at
> org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
>        at
> org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
>        at
> org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
>        at
> javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
>        at
> com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
>        at
> com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
>        at
> org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
>        at
> org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
>        at
> org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
>        at
> org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
>        at
> org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
>        at
> org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
>        at
> org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
>        at
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
>        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
> administrators:
> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>


-- 
Rudy De Busscher
http://www.c4j.be

Re: [jira] [Commented] (EXTVAL-140) Error when rendering components trinidad

Posted by Rudy De Busscher <rd...@gmail.com>.
Igor,

There is a way of creating your version of DefaultELHelper.

Look at the method
org.apache.myfaces.extensions.validator.util.ExtValUtils#getELHelper.  So
this is what you have to do;
1. Create your implementation of the helper (it needs to implement
org.apache.myfaces.extensions.validator.core.el.ELHelper, you can extends
DefaultELHelper)
2. Create an implementation of
org.apache.myfaces.extensions.validator.core.el.AbstractELHelperFactory
where you return your version of the helper in the createELHelper() method.
3. Register this helperfactory in an AbstractStartupListener using
something like this
*
ExtValContext.getContext().getFactoryFinder().getFactory(FactoryNames.EL_HELPER_FACTORY,
AbstractELHelperFactory.class).setCustomELHelperFactory(new CustomHelper());
*
Where CustomHelper is your AbstractELHelperFactory implementation class of
step 2.

If you need more help with this or another issue, you can always reach us
on the mailing list.

Best regards
Rudy


-- 
Rudy De Busscher
http://www.c4j.be

On 13 January 2012 13:06, Igor Guimaraes (Commented) (JIRA) <
dev@myfaces.apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185556#comment-13185556]
>
> Igor Guimaraes commented on EXTVAL-140:
> ---------------------------------------
>
> Gerhard,
>
> The point is that I have to fix a bug for I can use the ExtVal, and I'm
> trying to help solve.
>
> If there were an extension point for that class, or a way to override the
> class DefaultELHelper, I would do it through here.
>
> Although not a bug of ExtVal, is preventing me to use you project of our
> framework.
>
> This bug has been open for over a year, for a person who works with me,
> Rogerio Baldini, who also was in the email copy sent to Rudy.
>
> We are currently using version 1.1.4-Final and 1.1.5-Final of Weld with
> this bug still happening, and we can not use of ExtVal  because of it.
>
> We corrected the problem in our framework, rather than waiting staff Weld
> correct.
>
> I thought we could try something like that, but I see that this is not so.
>
> I tried the mailing list, but could not find it, and I am still searching
> for...
> As I will use the project for you here, I need to interact more with
> mailing list.
>
> Thanks.
>
> > 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 factory
> has not been wrapped by the CDI BeanManager, which must be done to use the
> ELResolver from CDI
> >       at
> org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> >       at
> org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> >       at
> org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> >       at
> org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> >       at
> javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> >       at
> com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> >       at
> com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> >       at
> org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> >       at
> org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> >       at
> org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> >       at
> org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> >       at
> org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> >       at
> org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> >       at
> org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> >       at
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> >       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
> administrators:
> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

[jira] [Commented] (EXTVAL-140) Error when rendering components trinidad

Posted by "Igor Guimaraes (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185149#comment-13185149 ] 

Igor Guimaraes commented on EXTVAL-140:
---------------------------------------

Happens a NullPointerException at class ExtValUtils, method getStorage.

Modify for:

    public static <T> T getStorage(Class<T> storageType, String storageName)
    {
        T storage = getCachedStorage(storageType, storageName);

        if(storage != null)
        {
            return storage;
        }
        if(getStorageManagerFactory().create(storageType) != null)
        {
            storage = (T) getStorageManagerFactory().create(storageType).create(storageName);
            cacheStorageForRequest(storageType, storageName, storage);
        }

        return storage;
    }

Thanks

Igor GuimarĂ£es
                
> 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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
> 	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> 	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> 	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> 	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> 	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> 	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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (EXTVAL-140) Error when rendering components trinidad

Posted by "Igor Guimaraes (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184888#comment-13184888 ] 

Igor Guimaraes commented on EXTVAL-140:
---------------------------------------



Rudy,

I fixed the bug, changed  the way of get the facesBean. I modified the method addMetaDataToContext of class DefaultELHelper, for get FacesBean Object using a method "getFacesBean" provided by Trinidad (using reflection), on class UIXComponentBase, ancestor of my JSF component .

If you use a Trinidad in integrator ExtVal (myfaces-extval-trinidad-support), it would be interesting to use the API to retrieve this data.

By now, i will use a modify version of 2.0.6-SNAPSHOT with my solution, and keep waiting a version with this issue fixed.


Thank you.

Igor GuimarĂ£es
 



    
    public static void addMetaDataToContext(
            UIComponent component, PropertyDetails propertyDetails, boolean processModelValidation)
    {
        String[] key = propertyDetails.getKey().split("\\.");

        Object firstBean = null;
        try 
        {
            //elHelper.getBean(key[0]);
            firstBean = getFacesBean(component.getClass(), component);
        } 
        catch (Exception e)
        {
            e.printStackTrace();
        } 

        if(firstBean == null) 
        {
            firstBean = new Object();
        }
        
        List<Class> foundGroupsForPropertyValidation = new ArrayList<Class>();
        List<Class> restrictedGroupsForPropertyValidation = new ArrayList<Class>();
        List<ModelValidationEntry> modelValidationEntryList = new ArrayList<ModelValidationEntry>();
        List<Class> restrictedGroupsForModelValidation = new ArrayList<Class>();

        String activeViewId = FacesContext.getCurrentInstance().getViewRoot().getViewId();

        bvmi.extractExtValBeanValidationMetaData(propertyDetails,
                processModelValidation,
                key,
                firstBean,
                foundGroupsForPropertyValidation,
                restrictedGroupsForPropertyValidation,
                modelValidationEntryList,
                restrictedGroupsForModelValidation,
                activeViewId);

        bvmi.processExtValBeanValidationMetaData(component,
                propertyDetails,
                foundGroupsForPropertyValidation,
                restrictedGroupsForPropertyValidation,
                modelValidationEntryList,
                restrictedGroupsForModelValidation,
                activeViewId);
    }

    public static Object getFacesBean(Class clazz, UIComponent component) throws Exception
    {
        if(clazz.getMethod("getFacesBean") != null)
    {
        return clazz.getMethod("getFacesBean").invoke(component);
    }
    else
    {
        return getFacesBean(clazz.getSuperclass(), component);
    }
    }


                
> 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
>
> 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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
> 	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> 	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> 	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> 	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> 	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> 	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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (EXTVAL-140) Error when rendering components trinidad

Posted by "Igor Guimaraes (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185073#comment-13185073 ] 

Igor Guimaraes commented on EXTVAL-140:
---------------------------------------


Rudy,

Attached my project, and created two use case, using entities Company and Employee.

Existist a BeanManager responsible for requests, CompanyMB and EmployeeMB, contends a producer of this entities.

I try modify the scope for entities, but dosen't work.

If you want run my application, unpack a validation.tomcat.zip on your webapp folder, and copy the validation.xml to

{tomcat-home}/conf/Catalina/localhost/validation.xml

Thanks
                
> 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
>
>
> 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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
> 	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> 	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> 	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> 	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> 	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> 	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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (EXTVAL-140) Error when rendering components trinidad

Posted by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek resolved EXTVAL-140.
-------------------------------------

    Resolution: Incomplete
    
> 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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
> 	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> 	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> 	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> 	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> 	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> 	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 administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (EXTVAL-140) Error when rendering components trinidad

Posted by "Gerhard Petracek (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185509#comment-13185509 ] 

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

hi igor,

basically thx for reporting issues.
however, if you have any issue, please tell us the use-case which doesn't work for you instead of posting suggestions how to change/fix XYZ.

please also consider to contact one of our mailing lists before filing a bug
e.g. this issue looks like a weld issue (e.g. [1]). >if< that's the case, it isn't an extval issue

regards,
gerhard

[1] https://issues.jboss.org/browse/WELD-810
                
> 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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
> 	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> 	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> 	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> 	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> 	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> 	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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (EXTVAL-140) Error when rendering components trinidad

Posted by "Gerhard Petracek (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185566#comment-13185566 ] 

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

hi igor,

extval should work fine with weld (at least we know users who are using it with glassfish3.x -> weld).
but i haven't tried it with 1.1.4+ - maybe there is a new issue.
i'll have a closer look at your sample app.

@mailing lists - see:
http://myfaces.apache.org/mail-lists.html

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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
> 	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> 	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> 	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> 	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> 	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> 	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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (EXTVAL-140) Error when rendering components trinidad

Posted by "Rudy De Busscher (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184922#comment-13184922 ] 

Rudy De Busscher commented on EXTVAL-140:
-----------------------------------------

Igor,

Since you have the problem only with a certain set of beans, you have to identify why a certain bean has the problem and another one not.  A possibility is the type or the scope.

The solution you propose is wrong.  Because it doesn't get the bean identified by the name stored in key[0] but the 'object' (A bean that describes the component, see org.apache.myfaces.trinidad.bean.FacesBean) attached to component itself.  your getFacesBean() method doesn't know the bean name (you don't pass the key[0] value) You won't have any validations performed by ExtVal, only by Hibernate.

Without an example it is difficult for me to figure out what exactly is wrong. 

Regards
Rudy
                
> 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
>
> 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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
> 	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> 	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> 	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> 	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> 	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> 	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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (EXTVAL-140) Error when rendering components trinidad

Posted by "Igor Guimaraes (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185556#comment-13185556 ] 

Igor Guimaraes commented on EXTVAL-140:
---------------------------------------

Gerhard,

The point is that I have to fix a bug for I can use the ExtVal, and I'm trying to help solve.

If there were an extension point for that class, or a way to override the class DefaultELHelper, I would do it through here.

Although not a bug of ExtVal, is preventing me to use you project of our framework.

This bug has been open for over a year, for a person who works with me, Rogerio Baldini, who also was in the email copy sent to Rudy.

We are currently using version 1.1.4-Final and 1.1.5-Final of Weld with this bug still happening, and we can not use of ExtVal  because of it.

We corrected the problem in our framework, rather than waiting staff Weld correct.

I thought we could try something like that, but I see that this is not so.

I tried the mailing list, but could not find it, and I am still searching for...
As I will use the project for you here, I need to interact more with mailing list.

Thanks.
                
> 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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
> 	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> 	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> 	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> 	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> 	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> 	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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (EXTVAL-140) Error when rendering components trinidad

Posted by "Igor Guimaraes (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185126#comment-13185126 ] 

Igor Guimaraes commented on EXTVAL-140:
---------------------------------------

Rudy,

I understand that you said about validations performed, and I make the change:

In class DefaultELHelper, change the method 

    public Object getBean(String beanName)
    {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        return facesContext.getApplication().getELResolver().getValue(facesContext.getELContext(), null, beanName);
    }

by method 


    public Object getBean(String beanName)
    {
        FacesContext facesContext = FacesContext.getCurrentInstance();
    
        
		ELContext elContext = FacesContext.getCurrentInstance().getELContext();
		ExpressionFactory expressionFactory = facesContext.getApplication().getExpressionFactory();
		
		//ValueExpression valueExpression = expressionFactory.createValueExpression(elContext, "#{employee}",  Object.class); 
                // Change way to get a valueExpression
		ValueExpression valueExpression = expressionFactory.createValueExpression(elContext, beanName,  Object.class); 
		
		return valueExpression.getValue(elContext);
		
    }

it's correct?

works for me...

Thanks
                
> 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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
> 	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> 	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> 	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> 	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> 	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> 	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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (EXTVAL-140) Error when rendering components trinidad

Posted by "Gerhard Petracek (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/EXTVAL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185575#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 to 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 factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
> 	at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
> 	at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
> 	at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
> 	at org.jboss.weld.environment.servlet.util.ForwardingELResolver.getValue(ForwardingELResolver.java:49)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.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.ExtValBeanValidationMetaDataExtractionInterceptor.processExtValBeanValidationMetaData(ExtValBeanValidationMetaDataExtractionInterceptor.java:82)
> 	at org.apache.myfaces.extensions.validator.beanval.interceptor.ExtValBeanValidationMetaDataExtractionInterceptor.afterExtracting(ExtValBeanValidationMetaDataExtractionInterceptor.java:61)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.invokeMetaDataExtractionInterceptors(ExtValUtils.java:268)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.access$100(ExtValUtils.java:79)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:236)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptorInternals.extractPropertyDetails(BeanValidationModuleValidationInterceptorInternals.java:64)
> 	at org.apache.myfaces.extensions.validator.beanval.BeanValidationModuleValidationInterceptor.initComponent(BeanValidationModuleValidationInterceptor.java:55)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeEncodeBegin(AbstractValidationInterceptor.java:112)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:162)
> 	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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira