Hello,
I’ve a list of objects displayed in a page. I want to collect ids of
selected object by adding a check box for each of these objects. Then I’ll
use another action event to do something with this collection of ids.
But I’m getting the following error message:
Unable to resolve expression 'formSubmit' for
[EMAIL PROTECTED]
binding: ExpressionBinding[InfringementsMaint formSubmit]
location: context:/InfringementsMaint.html, line 10
Can any one please help me out on this?
My code below:
.html
<table border="1" cellpadding="1" cellspacing="0" class="jive-table">
<form jwcid="@Form" listener="ognl:listeners.formSubmit">
<div class="jive-contentBoxHeader">Infringement List</div>
<tr class="jive-table-header">
<td>Inf Type</td>
<td>Tran Type</td>
<td>Name</td>
<td>Address</td>
<td>Offence</td>
<td>Reminder</td>
<td>Edit/Delete</td>
<td>Add to Batch</td>
</tr>
<tr jwcid="@Foreach" source="ognl:infringements"
value="ognl:currentInfringement" element="tr">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<input type="checkbox" jwcid="@Checkbox"
selected="ognl:addToBatch"/>
</td>
</tr>
</form>
</table>
.page
<property-specification name="addToBatch" type="boolean" persistent="yes"/>
.java
public abstract boolean isAddToBatch();
public abstract void setAddToBatch(boolean value);
public void formSubmit(RequestCycle cycle) {
if (isAddToBatch()) {
//Get all the infringement Id to add into Batch and add them into
a collection
}
}
--
View this message in context:
http://www.nabble.com/T3%3A-CheckBox-tf4369817.html#a12455075
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]