myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AM <greenm...@gmail.com>
Subject Use a button in a sheet and open a popup with the same row
Date Mon, 26 Mar 2012 07:21:10 GMT
Hello!

I have a tc:sheet and I want for each row a button.
This button has to open a pop up.

^^ it works well!

My problem is that I would like to get the data from a row, which
button I had clicked.

<tc:sheet value="#{suchController.suchPerGesuchter}" var="perGes" columns="*;*">

        <tc:column label="NAME">    <tc:out value="#{per [0]}" />  </tc:column>

        <tc:column>
           <jsp:include page="/PopUp.jsp" />  <tc:button label="TEST" />--%>
           <tc:panel>

                <tc:button label="Detail">
                    <f:facet name="popup">
                        <tc:popup width="950" height="400">
                            <tc:box label="Details">
                                <f:facet name="layout">
                                    <tc:gridLayout columns="*" rows="*;fixed"/>
                                </f:facet>
                                <tc:panel>
                                    <f:facet name="layout">
                                        <tc:gridLayout
columns="*;*;*;*;*" rows="fixed"/>
                                    </f:facet>
                                    <tc:out value="PRINT ANOTHER INDEX
OF THE ROW BEFORE " />
                                </tc:panel>
          …..
    </tc:sheet>

Mime
View raw message