Hi Leo,
I use this line of code to get the param in the actionListenter:
Object param =
((UIParameter)event.getComponent().getChildren().get(0)).getValue();
Regards
Helmut
----- Original Message -----
From: "Leonhard Holzer" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Wednesday, August 01, 2007 3:01 PM
Subject: [Tobago] parameter for detail links
Hello list,
I use spring webflow together with tobago 1.0.11 on java 1.4.
I have a sheet:
<tc:sheet
value="#{tableSearchCriteria.tableList}"
columns="100px;70px;70px;70px;*" var="row">
<tc:column label="#{global.tableName}">
<tc:out value="#{row}" />
</tc:column>
...
<tc:column label="#{global.actions}">
<tc:form id="describeTableForm">
<tc:button label="#{global.cmdDescribe}"
action="describe" actionListener="#{tableSearchCriteria.test}">
<tc:attribute name="testTable"
value="test123"/>
<f:param name="tableNameId"
value="Test23"/>
</tc:button>
</tc:form>
</tc:column>
...
</tc:sheet>
but the parameter tableNameId is not transfered to the server.If I read
all request parameters in the actionListener:
FacesContext context = FacesContext.getCurrentInstance();
Map map = context.getExternalContext().getRequestMap();
Iterator iter = map.keySet().iterator();
while (iter.hasNext()) {
String key = (String) iter.next();
System.out.println("key: "+key+" -> "+map.get(key));
}
The parameter tableNameId is not part of the parameters. does anyone have
any suggestions?
regards
Leo