Hi all
I am a beginner in Cocoon and I try to do the following:
I have a search form which presents some results in a table. When i press a row in the table,
a detail page appears.
Actually i do something like this:
flow:
// do search...
var trxList = ...
// show result form
form.showForm("activityFollowup.form", {trxList:trxList});
// get the selected row
var id = form.submitId;
// and display the detail page
form.showForm("transactionDetail.form", {trx:trxList[id]});
In the form definition I create the table like this:
<jx:set var="counter" value="#{0}"/>
<table id="resultTable" width="100%" border="0" cellspacing="0">
<jx:forEach var="item" items="${trxList}">
<jx:set var="counter" value="#{1 + $counter}"/>
<tr>
<td>
// represent the text as submit link to go back in the flow
<input class="submitLink" type="submit" id="${counter}" value="${item.trxDate} />
</td>
.
.
.
</tr>
</jx:forEach>
</table>
Back in the flowscript, unfortunately the submitId is null. How can I detect
on which row the user klicked?
Regards,
Roland Seiler
