Make sure you've declared a getter and setter for price in your Product
class. The output you're seeing is expected and works for me in a
similar case.
smithfox skrev:
Yes, I tried earlier
<form t:type="form">
<input t:type="TextField" t:value="sale.product.price"/>
<input type="submit" value="submit"/>
</form>
After render, the html is :
<input id="textfield" name="textfield" type="text" value="12">
Obviously, when i submit, occur exception beacuse my page class has no
textfield field.
Filip S. Adamsen-2 wrote:
Yeah, then you definitely need to set the VALUE to sale.product.price,
not the id. Just listen to Nick, he knows what he's talking about. : )
smithfox skrev:
It's a edit form.
Nick Westgate wrote:
Why are you binding the id to that? Don't you mean
t:value="sale.product.price"?
Cheers,
Nick.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]