You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Leonhard Holzer <le...@abuscom.com> on 2007/07/17 12:26:56 UTC

[trinidad] detail action in table does not work

Hello,

I use trinidad together with spring webflow and I try to create a table 
-> edit row web flow

my jsp code is the following

                    <tr:table value="#{tableData.collectionModel}"
                        varStatus="rowStat"
                        rows="5"
                        var="row">
                        <tr:column headerText="id">
                            <tr:outputText value="#{row['id']}" />
                        </tr:column>
                        <tr:column>
                            <f:facet name="header">
                                <tr:outputText value="#{global.actions}" />
                            </f:facet>
                            <tr:column>
                                <tr:commandLink id="newRow" 
action="newRow" text="#{global.cmdNew}">
                                    <f:param name="tableNameId" 
value="Test2"/>
                                    <f:param name="rowId" value="1"/>
                                </tr:commandLink>
                            </tr:column>
                            <tr:column>
                                    <tr:commandLink id="editRow" 
immediate="true" action="newRow" text="#{global.cmdNew}" >
                                        <tr:setActionListener 
from="Test2" to="#{pageFlowScope.tableNameId}"/>
                                        <tr:setActionListener 
from="#{row['id']}" to="#{pageFlowScope.rowId}"/>
                                    </tr:commandLink>
                            </tr:column>
                        </tr:column>
                    </tr:table>
                <tr:panelButtonBar>
                        <tr:commandButton id="globalBack" action="back" 
text="#{global.cmdBack}"></tr:commandButton>
                        <tr:commandLink id="newRow" action="newRow" 
text="#{global.cmdNew}">
                            <f:param name="tableNameId" value="Test2"/>
                            <f:param name="rowId" value="1"/>
                        </tr:commandLink>
                </tr:panelButtonBar>

The action in the tablerow works fine but the two test links within the 
table don't work.

Does anybody have some suggestions.

Thanks for your help
 Leo

-- 
----------------------------------
 Leonhard Holzer
 ABusCom GmbH
 Kapuzinerplatz 9
 I 39031 Bruneck
 Tel.:  +39 0474 538 000
 Fax.:  +39 0474 538 000
 mobil: +39 335 83 28 041
 web:   www.abuscom.com
----------------------------------