[jboss-user] [JBoss Seam] - Seam conflict with a4j:include and a4j:support

jgilbert do-not-reply at jboss.com
Tue Aug 21 10:26:25 EDT 2007


I have already shared this with the ajax4jsf forum, but they believe this is more of a seam issue.

http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076264#4076264


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.addChildParametersToHr
  | ef(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(HtmlLinkRe
  | ndererBase.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)
  | 	
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076325#4076325

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076325



More information about the jboss-user mailing list