I'm sure that I have getter and setter for price.
Could you show me your code. 
Thanks


Filip S. Adamsen-2 wrote:
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-How-to-bind-composite-class%27-field%28like-sale.product.price%29-in-page-template-tf4395512.html#a12554435
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to