Re: [Chiba-users] validation of optional fields
Creators discontinued Chiba & founded betterFORM http://betterform.de
Brought to you by:
chibaxforms,
windauer
From: Joern T. <joe...@ch...> - 2007-07-25 09:06:46
|
Martin Weinelt wrote: > On Mittwoch 25 Juli 2007, Andriy Vyedyeneyev wrote: >> I have following problem, my model defines some optional fields >> (required="false()"), and some of them have strict types like >> nonNegativeInteger, etc. >> Form itself makes reloads of instance data (replace="instance"), >> after reload i got validation errors in these optional fields. >> Before submit these fields were empty. >> >> I think these optional fields shouldn't be validated if they are >> empty and defined as optional, or am i missing something ? > > Hi Andriy, > > see ' datatypes-and-empty-values.xhtml '-example in the 'demo' folder. > > You got to add 'xsi:nil="true"' to the respective nodes in your > instance ( and the xsi-namespace to either the root node, or your > form ). Thanks Martin, forgot to mention that > > HTH, Martin > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Chiba-users mailing list > Chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiba-users |