3 Replies Latest reply on Nov 8, 2007 6:14 AM by Ilya Shaikovsky

    Problem with ForceRender listener

    Alexander Kovachev Newbie

      I used when I include a JSP with <a4j:include viewId="some.jsp" /> and then inside the jsp I use ForceRender listener in datatable to dynamically render a single row of the table I get the following exception:

      SEVERE: Servlet.service() for servlet Faces Servlet threw exception
      java.lang.IllegalArgumentException: Illegal view Id for build AJAX Action URL: parentOfSome.jsp
       at org.ajax4jsf.framework.ajax.AjaxContext.getAjaxActionURL(AjaxContext.java:795)
       at org.ajax4jsf.framework.renderer.AjaxRendererUtils.buildEventOptions(AjaxRendererUtils.java:240)
       at org.ajax4jsf.framework.renderer.AjaxRendererUtils.buildOnEvent(AjaxRendererUtils.java:171)
       at org.ajax4jsf.framework.renderer.AjaxRendererUtils.buildOnClick(AjaxRendererUtils.java:131)
       at org.ajax4jsf.renderkit.AjaxCommandRendererBase.getOnClick(AjaxCommandRendererBase.java:66)
       at org.ajax4jsf.renderkit.html.CommandLinkRenderer.doEncodeBegin(CommandLinkRenderer.java:97)
       at org.ajax4jsf.renderkit.html.CommandLinkRenderer.doEncodeBegin(CommandLinkRenderer.java:88)
       at org.ajax4jsf.framework.renderer.RendererBase.encodeBegin(RendererBase.java:101)
       at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:515)
       at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:453)
      ....


      I guess the problem has to do something with the aj4:include component cause it works fine if I use facelet's <ui:include>.