4 Replies Latest reply on Jun 19, 2007 6:53 PM by Marcin Niebudek

    using EL for variable ID's within columns

    koen handekyn Newbie

      i'm trying to use the EL to generate unique element id's for elements within a datatable. however, for some reason it doesn't seem to work.

      what is the appropriate way to generate unique id's for elements within a datatable iteration?

      by the way : the goal of the below snipet is to open a model panel to allow a user to enter or edit row data.

      thanx for your reaction

      <rich:column>

      <rich:modalPanel id="modelPanelID#{task.id}"
      minHeight="200" minWidth="450" height="200"
      width="500" zindex="2000">
      <f:facet name="header">
      <h:outputText value="Approve Invoice"/>
      </f:facet>
      <f:facet name="controls">
      <h:graphicImage
      value="/images/modal/close.png"
      style="cursor:pointer"
      onclick="Richfaces.hideModalPanel('mp')"/>
      </f:facet>

      <h:inputText
      value="#{task.variables['invoice'].approvedBy}"
      style="width: 100px">
      </h:inputText>

      <s:button action="#{invoiceApproval.approve}"
      taskInstance="#{task}" value="Approve"/>

      </rich:modalPanel> <a href="javascript:Richfaces.showModalPanel('modelPanelID#{task.id}',{width:450, top:200})">
      approve

      </rich:column>