9 Replies Latest reply on Aug 12, 2008 9:58 AM by Sascha Janz

    modalpanel containing datatable no calling setter method

    Sascha Janz Master

      i got an modalpanel with an datatable

      when i click the commandbutton neither of my Setter Methods jsp1Bean.setMembers and jsp1Beam.setMembername are called.

      why?

      my code is



       <rich:modalPanel id="selectactor" autosized="true">
      
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText value="auwahl"></h:outputText>
       </h:panelGroup>
       </f:facet>
       <a4j:form id="frm2">
       <rich:dataTable value="#{jsp1Bean.members}" var="m"
       onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       cellpadding="0" cellspacing="0" columnsWidth="5%,10%,85%"
       width="100%" border="0" columns="3">
      
      
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column colspan="1">
       <h:outputText value="" />
       </rich:column>
       <rich:column colspan="1">
       <h:outputText value="Benutzer/Rolle" />
       </rich:column>
       <rich:column colspan="1">
       <h:outputText value="Name" />
       </rich:column>
      
       </rich:columnGroup>
      
       </f:facet>
       <rich:columnGroup>
       <rich:column colspan="1">
       <center><h:selectBooleanCheckbox value="#{m.selected}" />
       </center>
       </rich:column>
       <rich:column colspan="1">
       <center><h:graphicImage value="#{m.image}"></h:graphicImage>
       </center>
       </rich:column>
       <rich:column colspan="1">
       <h:outputText value="#{m.name}" />
       </rich:column>
      
      
       </rich:columnGroup>
       <rich:componentControl event="onRowClick" for="" operation="">
       <f:param value="#{m.name}" name="membername" />
       </rich:componentControl>
      
      
       </rich:dataTable>
      
       <br />
       <a4j:commandButton actionListener="#{SessionBean.processAction}" action="#{SessionBean.setActorForTask}" styleClass="rich-button" immediate="true" reRender="maintable" oncomplete="Richfaces.hideModalPanel('selectactor')" value="ok">
       <a4j:actionparam name="m1" assignTo="#{jsp1Bean.membername}"
       value="{membername}" ></a4j:actionparam>
       </a4j:commandButton>
      </a4j:form >
      
      
      
      
       </rich:modalPanel>