Re: fileUpload native and with primefaces5 and with tomer

2014-06-19 Thread maurojava
But into myfaces2.2.3 i have also to configure Faces servlet with Multipart
into web.xml or the class faces servlet it is annotated out-OF-the-box
with @Multipart and so iT not  plus necessaire ?
Il 19/giu/2014 17:26 "Leonardo Uribe [via MyFaces]" <
ml-node+s10567n118249...@n7.nabble.com> ha scritto:

> Hi
>
> It was fixed in 2.2.2, please use 2.2.3 instead. See:
>
> https://issues.apache.org/jira/browse/MYFACES-3865
>
> regards,
>
> Leonardo
>
> 2014-06-17 7:51 GMT-05:00 maurojava <[hidden email]
> >:
>
> > I have tried to use  primefaces5  fileUpload with configuratoins of
> native
> >  use of Part (no with commons ) into myfaces 2.2 .
> > But not success.
> > You know if the FacesServlet is annotated with @Multipart or i have
> > configure with multipart into web.xml ?
> >
> > Please help me.
> > I would als use myfaces2.2  into tomee 1.6 with substitution jars of
> myfaces
> > api and myfaces ikplbtnto tomee/lib.
> >
> > Also into that case i have to confgure into web.xml  the faces servlet
>  with
> > multpart config for use native Part with fileUplad of myfaces and for
> use
> > fileUpload of primefaces5 with myfaces 2.2 and tomee ?
> >
> >
> >
> > --
> > View this message in context:
> http://myfaces.10567.n7.nabble.com/fileUpload-native-and-with-primefaces5-and-with-tomer-tp118244.html
> > Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://myfaces.10567.n7.nabble.com/fileUpload-native-and-with-primefaces5-and-with-tomer-tp118244p118249.html
>  To unsubscribe from fileUpload native and with primefaces5 and with
> tomer, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://myfaces.10567.n7.nabble.com/fileUpload-native-and-with-primefaces5-and-with-tomer-tp118244p118253.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Re: NPE when view pooling / CACHE_EL_EXPRESSIONS == alwaysRecompile

2014-06-19 Thread l.pe...@senat.fr

On 19/06/2014 17:22, Leonardo Uribe wrote:

Hi

I have checked the problem in deep and I was not able to reproduce the
problem. The reason is view pooling algorithm saves UIViewRoot state
fully (markInitialState is set to false, and the state is used later
to clone the views), and that also includes the "binding" table for
tags, so this table should be always saved and restored correctly.
Really it is not a problem if you set EL cache mode to strict, because
if you are using view pool in that view, enable or disable EL cache
will have minimal effect.

It should be some additional not seen element that is making it fail,
or in other words, it should be a "combination" between different
things, but it is impossible to understand it without an example.

Thank your for investigating the problem.

I agree with you : it is a combination of several things. Unhappily, I 
could not prepare a short example reproducing the problem without 
publishing significant portions of a codebase I am not allowed to 
publish (yet).


 Thanks again,

Ludovic
|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|



Re: fileUpload native and with primefaces5 and with tomer

2014-06-19 Thread Leonardo Uribe
Hi

It was fixed in 2.2.2, please use 2.2.3 instead. See:

https://issues.apache.org/jira/browse/MYFACES-3865

regards,

Leonardo

2014-06-17 7:51 GMT-05:00 maurojava :
> I have tried to use  primefaces5  fileUpload with configuratoins of native
>  use of Part (no with commons ) into myfaces 2.2 .
> But not success.
> You know if the FacesServlet is annotated with @Multipart or i have
> configure with multipart into web.xml ?
>
> Please help me.
> I would als use myfaces2.2  into tomee 1.6 with substitution jars of myfaces
> api and myfaces ikplbtnto tomee/lib.
>
> Also into that case i have to confgure into web.xml  the faces servlet  with
> multpart config for use native Part with fileUplad of myfaces and for use
> fileUpload of primefaces5 with myfaces 2.2 and tomee ?
>
>
>
> --
> View this message in context: 
> http://myfaces.10567.n7.nabble.com/fileUpload-native-and-with-primefaces5-and-with-tomer-tp118244.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: NPE when view pooling / CACHE_EL_EXPRESSIONS == alwaysRecompile

2014-06-19 Thread Leonardo Uribe
Hi

I have checked the problem in deep and I was not able to reproduce the
problem. The reason is view pooling algorithm saves UIViewRoot state
fully (markInitialState is set to false, and the state is used later
to clone the views), and that also includes the "binding" table for
tags, so this table should be always saved and restored correctly.
Really it is not a problem if you set EL cache mode to strict, because
if you are using view pool in that view, enable or disable EL cache
will have minimal effect.

It should be some additional not seen element that is making it fail,
or in other words, it should be a "combination" between different
things, but it is impossible to understand it without an example.

regards,

Leonardo

2014-06-12 3:38 GMT-05:00 Leonardo Uribe :
> Hi
>
> An example to reproduce it could help in this case.
>
> Leonardo.
>
> On Jun 10, 2014 11:21 PM, "l.pe...@senat.fr"  wrote:
>>
>> (republished here following the advice of Gerhard Petracek on
>> us...@deltaspike.apache.org)
>>
>> Dear all,
>>
>> I have the following NPE when view pooling is activated and
>> CACHE_EL_EXPRESSIONS is set to alwaysRecompile :
>>
>> java.lang.NullPointerException at
>> org.apache.myfaces.view.facelets.el.FaceletStateValueExpression.getValue(FaceletStateValueExpression.java:107)
>> at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:68) at
>> org.apache.el.parser.AstValue.getValue(AstValue.java:161) at
>> org.apache.el.parser.AstEmpty.getValue(AstEmpty.java:47) at
>> org.apache.el.parser.AstNot.getValue(AstNot.java:44) at
>> org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185) at
>> org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.getValue(ContextAwareTagValueExpression.java:96)
>> at javax.faces.component._DeltaStateHelper.eval(_DeltaStateHelper.java:377)
>> at
>> javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1211)
>> at
>> javax.faces.component.UIComponentBase._isPhaseExecutable(UIComponentBase.java:2440)
>> at
>> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1386)
>> at
>> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1401)
>> at
>> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1401)
>> at
>> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1401)
>> at
>> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1401)
>> at javax.faces.component.UIForm.processDecodes(UIForm.java:154) at
>> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1401)
>> at
>> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1401)
>> at
>> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1401)
>> at
>> javax.faces.component.UIViewRoot._processDecodesDefault(UIViewRoot.java:1687)
>> at javax.faces.component.UIViewRoot.access$500(UIViewRoot.java:77) at
>> javax.faces.component.UIViewRoot$ApplyRequestValuesPhaseProcessor.process(UIViewRoot.java:1778)
>> at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1653) at
>> javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:869) at
>> org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:42)
>> at
>> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:196)
>> at
>> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:143)
>> at
>> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
>> at javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:46)
>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> fr.senat.faces.filters.HibernateNoCacheFilter.doFilter(HibernateNoCacheFilter.java:123)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> fr.senat.faces.filters.HibernateSessionConversationFilter.doFilter(HibernateSessionConversationFilter.java:128)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> fr.senat.faces.filters.HibernateUserFromPrincipalFilter.doFilter(HibernateUserFromPrincipalFilter.java:43)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> fr.senat.faces.filters.SessionCreationTrackingFilter.doFilter(SessionCreationTracki