Rahul Agarwal wrote:
<xforms:bind nodeset="/Root/Template/DwellUseCd" calculate="string(/Root/RS/DwellUseCd)"/>
<xforms:bind nodeset="/Root/Template/DwellUseCd" required="true()"/>
<xforms:bind nodeset="/Root/Template/DwellUseCd" constraint="string-length(.) > 10"/>
I've created two control in View XSL as follows -
<xforms:input ref="/Root/Template/DwellUseCd"/> <xforms:submit> <xforms:label>Update</xforms:label> </xforms:submit>
When I click on "Update" button, Orbeon does form validation and always throws error "Please correct the errors on this page." irrespective of whether I give correct values in input control or not. I observed that if I do not specify "calculate" bind expression, it works perfectly. Please tell whether it is a bug or I'm doing something wrong here.
Hi Rahul,
You XForms controls is bound to Template/DwellUseCd, and the two validation binds (with required and constraint) apply on Template/DwellUseCd. So far everything is good.
Now I am wondering why you are starting by copying into Template/DwellUseCd the value under RS/DwellUseCd. Doing so will overwrite the value entered by the user by the value under RS/DwellUseCd, which might be invalid according to the next two rules, hence the error that gets reported.
Alex
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
