0 Replies Latest reply on Jun 13, 2008 12:07 AM by tolot27

    s:link in Trinidad table

    tolot27

      Hi,


      I'm trying to use s:link in a tr:column of a trinidad tr:table. Unfortunatelly, the link would not be rendered as if it is inside a h:column of a h:dataTable.


      Example:


      <h:dataTable value="#{patients}" var="pat">
              <h:column>
                      <f:facet name="header">Aktionen</f:facet>
                      <s:link id="viewPatient" value="Details" action="#{patientManager.details(pat)}"/>
              </h:column>
      </h:dataTable>
      



      The link url is rendered as


      http://localhost:8080/PatientWeb/general/Patients.jsf?actionMethod=general%2FPatients.xhtml%3ApatientManager.details%28pat%29&cid=3&dataModelSelection=pat%3Apatients%5B0%5D


      Whereas:


      <tr:table value="#{patients}" var="pat">
              <tr:column headerText="Aktionen">
                      <s:link id="viewPatient" value="Details" action="#{patientManager.details(pat)}"/>
              </tr:column>
      </tr:table>
      



      results in:


      http://localhost:8080/PatientWeb/general/Patients.jsf?actionMethod=general%2FPatients.xhtml%3ApatientManager.details%28pat%29&cid=3


      I've set up

      <web:context-filter url-pattern="/adf/*"/>

      in the components.xml already.


      How can I use s:link in a tr:table or achive the same (transfer of pat into the managed bean)?


      --
      Kind regards,
      Mathias