This content has been marked as final.
Show 4 replies
-
1. Re: a4j support validation for empty numeric input box
nbelaevski Jul 16, 2010 1:44 PM (in response to lcbdl888)Hi Chuanbao,
Empty strings are converted to BigDecimal type as null value. Normally, they would be passed into model bean property, but you've prohibited this behavior via setting bypassUpdates="true". So, when component decides what value to render back, it checks local value first, but it's null, so model value is used and rendered back to you.
-
2. Re: a4j support validation for empty numeric input box
lcbdl888 Jul 16, 2010 2:21 PM (in response to nbelaevski)Hi Nick,
Thank you for your reply. From my understanding, if the local value is null, the box should be empty. This is the way that it renders a null value from database loading.
-
3. Re: a4j support validation for empty numeric input box
nbelaevski Jul 16, 2010 6:54 PM (in response to lcbdl888)If the local value is null, value is read from model. Is it empty there also?
-
4. Re: a4j support validation for empty numeric input box
lcbdl888 Jul 16, 2010 8:08 PM (in response to nbelaevski)No, the model has a value. So, if I want it to be blank, I have to remove the bypassUpdates="true". Thank you, Nick