[jboss-user] [JBoss Seam] - using EL for variable ID's within columns

koenhandekyn do-not-reply at jboss.com
Wed Jun 6 15:44:00 EDT 2007


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>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051887#4051887

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051887



More information about the jboss-user mailing list