2 Replies Latest reply on Aug 21, 2007 10:27 AM by John Gilbert

    a4j:include and a4j:support conflict

    John Gilbert Apprentice

      I am using a4j:support and onblur to do field validation on an edit screen.

      The edit page works fine standalone.

      When the edit screen is included using a4j:include i get some weird conflicts.

      1 - When no field is selected the Save button works fine.

      2 - When a field is selected and the save button is pressed then 2 requests are fired. One for onblur and one for pressing the button. Sometimes this works fine, but most times a NPE is thrown.

      Is there anyway to ensure these 2 requests don't conflict?



      Caused by: java.lang.NullPointerException
       at org.jboss.seam.core.Manager.isReallyLongRunningConversation(Manager.java:247)
       at org.jboss.seam.core.Conversation.isLongRunning(Conversation.java:312)
       at org.jboss.seam.ui.UIConversationId.getValue(UIConversationId.java:33)
       at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.addChildParametersToHref(HtmlLinkRendererBase.java:381)
       at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.renderOutputLinkStart(HtmlLinkRendererBase.java:399)
       at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:101)
       at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
       at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
       at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
       at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
       at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
       at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
       at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
       at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
       at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
       at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
       at org.ajax4jsf.portlet.application.PortletViewHandler.renderView(PortletViewHandler.java:42)
       at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
       at org.ajax4jsf.portlet.AjaxFacesPortlet.render(AjaxFacesPortlet.java:266)
       at org.ajax4jsf.portlet.AjaxFacesPortlet.doView(AjaxFacesPortlet.java:177)