Hi Ramon,
i can't see any functional problem in your code fragment, just some
layouting issues.
Can you add the DebugPhaseListener [1] to see if the applicationPhase
is reached?
to the layouting:
you don't need the tc:cell if only one component is included.
if you want layout inside a sheet cell you should have a panel around
the content.
the layout facet of column did not do anything.
so your fragment should look like:
<tc:column >
<tc:panel>
<f:facet name="layout">
<tc:gridLayout columns="*"/>
</f:facet>
<tc:link label="#{doc.title}" action="viewDoc"
actionListener="#{browseController.linkClicked}">
<f:param name="docId" value="#{doc.id}"/>
</tc:link>
<tc:out value="#{doc.description}"/>
<tc:panel>
</tc:column>
Regards,
Volker
[1]: http://wiki.apache.org/myfaces/Tobago_DebugPhaseListener
2007/11/2, Ramon Ziai <[EMAIL PROTECTED]>:
> Hi,
>
> I have a strange problem with links inside tc:sheet rows. I am new to
> Tobago and JSF in general, so please bear with me if this is an obvious
> problem. Consider the following fragment:
>
> <tc:sheet columns="2*;6*;2*" var="doc" value="#{requestScope.docList}"
> showHeader="false">
>
> ...
>
> <tc:column >
> <f:facet name="layout">
> <tc:gridLayout columns="*"/>
> </f:facet>
> <tc:cell>
> <tc:link label="#{doc.title}" action="viewDoc"
> actionListener="#{browseController.linkClicked}">
> <f:param name="docId" value="#{doc.id}"/>
> </tc:link>
> </tc:cell>
> <tc:cell>
> <tc:out value="#{doc.description}"/>
> </tc:cell>
> </tc:column>
>
> ...
>
> </tc:sheet>
>
>
> Now if such a link is clicked, the page is just reloaded and empty,
> since the request-scoped data is gone. No attempt to even construct the
> controller is made, let alone call the actionListener method. If I place
> the link outside the sheet, things work as expected.
>
> The Tobago version is 1.0.12, MyFaces is 1.2 and I'm developing with
> Tomcat6 under Linux i386, if that's necessary info at all.
>
> I've found issues in the list archives that sound similar but were in
> fact mostly concerned with getting the selection index in the sheet, a
> point I cannot reach yet.
>
> Any hints would be most welcome.
>
> Best,
> Ramon
>
>