Hello,
Does the 'validate' attribute of <submission>
accept expressions? If it's set to "true" or "false", then the expected
behaviour takes place.
If I try to evaluate it dynamically based on a
model element (see below for 2 ways), then if the form is not valid, no
submission takes place, as if the attribute was set to true.
I've tried 2 ways (see below) but no
luck.
Thank you,
JL
<head>
<xforms:model> <xforms:instance id="form-data" xmlns=""> <test-data> <test /> </test-data> </xforms:instance>
<xforms:instance id="local-data" xmlns=""
>
<local-data> <validate-submit>false</validate-submit> <!-- bound to a select1 --> </local-data> </xforms:instance> <xforms:bind nodeset="//test" required="true" constraint="string-length(.) > 2"/>
<xforms:submission method="post" id="form-submit"
validate="boolean-from-string(instance('local-data')/validate-submit)"
action="something here" />
<!--<xforms:submission method="post" id="form-submit" validate="boolean-from-string(//validate-submit)" action="something here<A href='http://www.orbeon.com/ops/xforms-sandbox/"/'>"/>--> </xforms:model> </head> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Jean-Luc,
AVTs were no supported on @validate and @relevant. I was working on some related code so I added AVTs now. With the latest code, you should be able to write: validate="{instance('local-data')/validate-submit}" -Erik On May 21, 2008, at 2:16 PM, Jean Luc wrote: > Hello, > > Does the 'validate' attribute of <submission> accept expressions? If > it's set to "true" or "false", then the expected behaviour takes > place. > If I try to evaluate it dynamically based on a model element (see > below for 2 ways), then if the form is not valid, no submission > takes place, as if the attribute was set to true. > > I've tried 2 ways (see below) but no luck. > > Thank you, > JL > > > > <head> > <xforms:model> > <xforms:instance id="form-data" xmlns=""> > <test-data> > <test /> > </test-data> > </xforms:instance> > <xforms:instance id="local-data" xmlns="" > > <local-data> > <validate-submit>false</validate-submit> <!-- bound > to a select1 --> > </local-data> > </xforms:instance> > > <xforms:bind nodeset="//test" required="true" > constraint="string-length(.) > 2"/> > > <xforms:submission method="post" id="form-submit" > validate="boolean-from-string(instance('local-data')/validate- > submit)" action="something here" /> > <!--<xforms:submission method="post" id="form-submit" > validate="boolean-from-string(//validate-submit)" action="something > here"/>--> > </xforms:model> > </head> > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Erik,
Thanks for the changes. I built from the latest in CVS (got the latest this morning and built with ant; the logged version is 3.6.0.200805221357). I tried both approaches as below: <xforms:submission method="post" id="form-submit"validate="{instance('local-data')/validate-submit}"/> <xforms:submission method="post" id="form-submit" validate="{//validate-submit}"/> but the form still wasn't posted. The validate-submit element was false, as it could be seen with the inspector. Any ideas? Thanks, JL ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Wednesday, May 21, 2008 7:18 PM Subject: [ops-users] Re: evaluation of the <submission> validate attribute ? > Jean-Luc, > > AVTs were no supported on @validate and @relevant. I was working on > some related code so I added AVTs now. With the latest code, you > should be able to write: > > validate="{instance('local-data')/validate-submit}" > > -Erik > > On May 21, 2008, at 2:16 PM, Jean Luc wrote: > >> Hello, >> >> Does the 'validate' attribute of <submission> accept expressions? If >> it's set to "true" or "false", then the expected behaviour takes >> place. >> If I try to evaluate it dynamically based on a model element (see >> below for 2 ways), then if the form is not valid, no submission >> takes place, as if the attribute was set to true. >> >> I've tried 2 ways (see below) but no luck. >> >> Thank you, >> JL >> >> >> >> <head> >> <xforms:model> >> <xforms:instance id="form-data" xmlns=""> >> <test-data> >> <test /> >> </test-data> >> </xforms:instance> >> <xforms:instance id="local-data" xmlns="" > >> <local-data> >> <validate-submit>false</validate-submit> <!-- bound >> to a select1 --> >> </local-data> >> </xforms:instance> >> >> <xforms:bind nodeset="//test" required="true" >> constraint="string-length(.) > 2"/> >> >> <xforms:submission method="post" id="form-submit" >> validate="boolean-from-string(instance('local-data')/validate- >> submit)" action="something here" /> >> <!--<xforms:submission method="post" id="form-submit" >> validate="boolean-from-string(//validate-submit)" action="something >> here"/>--> >> </xforms:model> >> </head> >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Jean Luc-2
I've also tried using boolean-from-string with the two approaches, but still
no luck. <xforms:submission method="post" id="form-submit" validate="{boolean-from-string(//validate-submit)}"/> <xforms:submission method="post" id="form-submit" validate="{boolean-from-string(instance('local-data')/validate-submit)}"/> ----- Original Message ----- From: "Jean Luc" <[hidden email]> To: <[hidden email]> Sent: Thursday, May 22, 2008 10:51 AM Subject: Re: [ops-users] Re: evaluation of the <submission> validate attribute ? > Hi Erik, > > Thanks for the changes. I built from the latest in CVS (got the latest > this morning and built with ant; the logged version is > 3.6.0.200805221357). > > I tried both approaches as below: > > <xforms:submission method="post" > id="form-submit"validate="{instance('local-data')/validate-submit}"/> > <xforms:submission method="post" id="form-submit" > validate="{//validate-submit}"/> > > but the form still wasn't posted. The validate-submit element was false, > as it could be seen with the inspector. > > Any ideas? > Thanks, > JL > > > ----- Original Message ----- > From: "Erik Bruchez" <[hidden email]> > To: <[hidden email]> > Sent: Wednesday, May 21, 2008 7:18 PM > Subject: [ops-users] Re: evaluation of the <submission> validate attribute > ? > > >> Jean-Luc, >> >> AVTs were no supported on @validate and @relevant. I was working on >> some related code so I added AVTs now. With the latest code, you >> should be able to write: >> >> validate="{instance('local-data')/validate-submit}" >> >> -Erik >> >> On May 21, 2008, at 2:16 PM, Jean Luc wrote: >> >>> Hello, >>> >>> Does the 'validate' attribute of <submission> accept expressions? If >>> it's set to "true" or "false", then the expected behaviour takes >>> place. >>> If I try to evaluate it dynamically based on a model element (see >>> below for 2 ways), then if the form is not valid, no submission >>> takes place, as if the attribute was set to true. >>> >>> I've tried 2 ways (see below) but no luck. >>> >>> Thank you, >>> JL >>> >>> >>> >>> <head> >>> <xforms:model> >>> <xforms:instance id="form-data" xmlns=""> >>> <test-data> >>> <test /> >>> </test-data> >>> </xforms:instance> >>> <xforms:instance id="local-data" xmlns="" > >>> <local-data> >>> <validate-submit>false</validate-submit> <!-- bound >>> to a select1 --> >>> </local-data> >>> </xforms:instance> >>> >>> <xforms:bind nodeset="//test" required="true" >>> constraint="string-length(.) > 2"/> >>> >>> <xforms:submission method="post" id="form-submit" >>> validate="boolean-from-string(instance('local-data')/validate- >>> submit)" action="something here" /> >>> <!--<xforms:submission method="post" id="form-submit" >>> validate="boolean-from-string(//validate-submit)" action="something >>> here"/>--> >>> </xforms:model> >>> </head> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> -- >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >> http://www.orbeon.com/ >> >> > > > -------------------------------------------------------------------------------- > > >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing >> list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
I think our nightly builds were stuck so you did not get the fix.
That's fixed now. -Erik On May 22, 2008, at 8:07 AM, Jean Luc wrote: > I've also tried using boolean-from-string with the two approaches, > but still no luck. > > <xforms:submission method="post" id="form-submit" validate="{boolean- > from-string(//validate-submit)}"/> > <xforms:submission method="post" id="form-submit" validate="{boolean- > from-string(instance('local-data')/validate-submit)}"/> > > ----- Original Message ----- From: "Jean Luc" <[hidden email]> > To: <[hidden email]> > Sent: Thursday, May 22, 2008 10:51 AM > Subject: Re: [ops-users] Re: evaluation of the <submission> validate > attribute ? > > >> Hi Erik, >> >> Thanks for the changes. I built from the latest in CVS (got the >> latest this morning and built with ant; the logged version is >> 3.6.0.200805221357). >> >> I tried both approaches as below: >> >> <xforms:submission method="post" id="form- >> submit"validate="{instance('local-data')/validate-submit}"/> >> <xforms:submission method="post" id="form-submit" validate="{// >> validate-submit}"/> >> >> but the form still wasn't posted. The validate-submit element was >> false, as it could be seen with the inspector. >> >> Any ideas? >> Thanks, >> JL >> >> >> ----- Original Message ----- From: "Erik Bruchez" <[hidden email] >> > >> To: <[hidden email]> >> Sent: Wednesday, May 21, 2008 7:18 PM >> Subject: [ops-users] Re: evaluation of the <submission> validate >> attribute ? >> >> >>> Jean-Luc, >>> >>> AVTs were no supported on @validate and @relevant. I was working on >>> some related code so I added AVTs now. With the latest code, you >>> should be able to write: >>> >>> validate="{instance('local-data')/validate-submit}" >>> >>> -Erik >>> >>> On May 21, 2008, at 2:16 PM, Jean Luc wrote: >>> >>>> Hello, >>>> >>>> Does the 'validate' attribute of <submission> accept expressions? >>>> If >>>> it's set to "true" or "false", then the expected behaviour takes >>>> place. >>>> If I try to evaluate it dynamically based on a model element (see >>>> below for 2 ways), then if the form is not valid, no submission >>>> takes place, as if the attribute was set to true. >>>> >>>> I've tried 2 ways (see below) but no luck. >>>> >>>> Thank you, >>>> JL >>>> >>>> >>>> >>>> <head> >>>> <xforms:model> >>>> <xforms:instance id="form-data" xmlns=""> >>>> <test-data> >>>> <test /> >>>> </test-data> >>>> </xforms:instance> >>>> <xforms:instance id="local-data" xmlns="" > >>>> <local-data> >>>> <validate-submit>false</validate-submit> <!-- bound >>>> to a select1 --> >>>> </local-data> >>>> </xforms:instance> >>>> >>>> <xforms:bind nodeset="//test" required="true" >>>> constraint="string-length(.) > 2"/> >>>> >>>> <xforms:submission method="post" id="form-submit" >>>> validate="boolean-from-string(instance('local-data')/validate- >>>> submit)" action="something here" /> >>>> <!--<xforms:submission method="post" id="form-submit" >>>> validate="boolean-from-string(//validate-submit)" action="something >>>> here"/>--> >>>> </xforms:model> >>>> </head> >>>> >>>> -- >>>> You receive this message as a subscriber of the [hidden email] >>>> mailing list. >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >>> -- >>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >>> http://www.orbeon.com/ >>> >>> >> >> >> -------------------------------------------------------------------------------- >> >> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
I didn't use the nightly build but built from CVS (because I have to patch
XHTMLHeadHandler locally to fix the URL rewriting) . I just did another cvs up and will try again. C:\work\orbeoncvs\orbeon>cvs -q up P build.xml U oxf.version P patch_exist.sh P descriptors/web-inf/static/exist-conf.xml cvs update: `lib/exist-1_2.jar' is no longer in the repository U lib/exist-1_2_1.jar cvs update: `lib/exist-modules-1_2.jar' is no longer in the repository U lib/exist-modules-1_2_1.jar cvs update: `lib/exist-ngram-module-1_2.jar' is no longer in the repository U lib/exist-ngram-module-1_2_1.jar cvs update: `lib/exist-optional-1_2.jar' is no longer in the repository U lib/exist-optional-1_2_1.jar cvs update: `lib/saxon-8_8_orbeon_20080423.jar' is no longer in the repository U lib/saxon-8_8_orbeon_20080516.jar P src/java/org/orbeon/oxf/processor/LDAPProcessor.java P src/java/org/orbeon/oxf/xforms/XFormsFunctionLibrary.java P src/java/org/orbeon/oxf/xforms/XFormsIndexUtils.java U src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java P src/java/org/orbeon/oxf/xforms/XFormsStaticState.java P src/java/org/orbeon/oxf/xforms/action/actions/XFormsActionAction.java P src/java/org/orbeon/oxf/xforms/action/actions/XFormsDeleteAction.java P src/java/org/orbeon/oxf/xforms/action/actions/XFormsSetvalueAction.java P src/java/org/orbeon/oxf/xforms/event/XFormsEventHandlerImpl.java P src/java/org/orbeon/oxf/xforms/event/events/XFormsSubmitSerializeEvent.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsAttribute.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsCallXPL.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsContext.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsElement.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsGetRequestAttribute.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsGetRequestHeader.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsGetRequestParameter.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsGetSessionAttribute.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsInstance.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsListInstances.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsListModels.java U src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsMutable.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsProperty.java P src/java/org/orbeon/oxf/xml/schemas/ldap-config.rng P src/resources/apps/fr/components.xsl P src/resources/apps/fr/includes/persistence-model.xml P src/resources/apps/fr/style/form-runner.css U src/resources/forms/orbeon/builder/accordion-menu-v2.js cvs update: `src/resources/forms/orbeon/builder/example-1.xml' is no longer in the repository P src/resources/forms/orbeon/builder/form-builder.css U src/resources/forms/orbeon/builder/form/dialog-actions.xml cvs update: `src/resources/forms/orbeon/builder/form/dialog-bindings.xml' is no longer in the repository U src/resources/forms/orbeon/builder/form/dialog-database-service.xml P src/resources/forms/orbeon/builder/form/dialog-edit-source.xml U src/resources/forms/orbeon/builder/form/dialog-services.xml cvs update: `src/resources/forms/orbeon/builder/form/dialog-submission.xml' is no longer in the repository P src/resources/forms/orbeon/builder/form/dialog-toolbox.xml U src/resources/forms/orbeon/builder/form/form.xhtml P src/resources/forms/orbeon/builder/form/model.xml U src/resources/forms/orbeon/service/echo.xpl U src/resources/forms/orbeon/service/page-flow.xml P src/resources-packaged/ops/javascript/xforms.js C:\work\orbeoncvs\orbeon>cvs -q up ? src/java/org/orbeon/oxf/xforms/processor/handlers/XHTMLHeadHandler.java.original U oxf.version P src/java/org/orbeon/oxf/processor/URIProcessorOutputImpl.java P src/java/org/orbeon/oxf/processor/pdf/XHTMLToPDFProcessor.java P src/java/org/orbeon/oxf/xforms/XFormsFunctionLibrary.java P src/java/org/orbeon/oxf/xforms/XFormsModel.java U src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java P src/java/org/orbeon/oxf/xforms/XFormsServerSharedInstancesCache.java P src/java/org/orbeon/oxf/xforms/XFormsSubmissionUtils.java P src/java/org/orbeon/oxf/xforms/event/events/XFormsSubmitSerializeEvent.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsMutable.java P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsProperty.java M src/java/org/orbeon/oxf/xforms/processor/handlers/XHTMLHeadHandler.java P src/resources/apps/doc/pages/reference-xforms-2.xml P src/resources/apps/fr/components.xsl P src/resources/apps/fr/style/form-runner.css U src/resources/apps/fr/style/images/silk/calculator_edit.png P src/resources/apps/xforms-sandbox/samples/offline-initial-events.xhtml P src/resources/forms/orbeon/builder/form-builder.css P src/resources/forms/orbeon/builder/form/dialog-actions.xml P src/resources/forms/orbeon/builder/form/dialog-services.xml U src/resources/forms/orbeon/builder/form/form.xhtml P src/resources-packaged/ops/javascript/xforms.js ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Thursday, May 22, 2008 2:28 PM Subject: [ops-users] Re: Re: Re: evaluation of the <submission> validate attribute ? >I think our nightly builds were stuck so you did not get the fix. > That's fixed now. > > -Erik > > On May 22, 2008, at 8:07 AM, Jean Luc wrote: > >> I've also tried using boolean-from-string with the two approaches, >> but still no luck. >> >> <xforms:submission method="post" id="form-submit" validate="{boolean- >> from-string(//validate-submit)}"/> >> <xforms:submission method="post" id="form-submit" validate="{boolean- >> from-string(instance('local-data')/validate-submit)}"/> >> >> ----- Original Message ----- From: "Jean Luc" <[hidden email]> >> To: <[hidden email]> >> Sent: Thursday, May 22, 2008 10:51 AM >> Subject: Re: [ops-users] Re: evaluation of the <submission> validate >> attribute ? >> >> >>> Hi Erik, >>> >>> Thanks for the changes. I built from the latest in CVS (got the >>> latest this morning and built with ant; the logged version is >>> 3.6.0.200805221357). >>> >>> I tried both approaches as below: >>> >>> <xforms:submission method="post" id="form- >>> submit"validate="{instance('local-data')/validate-submit}"/> >>> <xforms:submission method="post" id="form-submit" validate="{// >>> validate-submit}"/> >>> >>> but the form still wasn't posted. The validate-submit element was >>> false, as it could be seen with the inspector. >>> >>> Any ideas? >>> Thanks, >>> JL >>> >>> >>> ----- Original Message ----- From: "Erik Bruchez" <[hidden email] >>> > >>> To: <[hidden email]> >>> Sent: Wednesday, May 21, 2008 7:18 PM >>> Subject: [ops-users] Re: evaluation of the <submission> validate >>> attribute ? >>> >>> >>>> Jean-Luc, >>>> >>>> AVTs were no supported on @validate and @relevant. I was working on >>>> some related code so I added AVTs now. With the latest code, you >>>> should be able to write: >>>> >>>> validate="{instance('local-data')/validate-submit}" >>>> >>>> -Erik >>>> >>>> On May 21, 2008, at 2:16 PM, Jean Luc wrote: >>>> >>>>> Hello, >>>>> >>>>> Does the 'validate' attribute of <submission> accept expressions? >>>>> If >>>>> it's set to "true" or "false", then the expected behaviour takes >>>>> place. >>>>> If I try to evaluate it dynamically based on a model element (see >>>>> below for 2 ways), then if the form is not valid, no submission >>>>> takes place, as if the attribute was set to true. >>>>> >>>>> I've tried 2 ways (see below) but no luck. >>>>> >>>>> Thank you, >>>>> JL >>>>> >>>>> >>>>> >>>>> <head> >>>>> <xforms:model> >>>>> <xforms:instance id="form-data" xmlns=""> >>>>> <test-data> >>>>> <test /> >>>>> </test-data> >>>>> </xforms:instance> >>>>> <xforms:instance id="local-data" xmlns="" > >>>>> <local-data> >>>>> <validate-submit>false</validate-submit> <!-- bound >>>>> to a select1 --> >>>>> </local-data> >>>>> </xforms:instance> >>>>> >>>>> <xforms:bind nodeset="//test" required="true" >>>>> constraint="string-length(.) > 2"/> >>>>> >>>>> <xforms:submission method="post" id="form-submit" >>>>> validate="boolean-from-string(instance('local-data')/validate- >>>>> submit)" action="something here" /> >>>>> <!--<xforms:submission method="post" id="form-submit" >>>>> validate="boolean-from-string(//validate-submit)" action="something >>>>> here"/>--> >>>>> </xforms:model> >>>>> </head> >>>>> >>>>> -- >>>>> You receive this message as a subscriber of the [hidden email] >>>>> mailing list. >>>>> To unsubscribe: mailto:[hidden email] >>>>> For general help: mailto:[hidden email]?subject=help >>>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>>> >>>> -- >>>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >>>> http://www.orbeon.com/ >>>> >>>> >>> >>> >>> -------------------------------------------------------------------------------- >>> >>> >>>> >>>> -- >>>> You receive this message as a subscriber of the [hidden email] >>>> mailing list. >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>>> >> >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
The anonymous CVS gets synchronized when a build is done, so the CVS
was probably not up to date. -Erik On May 22, 2008, at 1:46 PM, Jean Luc wrote: > I didn't use the nightly build but built from CVS (because I have to > patch XHTMLHeadHandler locally to fix the URL rewriting) . I just > did another cvs up and will try again. > > C:\work\orbeoncvs\orbeon>cvs -q up > P build.xml > U oxf.version > P patch_exist.sh > P descriptors/web-inf/static/exist-conf.xml > cvs update: `lib/exist-1_2.jar' is no longer in the repository > U lib/exist-1_2_1.jar > cvs update: `lib/exist-modules-1_2.jar' is no longer in the repository > U lib/exist-modules-1_2_1.jar > cvs update: `lib/exist-ngram-module-1_2.jar' is no longer in the > repository > U lib/exist-ngram-module-1_2_1.jar > cvs update: `lib/exist-optional-1_2.jar' is no longer in the > repository > U lib/exist-optional-1_2_1.jar > cvs update: `lib/saxon-8_8_orbeon_20080423.jar' is no longer in the > repository > U lib/saxon-8_8_orbeon_20080516.jar > P src/java/org/orbeon/oxf/processor/LDAPProcessor.java > P src/java/org/orbeon/oxf/xforms/XFormsFunctionLibrary.java > P src/java/org/orbeon/oxf/xforms/XFormsIndexUtils.java > U src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java > P src/java/org/orbeon/oxf/xforms/XFormsStaticState.java > P src/java/org/orbeon/oxf/xforms/action/actions/ > XFormsActionAction.java > P src/java/org/orbeon/oxf/xforms/action/actions/ > XFormsDeleteAction.java > P src/java/org/orbeon/oxf/xforms/action/actions/ > XFormsSetvalueAction.java > P src/java/org/orbeon/oxf/xforms/event/XFormsEventHandlerImpl.java > P src/java/org/orbeon/oxf/xforms/event/events/ > XFormsSubmitSerializeEvent.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/ > XXFormsAttribute.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsCallXPL.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsContext.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsElement.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/ > XXFormsGetRequestAttribute.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/ > XXFormsGetRequestHeader.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/ > XXFormsGetRequestParameter.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/ > XXFormsGetSessionAttribute.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsInstance.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/ > XXFormsListInstances.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/ > XXFormsListModels.java > U src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsMutable.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsProperty.java > P src/java/org/orbeon/oxf/xml/schemas/ldap-config.rng > P src/resources/apps/fr/components.xsl > P src/resources/apps/fr/includes/persistence-model.xml > P src/resources/apps/fr/style/form-runner.css > U src/resources/forms/orbeon/builder/accordion-menu-v2.js > cvs update: `src/resources/forms/orbeon/builder/example-1.xml' is no > longer in the repository > P src/resources/forms/orbeon/builder/form-builder.css > U src/resources/forms/orbeon/builder/form/dialog-actions.xml > cvs update: `src/resources/forms/orbeon/builder/form/dialog- > bindings.xml' is no longer in the repository > U src/resources/forms/orbeon/builder/form/dialog-database-service.xml > P src/resources/forms/orbeon/builder/form/dialog-edit-source.xml > U src/resources/forms/orbeon/builder/form/dialog-services.xml > cvs update: `src/resources/forms/orbeon/builder/form/dialog- > submission.xml' is no longer in the repository > P src/resources/forms/orbeon/builder/form/dialog-toolbox.xml > U src/resources/forms/orbeon/builder/form/form.xhtml > P src/resources/forms/orbeon/builder/form/model.xml > U src/resources/forms/orbeon/service/echo.xpl > U src/resources/forms/orbeon/service/page-flow.xml > P src/resources-packaged/ops/javascript/xforms.js > > C:\work\orbeoncvs\orbeon>cvs -q up > ? src/java/org/orbeon/oxf/xforms/processor/handlers/ > XHTMLHeadHandler.java.original > U oxf.version > P src/java/org/orbeon/oxf/processor/URIProcessorOutputImpl.java > P src/java/org/orbeon/oxf/processor/pdf/XHTMLToPDFProcessor.java > P src/java/org/orbeon/oxf/xforms/XFormsFunctionLibrary.java > P src/java/org/orbeon/oxf/xforms/XFormsModel.java > U src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java > P src/java/org/orbeon/oxf/xforms/XFormsServerSharedInstancesCache.java > P src/java/org/orbeon/oxf/xforms/XFormsSubmissionUtils.java > P src/java/org/orbeon/oxf/xforms/event/events/ > XFormsSubmitSerializeEvent.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsMutable.java > P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsProperty.java > M src/java/org/orbeon/oxf/xforms/processor/handlers/ > XHTMLHeadHandler.java > P src/resources/apps/doc/pages/reference-xforms-2.xml > P src/resources/apps/fr/components.xsl > P src/resources/apps/fr/style/form-runner.css > U src/resources/apps/fr/style/images/silk/calculator_edit.png > P src/resources/apps/xforms-sandbox/samples/offline-initial- > events.xhtml > P src/resources/forms/orbeon/builder/form-builder.css > P src/resources/forms/orbeon/builder/form/dialog-actions.xml > P src/resources/forms/orbeon/builder/form/dialog-services.xml > U src/resources/forms/orbeon/builder/form/form.xhtml > P src/resources-packaged/ops/javascript/xforms.js > ----- Original Message ----- From: "Erik Bruchez" > <[hidden email]> > To: <[hidden email]> > Sent: Thursday, May 22, 2008 2:28 PM > Subject: [ops-users] Re: Re: Re: evaluation of the <submission> > validate attribute ? > > >> I think our nightly builds were stuck so you did not get the fix. >> That's fixed now. >> >> -Erik >> >> On May 22, 2008, at 8:07 AM, Jean Luc wrote: >> >>> I've also tried using boolean-from-string with the two approaches, >>> but still no luck. >>> >>> <xforms:submission method="post" id="form-submit" >>> validate="{boolean- >>> from-string(//validate-submit)}"/> >>> <xforms:submission method="post" id="form-submit" >>> validate="{boolean- >>> from-string(instance('local-data')/validate-submit)}"/> >>> >>> ----- Original Message ----- From: "Jean Luc" >>> <[hidden email]> >>> To: <[hidden email]> >>> Sent: Thursday, May 22, 2008 10:51 AM >>> Subject: Re: [ops-users] Re: evaluation of the <submission> validate >>> attribute ? >>> >>> >>>> Hi Erik, >>>> >>>> Thanks for the changes. I built from the latest in CVS (got the >>>> latest this morning and built with ant; the logged version is >>>> 3.6.0.200805221357). >>>> >>>> I tried both approaches as below: >>>> >>>> <xforms:submission method="post" id="form- >>>> submit"validate="{instance('local-data')/validate-submit}"/> >>>> <xforms:submission method="post" id="form-submit" validate="{// >>>> validate-submit}"/> >>>> >>>> but the form still wasn't posted. The validate-submit element was >>>> false, as it could be seen with the inspector. >>>> >>>> Any ideas? >>>> Thanks, >>>> JL >>>> >>>> >>>> ----- Original Message ----- From: "Erik Bruchez" <[hidden email] >>>> > >>>> To: <[hidden email]> >>>> Sent: Wednesday, May 21, 2008 7:18 PM >>>> Subject: [ops-users] Re: evaluation of the <submission> validate >>>> attribute ? >>>> >>>> >>>>> Jean-Luc, >>>>> >>>>> AVTs were no supported on @validate and @relevant. I was working >>>>> on >>>>> some related code so I added AVTs now. With the latest code, you >>>>> should be able to write: >>>>> >>>>> validate="{instance('local-data')/validate-submit}" >>>>> >>>>> -Erik >>>>> >>>>> On May 21, 2008, at 2:16 PM, Jean Luc wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> Does the 'validate' attribute of <submission> accept expressions? >>>>>> If >>>>>> it's set to "true" or "false", then the expected behaviour takes >>>>>> place. >>>>>> If I try to evaluate it dynamically based on a model element (see >>>>>> below for 2 ways), then if the form is not valid, no submission >>>>>> takes place, as if the attribute was set to true. >>>>>> >>>>>> I've tried 2 ways (see below) but no luck. >>>>>> >>>>>> Thank you, >>>>>> JL >>>>>> >>>>>> >>>>>> >>>>>> <head> >>>>>> <xforms:model> >>>>>> <xforms:instance id="form-data" xmlns=""> >>>>>> <test-data> >>>>>> <test /> >>>>>> </test-data> >>>>>> </xforms:instance> >>>>>> <xforms:instance id="local-data" xmlns="" > >>>>>> <local-data> >>>>>> <validate-submit>false</validate-submit> <!-- bound >>>>>> to a select1 --> >>>>>> </local-data> >>>>>> </xforms:instance> >>>>>> >>>>>> <xforms:bind nodeset="//test" required="true" >>>>>> constraint="string-length(.) > 2"/> >>>>>> >>>>>> <xforms:submission method="post" id="form-submit" >>>>>> validate="boolean-from-string(instance('local-data')/validate- >>>>>> submit)" action="something here" /> >>>>>> <!--<xforms:submission method="post" id="form-submit" >>>>>> validate="boolean-from-string(//validate-submit)" >>>>>> action="something >>>>>> here"/>--> >>>>>> </xforms:model> >>>>>> </head> >>>>>> >>>>>> -- >>>>>> You receive this message as a subscriber of the [hidden email] >>>>>> mailing list. >>>>>> To unsubscribe: mailto:[hidden email] >>>>>> For general help: mailto:[hidden email]?subject=help >>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>>>> >>>>> -- >>>>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >>>>> http://www.orbeon.com/ >>>>> >>>>> >>>> >>>> >>>> -------------------------------------------------------------------------------- >>>> >>>> >>>>> >>>>> -- >>>>> You receive this message as a subscriber of the [hidden email] >>>>> mailing list. >>>>> To unsubscribe: mailto:[hidden email] >>>>> For general help: mailto:[hidden email]?subject=help >>>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>>>> >>> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> -- >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >> http://www.orbeon.com/ >> >> > > > -------------------------------------------------------------------------------- > > >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
I tried with the new code and the post makes it through, however, I get the
following error in the server log. This is new. I tried setting omit-xml-declaration="true" or omit-xml-declaration="false" for the <submission> element but it didn't make a difference. I haven't seen this before, I presume it's a new check in saxon-8_8_orbeon_20080516.jar (the only file that contains SEPM0009). Any suggestion? Thank you, JL 08/05/23 11:13:22 Error SEPM0009: Values of 'standalone' and 'omit-xml-declaration' conflict 008-05-23 11:13:22,766 ERROR XFormsServer - XForms - submission - xforms-submit-error throwable: org.orbeon.saxon.trans.DynamicError: Values of 'standalone' and 'omit-xml-declaration' conflict at org.orbeon.saxon.event.XMLEmitter.writeDeclaration(XMLEmitter.java:206) at org.orbeon.saxon.event.XMLEmitter.openDocument(XMLEmitter.java:136) at org.orbeon.saxon.event.XMLEmitter.startElement(XMLEmitter.java:271) at org.orbeon.saxon.event.XMLIndenter.startElement(XMLIndenter.java:75) at org.orbeon.saxon.event.NamespaceReducer.startElement(NamespaceReducer.java:54) at org.orbeon.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:217) at org.dom4j.io.SAXWriter.startElement(SAXWriter.java:810) at org.dom4j.io.SAXWriter.write(SAXWriter.java:732) at org.dom4j.io.SAXWriter.writeContent(SAXWriter.java:619) at org.dom4j.io.SAXWriter.write(SAXWriter.java:202) at org.dom4j.io.SAXWriter.parse(SAXWriter.java:603) at org.orbeon.saxon.event.Sender.sendSAXSource(Sender.java:269) at org.orbeon.saxon.event.Sender.send(Sender.java:124) at org.orbeon.saxon.IdentityTransformer.transform(IdentityTransformer.java:29) at org.orbeon.oxf.xml.TransformerWrapper.transform(TransformerUtils.java:554) at org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:615) at org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:1155) at org.orbeon.oxf.xforms.XFormsContainingDocument.executeExternalEvent(XFormsContainingDocument.java:935) at org.orbeon.oxf.xforms.processor.XFormsServer.executeExternalEventHandleDeferredEvents(XFormsServer.java:346) at org.orbeon.oxf.xforms.processor.XFormsServer.doIt(XFormsServer.java:287) at org.orbeon.oxf.xforms.processor.XFormsServer.start(XFormsServer.java:91) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:644) ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Thursday, May 22, 2008 4:54 PM Subject: [ops-users] Re: Re: Re: Re: Re: evaluation of the <submission> validate attribute ? > The anonymous CVS gets synchronized when a build is done, so the CVS > was probably not up to date. > > -Erik > > On May 22, 2008, at 1:46 PM, Jean Luc wrote: > >> I didn't use the nightly build but built from CVS (because I have to >> patch XHTMLHeadHandler locally to fix the URL rewriting) . I just >> did another cvs up and will try again. >> >> C:\work\orbeoncvs\orbeon>cvs -q up >> P build.xml >> U oxf.version >> P patch_exist.sh >> P descriptors/web-inf/static/exist-conf.xml >> cvs update: `lib/exist-1_2.jar' is no longer in the repository >> U lib/exist-1_2_1.jar >> cvs update: `lib/exist-modules-1_2.jar' is no longer in the repository >> U lib/exist-modules-1_2_1.jar >> cvs update: `lib/exist-ngram-module-1_2.jar' is no longer in the >> repository >> U lib/exist-ngram-module-1_2_1.jar >> cvs update: `lib/exist-optional-1_2.jar' is no longer in the >> repository >> U lib/exist-optional-1_2_1.jar >> cvs update: `lib/saxon-8_8_orbeon_20080423.jar' is no longer in the >> repository >> U lib/saxon-8_8_orbeon_20080516.jar >> P src/java/org/orbeon/oxf/processor/LDAPProcessor.java >> P src/java/org/orbeon/oxf/xforms/XFormsFunctionLibrary.java >> P src/java/org/orbeon/oxf/xforms/XFormsIndexUtils.java >> U src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java >> P src/java/org/orbeon/oxf/xforms/XFormsStaticState.java >> P src/java/org/orbeon/oxf/xforms/action/actions/ >> XFormsActionAction.java >> P src/java/org/orbeon/oxf/xforms/action/actions/ >> XFormsDeleteAction.java >> P src/java/org/orbeon/oxf/xforms/action/actions/ >> XFormsSetvalueAction.java >> P src/java/org/orbeon/oxf/xforms/event/XFormsEventHandlerImpl.java >> P src/java/org/orbeon/oxf/xforms/event/events/ >> XFormsSubmitSerializeEvent.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/ >> XXFormsAttribute.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsCallXPL.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsContext.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsElement.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/ >> XXFormsGetRequestAttribute.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/ >> XXFormsGetRequestHeader.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/ >> XXFormsGetRequestParameter.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/ >> XXFormsGetSessionAttribute.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsInstance.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/ >> XXFormsListInstances.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/ >> XXFormsListModels.java >> U src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsMutable.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsProperty.java >> P src/java/org/orbeon/oxf/xml/schemas/ldap-config.rng >> P src/resources/apps/fr/components.xsl >> P src/resources/apps/fr/includes/persistence-model.xml >> P src/resources/apps/fr/style/form-runner.css >> U src/resources/forms/orbeon/builder/accordion-menu-v2.js >> cvs update: `src/resources/forms/orbeon/builder/example-1.xml' is no >> longer in the repository >> P src/resources/forms/orbeon/builder/form-builder.css >> U src/resources/forms/orbeon/builder/form/dialog-actions.xml >> cvs update: `src/resources/forms/orbeon/builder/form/dialog- >> bindings.xml' is no longer in the repository >> U src/resources/forms/orbeon/builder/form/dialog-database-service.xml >> P src/resources/forms/orbeon/builder/form/dialog-edit-source.xml >> U src/resources/forms/orbeon/builder/form/dialog-services.xml >> cvs update: `src/resources/forms/orbeon/builder/form/dialog- >> submission.xml' is no longer in the repository >> P src/resources/forms/orbeon/builder/form/dialog-toolbox.xml >> U src/resources/forms/orbeon/builder/form/form.xhtml >> P src/resources/forms/orbeon/builder/form/model.xml >> U src/resources/forms/orbeon/service/echo.xpl >> U src/resources/forms/orbeon/service/page-flow.xml >> P src/resources-packaged/ops/javascript/xforms.js >> >> C:\work\orbeoncvs\orbeon>cvs -q up >> ? src/java/org/orbeon/oxf/xforms/processor/handlers/ >> XHTMLHeadHandler.java.original >> U oxf.version >> P src/java/org/orbeon/oxf/processor/URIProcessorOutputImpl.java >> P src/java/org/orbeon/oxf/processor/pdf/XHTMLToPDFProcessor.java >> P src/java/org/orbeon/oxf/xforms/XFormsFunctionLibrary.java >> P src/java/org/orbeon/oxf/xforms/XFormsModel.java >> U src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java >> P src/java/org/orbeon/oxf/xforms/XFormsServerSharedInstancesCache.java >> P src/java/org/orbeon/oxf/xforms/XFormsSubmissionUtils.java >> P src/java/org/orbeon/oxf/xforms/event/events/ >> XFormsSubmitSerializeEvent.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsMutable.java >> P src/java/org/orbeon/oxf/xforms/function/xxforms/XXFormsProperty.java >> M src/java/org/orbeon/oxf/xforms/processor/handlers/ >> XHTMLHeadHandler.java >> P src/resources/apps/doc/pages/reference-xforms-2.xml >> P src/resources/apps/fr/components.xsl >> P src/resources/apps/fr/style/form-runner.css >> U src/resources/apps/fr/style/images/silk/calculator_edit.png >> P src/resources/apps/xforms-sandbox/samples/offline-initial- >> events.xhtml >> P src/resources/forms/orbeon/builder/form-builder.css >> P src/resources/forms/orbeon/builder/form/dialog-actions.xml >> P src/resources/forms/orbeon/builder/form/dialog-services.xml >> U src/resources/forms/orbeon/builder/form/form.xhtml >> P src/resources-packaged/ops/javascript/xforms.js >> ----- Original Message ----- From: "Erik Bruchez" >> <[hidden email]> >> To: <[hidden email]> >> Sent: Thursday, May 22, 2008 2:28 PM >> Subject: [ops-users] Re: Re: Re: evaluation of the <submission> >> validate attribute ? >> >> >>> I think our nightly builds were stuck so you did not get the fix. >>> That's fixed now. >>> >>> -Erik >>> >>> On May 22, 2008, at 8:07 AM, Jean Luc wrote: >>> >>>> I've also tried using boolean-from-string with the two approaches, >>>> but still no luck. >>>> >>>> <xforms:submission method="post" id="form-submit" >>>> validate="{boolean- >>>> from-string(//validate-submit)}"/> >>>> <xforms:submission method="post" id="form-submit" >>>> validate="{boolean- >>>> from-string(instance('local-data')/validate-submit)}"/> >>>> >>>> ----- Original Message ----- From: "Jean Luc" >>>> <[hidden email]> >>>> To: <[hidden email]> >>>> Sent: Thursday, May 22, 2008 10:51 AM >>>> Subject: Re: [ops-users] Re: evaluation of the <submission> validate >>>> attribute ? >>>> >>>> >>>>> Hi Erik, >>>>> >>>>> Thanks for the changes. I built from the latest in CVS (got the >>>>> latest this morning and built with ant; the logged version is >>>>> 3.6.0.200805221357). >>>>> >>>>> I tried both approaches as below: >>>>> >>>>> <xforms:submission method="post" id="form- >>>>> submit"validate="{instance('local-data')/validate-submit}"/> >>>>> <xforms:submission method="post" id="form-submit" validate="{// >>>>> validate-submit}"/> >>>>> >>>>> but the form still wasn't posted. The validate-submit element was >>>>> false, as it could be seen with the inspector. >>>>> >>>>> Any ideas? >>>>> Thanks, >>>>> JL >>>>> >>>>> >>>>> ----- Original Message ----- From: "Erik Bruchez" <[hidden email] >>>>> > >>>>> To: <[hidden email]> >>>>> Sent: Wednesday, May 21, 2008 7:18 PM >>>>> Subject: [ops-users] Re: evaluation of the <submission> validate >>>>> attribute ? >>>>> >>>>> >>>>>> Jean-Luc, >>>>>> >>>>>> AVTs were no supported on @validate and @relevant. I was working >>>>>> on >>>>>> some related code so I added AVTs now. With the latest code, you >>>>>> should be able to write: >>>>>> >>>>>> validate="{instance('local-data')/validate-submit}" >>>>>> >>>>>> -Erik >>>>>> >>>>>> On May 21, 2008, at 2:16 PM, Jean Luc wrote: >>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> Does the 'validate' attribute of <submission> accept expressions? >>>>>>> If >>>>>>> it's set to "true" or "false", then the expected behaviour takes >>>>>>> place. >>>>>>> If I try to evaluate it dynamically based on a model element (see >>>>>>> below for 2 ways), then if the form is not valid, no submission >>>>>>> takes place, as if the attribute was set to true. >>>>>>> >>>>>>> I've tried 2 ways (see below) but no luck. >>>>>>> >>>>>>> Thank you, >>>>>>> JL >>>>>>> >>>>>>> >>>>>>> >>>>>>> <head> >>>>>>> <xforms:model> >>>>>>> <xforms:instance id="form-data" xmlns=""> >>>>>>> <test-data> >>>>>>> <test /> >>>>>>> </test-data> >>>>>>> </xforms:instance> >>>>>>> <xforms:instance id="local-data" xmlns="" > >>>>>>> <local-data> >>>>>>> <validate-submit>false</validate-submit> <!-- bound >>>>>>> to a select1 --> >>>>>>> </local-data> >>>>>>> </xforms:instance> >>>>>>> >>>>>>> <xforms:bind nodeset="//test" required="true" >>>>>>> constraint="string-length(.) > 2"/> >>>>>>> >>>>>>> <xforms:submission method="post" id="form-submit" >>>>>>> validate="boolean-from-string(instance('local-data')/validate- >>>>>>> submit)" action="something here" /> >>>>>>> <!--<xforms:submission method="post" id="form-submit" >>>>>>> validate="boolean-from-string(//validate-submit)" >>>>>>> action="something >>>>>>> here"/>--> >>>>>>> </xforms:model> >>>>>>> </head> >>>>>>> >>>>>>> -- >>>>>>> You receive this message as a subscriber of the [hidden email] >>>>>>> mailing list. >>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>>>>> >>>>>> -- >>>>>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >>>>>> http://www.orbeon.com/ >>>>>> >>>>>> >>>>> >>>>> >>>>> -------------------------------------------------------------------------------- >>>>> >>>>> >>>>>> >>>>>> -- >>>>>> You receive this message as a subscriber of the [hidden email] >>>>>> mailing list. >>>>>> To unsubscribe: mailto:[hidden email] >>>>>> For general help: mailto:[hidden email]?subject=help >>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>>>>> >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the [hidden email] >>>> mailing list. >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >>> -- >>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >>> http://www.orbeon.com/ >>> >>> >> >> >> -------------------------------------------------------------------------------- >> >> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |