On May 12, 2005, at 8:54 AM, martin stanik wrote:
Hallo,
i am getting BindingException, when my program tries save data from form to bean.
My page file is following:
<page-specification class="examples.CreateAccountPage"> <property-specification name="account" type="examples.Account"/>
<component id="balance" type="TextField"> <binding name="value" expression="account.balance"/> </component>
In exception dump is stated, that my class does not have setBalance (String) method.
This is right, as there is just setBalance(BigDecimal) method.
I am complete beginner and i do not know how to configure this
without duplication properties of examples.Account in examples.CreateAccountPage.
Can I somehow explain to tapestry type of account.balance property?
TextField only works with String (sadly).
You will either need to convert to/from a String or use the ValidField component instead (check the docs to get the details on how to use ValidField).
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]