Hi AM,
you should add a actionListener and a parameter to the button:
<tc:button label="Detail" actionListener="#{suchController.selectDetail}">
<f:facet name="popup">
...
</f:facet>
<f:parameter name="detail" value="#{perGes}"/>
</tc:button>
and in suchController:
public void selectDetail(ActionEvent event) {
Object detail = ComponentUtil.findParameter(event.getComponent(), "detail");
// detail is your row var
}
Regards,
Volker
Am 26. März 2012 09:21 schrieb AM <[email protected]>:
> 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>
--
inexso - information exchange solutions GmbH
Ofener Str. 30 | 26121 Oldenburg
Tel.: +49 441 219 730 56 |
FAX: +49 441 219 730 66 | eMail: [email protected]
Firmensitz: Oldenburg | Amtsgericht Oldenburg HRB 205251
Geschäftsführer: Stefan Schulte, Michael Terschüren