1 Reply Latest reply on Apr 19, 2016 10:56 PM by Massoud Kohan

    Get 'HTTP 405 Method not Allowed' when I submit the rich:dataTable records' Form

    Massoud Kohan Newbie

      I have richFaces DataTabe  which reders records from the java bean which works perfectly but when I click on the submit button I got odd error 'HTTP 405 Method not Allowed' .

      Bu when I use the  JQuery dataTabe which has  html table ,  ui:repeat and h:commandButtonbmit and when I click the submit but it works for both I used the same java beans.

      I do not know why I am getting this error.

      Please help.

      MK

       

      <h:form id="form">

        <h:panelGrid columnClasses="left">

           <rich:dataTable  id="table" value="#{customBeanTwo.workItemApprovalLists}"  var="list" rows="22"  onRowMouseOver="this.style.backgroundColor='#GGGGGG'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" >

        <f:facet name="header">                      

        <rich:columnGroup>

                          <rich:column colspan="8">

                              <h:outputText value="WorkItems Approvals" />

                          </rich:column>

                          <rich:column breakRowBefore="true">

                              <h:outputText value="WorkItem/Decision" />

                          </rich:column>                   

                           <rich:column>

                              <h:outputText value="RequestId" />

                          </rich:column>

                          <rich:column>

                              <h:outputText value="Application" />

                          </rich:column>

                          <rich:column>

                              <h:outputText value="Operation" />

                          </rich:column>

                          <rich:column>

                              <h:outputText value="Attribute" />

                          </rich:column>

                     <rich:column>

                              <h:outputText value="Value(s)" />

                          </rich:column>

        <rich:column>

                              <h:outputText value="Requester Comments" />

                          </rich:column>

        <rich:column>

         <h:outputText value="Comments" />                   

                          </rich:column>

                      </rich:columnGroup>

                  </f:facet>

        <rich:column colspan="8">

                      <rich:collapsibleSubTableToggler for="sbtbl" />

                      <h:outputText value="#{list.item}" />

       

        <h:inputHidden value="#{customBeanTwo.workItemApprovalLists.size()}" id="SubTableNumber" />

        <h:inputHidden value="#{list.count}" id="collapsSubTableNumber" />

                  </rich:column>

        <rich:collapsibleSubTable value="#{list.approvalItems}" var="item" id="sbtbl" expandMode="client" expanded="true" rows="8">

                        <rich:column>

                       <div style='float:left;width:20px;height:20px' class='approveRadio imageRadio' onclick="toggleButtons(this);"> </div>

                <div style='margin-left:21px;width:20px;height:20px' class='revokeRadio imageRadio' onclick="toggleButtons(this);"> </div>

                       </rich:column>

        <rich:column>

                          <h:outputText value="#{item.requestIdNumber}" />

        <h:inputHidden value="#{item.workItemNumber}" id="workItemNumber" /> <h:inputHidden value="#{item.workItemName}" id="workItemName" />  

                      </rich:column>

                      <rich:column>

                          <h:outputText value="#{item.application}" />

        <h:inputHidden value="#{item.requestIdNumber}" id="requestIdNumber" /> <h:inputHidden value="#{item.requestId}" id="requestId" />

        <h:inputHidden  id="approvalId"   value="#{item.approvalId}"  /><h:inputHidden value="#{item.approvalItemName}" id="approvalItemName" />

        <h:inputHidden value="#{item.approvalItemValue}" id="approvalItemValue" />

                      </rich:column>

                      <rich:column>

                          <h:outputText value="#{item.operation}" />

                      </rich:column>

                      <rich:column>

                          <h:outputText value="#{item.approvalItemName}" />

                      </rich:column>

                      <rich:column>

                          <h:outputText value="#{item.approvalItemValue}" />

                      </rich:column>

        <rich:column>

                          <h:outputText value="#{item.requester}" />

                      </rich:column>

                      <rich:column>

                          <h:inputText name="comment" />

                      </rich:column>

        <f:facet name="footer">

                          <h:outputText value="#{list.approvalItems.size()} item(s) " />

                      </f:facet>

        </rich:collapsibleSubTable>

       

              </rich:dataTable>

      <h:commandButton value="Submit" action="#{customBeanTwo.saveComplete}" class="btn primaryBtn btn btn-success btn-next" />

         

        </h:panelGrid>

          </h:form>