Re: FlowScope beans are being added to the FlowScope.
may be weld (see http://weld.cdi-spec.org) Am 04.07.2014 um 06:52 schrieb Paul Spencer pau...@apache.org: MyFaces 2.2.3 2.2.4 jetty-maven-plugin:8.1.15.v20140411 FlowScope beans are being added to the FlowScope. I suspect this is related to the message below. org.apache.myfaces.util.ExternalSpecifications isCDIAvailable INFO: MyFaces CDI support disabled What dependencies are need to enable CDI? Paul Spencer signature.asc Description: Message signed with OpenPGP using GPGMail
Re: FlowScope beans are being added to the FlowScope.
On 04/07/2014 06:52, Paul Spencer wrote: MyFaces 2.2.3 2.2.4 jetty-maven-plugin:8.1.15.v20140411 FlowScope beans are being added to the FlowScope. I suspect this is related to the message below. org.apache.myfaces.util.ExternalSpecifications isCDIAvailable INFO: MyFaces CDI support disabled What dependencies are need to enable CDI? I use DeltaSpike 1.0.0 with MyFaces 2.2.4 and OpenWebBeans 1.2.2 on tomcat 7 (7.0.39). Apart from the fact that this stack performs well and has some nice extras, such as vdl.createComponent, the main advantage I see in using it is that people from those projects work together with those components. So it is easier to get support. I also use PrimeFaces and OmniFaces, but it seems to me that their development is less tightly coupled (especially for omnifaces, as it seems to me that BalusC is glassfish/weld oriented). I can send you my pom.xml if this can help you. Best regards, Ludovic | | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT. |
Re: Getting NPE when flowscope value evaluates to null.
Hi I tried to set the null value with MyFaces 2.2.4 and it works as expected. But trying with Mojarra 2.2.7 I get this: javax.faces.component.UpdateModelException: java.lang.NullPointerException at javax.faces.component.UIInput.updateModel(UIInput.java:866) at javax.faces.component.UIInput.processUpdates(UIInput.java:749) at javax.faces.component.UIForm.processUpdates(UIForm.java:281) Caused by: java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1124) at javax.el.MapELResolver.setValue(MapELResolver.java:265) at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255) at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281) at com.sun.el.parser.AstValue.setValue(AstValue.java:201) at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:291) at org.apache.webbeans.el22.WrappedValueExpression.setValue(WrappedValueExpression.java:95) at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131) at javax.faces.component.UIInput.updateModel(UIInput.java:832) ... 34 more Take a look your classpath, probably something is not right. regards, Leonardo 2014-07-03 23:08 GMT-05:00 Paul Spencer pau...@apache.org: MyFaces 2.2.3 2.2.4 jetty-maven-plugin:8.1.15.v20140411 Getting NPE when Flow Scope parameter evaluates to null. If no value is entered for firstName before “continue” on campaigns/campaigns.xhtml is clicked, the NPE below thrown. Otherwise the page2.xhtml is displayed as expected. *** * campaigns/campaigns.xhtml *** h:outputLabel for=firstName value=First Name / h:inputText id=firstName value=#{flowScope.firstName} maxlength=10 / h:commandButton value=“Continue” action=“page2” / *** * campaigns/page2.xhtml *** h:commandButton value=“Exit action=campaigns-return / h:outputLabel for=firstName value=First Name / h:inputText id=“firstName value=#{flowScope.firstName} maxlength=10 / *** * Error displayed when page2.xhtml is returned and firstName is null *** java.lang.NullPointerException viewId=/campaigns/campaigns.xhtml location=/Users/paul/Documents/workspace-4.3.2/VenderRollsImporterMockUp/src/main/webapp/campaigns/campaigns.xhtml phaseId=UPDATE_MODEL_VALUES(4) Caused by: java.lang.NullPointerException - java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1124) HtmlInputText class=class javax.faces.component.html.HtmlInputText” clientId=j_id_s:firstName disabled=false id=firstName immediate=false inView=true localValueSet=true maxlength=10 readonly=false rendered=true required=false size=-2147483648 transient=false valid=false value=#{flowScope.firstName} location=/campaigns/campaigns.xhtml at line 76 and column 82/ - State size:246 bytes *** * Scopes Value *** Request Parameters Name Value j_id_s:firstName j_id_s:j_id_x Continue j_id_s_SUBMIT 1 jfwid -lbh0f813a Is this normal? Paul Spencer