This is a known issue at the moment. Unfortunately, some people on the list
want blanks to be represented as nulls (like me) and some want them coerced
into 0. I've tried using a Translator and can't get it to function even if
the translator returns null as well. Howard is thinking about a beautiful
solve for this in which the behavior would be dependent on the property
type: Wrappers getting null values and primitives getting 0's.

Until this, it's a bit of a pain...


On 10/26/07, li qian <[EMAIL PROTECTED]> wrote:
>
>
> How to solve the following problem when update the Integer or Double value
> In tapestry 5.0.6 ?When I clean the value of a field whose value is 5 int
> example = 5;<input t:type="TextField" t:id="someBean" value="
> SomeBean.example"/>Then press the sumbit botton . It's displaying 0  and
> send 0 to the database.How can I do If I want Textfield to display nothing
> and update example = null in the database ?
> _________________________________________________________________
> Invite your mail contacts to join your friends list with Windows Live
> Spaces. It's easy!
>
> http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

Reply via email to