You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by abhilash <so...@gmail.com> on 2007/08/30 12:02:17 UTC
primaryKey converter problem
Hi all,
I have a table inside a form with a checkbox as a column.I am listing all
the items in the table using primaryKeyConverter.
When i select the checkbox(item) and submit the page my item(or items which
is a collection) is becomming null.My code in HTML page is
<table>
<tbody jwcid="@For" source="ognl:items" value="ognl:item"
converter="ognl:converter" index="ognl:index">
..................
</tbody>
</table>
The top of the stack trace:
org.apache.tapestry.BindingException
2 Unable to update OGNL expression '<parsed OGNL expression>' of
$DentalCharting_33@f5d08e[DentalCharting] to true: target is null for
setProperty(null, "selected", true)
3 binding: ExpressionBinding[DentalCharting item.selected]
4 location: context:/DentalCharting.html, line 764
5 759 <th>Our Fee</th>
6 760 </tr>
7 761
8 762
9 763 <tr>
10 764 <td width="1%"><input jwcid="delete@Checkbox"
selected="ognl:item.selected" type="checkbox" name="" /></td>
11 765 <td>Procedure Code
12 766 <div class="preauth_mark" jwcid="@If"
condition="ognl:item.preauth != null" element="div">
13 767 EditPreAuthorization.html P </div>
14 768 <div class="claim_mark" jwcid="@If" condition="ognl:item.claim
!= null" element="div">
15 769 EditClaim.html C </div>
16
17 org.apache.hivemind.ApplicationRuntimeException
18 Unable to update OGNL expression '<parsed OGNL expression>' of
$DentalCharting_33@f5d08e[DentalCharting] to true: target is null for
setProperty(null, "selected", true)
19 component: $DentalCharting_33@f5d08e[DentalCharting]
20 location: context:/DentalCharting.html
21
22 ognl.OgnlException
23 target is null for setProperty(null, "selected", true)
24 Stack Trace:
25
26 * ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1624)
27 * ognl.ASTProperty.setValueBody(ASTProperty.java:105)
28 * ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
29 * ognl.SimpleNode.setValue(SimpleNode.java:246)
30 * ognl.ASTChain.setValueBody(ASTChain.java:172)
31 * ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
any ideas?
Thanks in advance
abhilash
--
View this message in context: http://www.nabble.com/primaryKey-converter-problem-tf4353177.html#a12404039
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org