4 Replies Latest reply on Mar 8, 2011 10:12 PM by Rocky S

    Richfaces extendedDataTable filterBy problems

    der der Newbie

      Hello.

       

      I have a problem regarding the usage of extendedDataTable inside modalpanel with double form. Here is my code :

       

       

       

       

       

      <h:form id="myid" styleClass="edit">

      <rich:panel>

      <f:facet name="header"></f:facet>

          <s:decorate id="ddd" template="/layout/edit.xhtml">

              <ui:define name="label"></ui:define>

              <a:outputPanel id="tt" ajaxRendered="true">

                   <h:inputText id="tt1" size="20"

                               readonly="true"

                               value="#{val}"

                               rendered="#{var != null}"/>

              </a:outputPanel>

       

              <rich:spacer height="20px"/>

       

              <a:commandButton value="#{}" ajaxSingle="true"

                               reRender="hh" action="#{util.emptyAction}"

                               rendered="#{!managed}"

                               oncomplete="javascript:Richfaces.showModalPanel('panel');"/>

          </s:decorate>

       

          <rich:modalPanel id="panel" autosized="true" keepVisualState="true">

              <f:facet name="header">

                  <h:outputText value="#{messages}"/>

              </f:facet>

              <f:facet name="controls">

                          <span style="cursor: pointer"

                                onclick="javascript:Richfaces.hideModalPanel('panel');">X</span>

              </f:facet>

              <h:form prependId="false">

                  <rich:extendedDataTable

                          value="#{values}" var="var" id="table"

                          width="100px" height="100px">

       

                      <rich:column filterBy="#{var.www}" sortBy="#{var.www}"

                                   filterEvent="onblur">

                          <f:facet name="header">

                              <h:outputText value="#{messages.www}"/>

                          </f:facet>

                          <h:outputText value="#{var.www}"/>

                      </rich:column>

       

                      <h:column >

                          <f:facet name="header">Selection</f:facet>

                          <a:commandButton reRender="#{rerend}"

                                           ajaxSingle="true"

                                           action="#{obj.select}"

                                           onclick="javascript:Richfaces.hideModalPanel('panel')"

                                           value="Selection">

                          </a:commandButton>

                      </h:column>

                  </rich:extendedDataTable>

              </h:form>

          </rich:modalPanel>

      <rich:panel>

      </h:form>

       

      I believe that my problem is because i have a form in another form. But, if i eliminate the form that surounds extendedDataTable, then filterBy will not work. No i am getting this javascript error message :

       

      Error: this._form is null

      Source File: /a4j/g/3_3_1.GA/org/ajax4jsf/framework.pack.js

      Line: 2791

       

      I am using Richface 3.3.1.GA with jsf 1.2 and seam.

       

      Thx.