Hi,
this question is related to JBoss Seam and Apache Trinidad. It's maybe a
problem with one of the frameworks. If anyone had the same or a similar
problem (maybe configuration), it would be great to know a solution.
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/P
atients.xhtml:patientManager.details(pat)&cid=3&dataModelSelection=pat:patie
nts[0]
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/P
atients.xhtml:patientManager.details(pat)&cid=3
As you can see, the dataModelSelection parameter is missing and therefore
"pat" is null.
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