5 Replies Latest reply on Mar 24, 2009 11:15 AM by liumin hu

    How to rerender a column with rich:contextmenu?

    liumin hu Master


      I want to rerender one column in a datatable after request. i tried this

      <rich:contextMenu id="cellMenu" attached="false" submitMode="ajax" >
       <rich:menuItem id="menuitem1" action="#{bean.action1}" ajaxSingle="true" reRender="{column}">
       <h:outputText value="Detail" styleClass="corps2" />
       <rich:menuItem id="menuitem2" action="#{bean.action2}" ajaxSingle="true" reRender="{column}">
       <h:outputText value="A faire" styleClass="corps2" />
      <rich:scrollableDataTable id="d2sTab" value="#{bean.lines}" var="line">
       <rich:columns index="cellDay" value="#{line.listDate}" var="d2sDate" >
       <a4j:outputPanel layout="block" id="cell#{cellDay}">
       <h:graphicImage value="#{bean.urlimg}" />
       <rich:componentControl event="onclick" for="cellMenu" operation="show">
       <f:param value="cell#{cellDay}" name="column"/>
      </rich:scrollableDataTable >

      Someone can tell me where i am wrong?

      another question is how can i find the ids rerendered after ajax by firebug ou a4j:log?

      Thanks in advance