schema validation breaks when oxf.xforms.noscript = false

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

schema validation breaks when oxf.xforms.noscript = false

Henk Visser
Hi there,

I have a page with a schema validation setup. The setup works when the 'oxf.xforms.noscript' property is set to true. However when I change the property to false the validation doesn't seems to work anymore. Looks like 'xxforms-invalid' and 'xxforms-invalid' events are not fired/handled correctly. However, could be something entirely different of course as well.

Attached you'll find a page called test.xhtml(test.xhtml) and an xsd called test.xsd(test.xsd). When you run page with the 'oxf.xforms.noscript' property is set to true, you'll first see a link labelled 'invalid-form-case'. Then when you enter 3-letters in the input-field and press the button labelled 'Button x', you'll see a link labelled 'valid-form-case'. The test.xsd associated with to input-field requires input of 3 letters in order to be valid.

When you run page with the 'oxf.xforms.noscript' property is set to false, you'll see both links, 'invalid-form-case' and 'valid-form-case', on the page. When entering 3-letters in the input-field and pressing the button, labelled 'Button x', nothing changes. I expected the page to behave like described with 'oxf.xforms.noscript' property is set to true in this situation as well.

Does any-one know what could be the problem.

Thanks and kind regards,

Henk
Reply | Threaded
Open this post in threaded view
|

Re: schema validation breaks when oxf.xforms.noscript = false

Henk Visser
This post was updated on .
Addition: oddly enough, when oxf.xforms.noscript is set to false the xforms:switch doesn't seem to work anymore.
Reply | Threaded
Open this post in threaded view
|

Re: schema validation breaks when oxf.xforms.noscript = false

Alessandro  Vernet
Administrator
In reply to this post by Henk Visser
Hi Henk,

I am testing your example, but things seem to work fine for me without setting oxf.xforms.noscript=true, i.e. with the script enabled. What version of Orbeon Forms are you using? If this is a pre-4.1 release, would you be able to try this again with 4.1?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: schema validation breaks when oxf.xforms.noscript = false

Henk Visser
Hi Alex,

Indeed I'm working with pre 4.1 version (4.0xxx) of orbeon. I'll give it a try with 4.1.

Tanks and best regards,

Henk
Reply | Threaded
Open this post in threaded view
|

Re: schema validation breaks when oxf.xforms.noscript = false

Alessandro  Vernet
Administrator
Hi Henk,

I'd be surprised if this changed between 4.0 and 4.1, but you never know, since this works for me in 4.1.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet