myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: [Trinidad] s:link in Trinidad table
Date Fri, 13 Jun 2008 22:01:15 GMT
I have found it better myself to use <s:conversationPropagation> an
other non-rendered tags instead of the ones that produce HTML. This
way you can let the Trinidad code properly render components in your
selected render kit. You also will be able to use PPR.

On Fri, Jun 13, 2008 at 3:13 AM, Mathias Walter <do-not-reply@jboss.com> wrote:
> 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
>
>

Mime
View raw message