2 Replies Latest reply on Nov 29, 2007 10:08 AM by Ilya Shaikovsky

    a4j:support issue

    Alexander Belov Novice

      I use the following:

      <h:commandButton value="#{app.nextWindowLabel}"
       binding="#{editMediateActorBean.submitButtonComponent}"
       id="saveButtonMediateActor">
       <a4j:support event="onclick" limitToList="true" action="#{editMediateActorBean.typeNext}"
       reRender="#{editMediateActorBean.innerPanelUpdate}" rendered="#{editMediateActorSessionBean.actionType!='DELETE_ACTION'}"/>
       <a4j:support event="onclick" limitToList="true" action="#{editMediateActorBean.typeFinish}"
       reRender="#{editMediateActorBean.addElementInputFormMessagesUpdate}" rendered="#{editMediateActorSessionBean.actionType=='DELETE_ACTION'}"
       data="#{editMediateActorBean.closePanelAfterSave}"
       oncomplete="if(data){Richfaces.hideModalPanel('#{editMediateActorBean.addElementModalPanelComponentClientId}');}"/>
       </h:commandButton>


      And have an exception: java.lang.IllegalArgumentException: Component includeStartPage:include:editMediateActor:j_id46:saveButtonMediateActor not instance of org.ajax4jsf.component.UIAjaxCommandButton
      at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:94)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:801)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:232)
      at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:106)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:825)

      Please, can anybody tell me what do I wrong?
      I use JSF 1.2_06 RI, RichFaces 3.1.3-snapshot.