This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

In MyFaces 1.2, UPDATE_MODEL_VALUES phase set object model to default value even though it is null

Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application, I have myFaces 1.2.

In object model I have BigDecimal field and it is populated with Custom converter.

This custom converter return NULL from getAsObject and getAsString if value is null.
Now I can see this custom convert is returning NULL when I keep my Text Field empty but in UPDATE_MODEL_VALUES phase it is populated with default value.

Does this happen with every body ?
Note:- Same program set null value to object model if it is null returned from Custom Converter fine in my Faces 1.1

Money : null
Money : 0
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!