2 Replies Latest reply on Aug 12, 2008 5:06 PM by ajanz

    h:inputtext is set onrowclick of datatable

    ajanz

      i got a rich:datatable and a h:inputtext.

      on the event onrowclick i want the value of h:inputtext to be rerendered.

      how can this be done? i tried various ways with actionparam and more wiht now success.

      please help.

      sample code is


      
      
       <h:inputText id="selmember" value="#{jsp1Bean.membername}"></h:inputText>
       <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="selmember" operation="setValue">
       <f:param value="#{m.name}" name="membername" />
       </rich:componentControl>
       <a4j:support event="onRowClick" reRender="selmember"/>
      
      
       </rich:dataTable>
      
       <br></br>
       <a4j:commandButton reRender="selmember" actionListener="#{SessionBean.processAction}" action="#{SessionBean.setActorForTask}" styleClass="rich-button" oncomplete="Richfaces.hideModalPanel('selectactor')" value="ok">
       <a4j:actionparam name="m1" assignTo="#{jsp1Bean.membername}"
       value="#{m.name}" ></a4j:actionparam>
       </a4j:commandButton>
       </a4j:form >