This post was updated on .
Hi there,
When I use the following piece of code: <xforms:switch> <xforms:case id="case-a" selected="true">A</xforms:case> <xforms:case id="case-b" selected="false">B</xforms:case> </xforms:switch> I would expect the letter 'A' to appear on page load and the letter 'B' not to. However both letters appear on the page when the page loaded. Can any-one tell me what might be wrong? Thanks and best regards, Henk |
Administrator
|
That's right, and that's the behavior I see if I use that code snippet.
You will need to provide more information. Orbeon Forms version? How do you run that code? -Erik |
Hi Erik,
I'm running the page in Orbeon 4.1 with the following properties (defined in properties-local.xml): <property as="xs:boolean" name="oxf.xforms.host-language-avts" value="true"/> <property as="xs:anyURI" name="oxf.epilogue.theme" value="oxf:/config/theme-new.xsl"/> <property as="xs:boolean" name="oxf.epilogue.use-theme" value="true"/> <property as="xs:string" processor-name="oxf:/page-flow" name="page-public-methods" value="GET HEAD POST PUT"/> <property as="xs:boolean" name="oxf.xforms.minimal-resources" value="true"/> <property as="xs:boolean" name="oxf.xforms.combine-resources" value="false"/> <property as="xs:string" name="oxf.crypto.password" value="secret"/> When I add the oxf.xforms.noscript property to the mix and set it to 'true' then the switch works. Best regards, Henk |
Administrator
|
Could it be that theme-new.xsl breaks the HTML somehow? theme-new.xsl
is not part of Orbeon Forms. Try commenting out those properties to see if things work better. -Erik On Tue, May 7, 2013 at 12:51 AM, Henk Visser <[hidden email]> wrote: > Hi Erik, > > I'm running the page in Orbeon 4.1 with the following properties (defined in > properties-local.xml): > > <property as="xs:boolean" name="oxf.xforms.host-language-avts" > value="true"/> > <property as="xs:anyURI" name="oxf.epilogue.theme" > value="oxf:/config/theme-new.xsl"/> > <property as="xs:boolean" name="oxf.epilogue.use-theme" > value="true"/> > > <property as="xs:string" processor-name="oxf:/page-flow" > name="page-public-methods" value="GET HEAD POST PUT"/> > <property as="xs:boolean" name="oxf.xforms.minimal-resources" > value="true"/> > <property as="xs:boolean" name="oxf.xforms.combine-resources" > value="false"/> > > <property as="xs:string" name="oxf.crypto.password" value="secret"/> > > When I add the oxf.xforms.noscript property to the mix and set it to 'true' > then the switch works. > > Best regards, > > Henk > > -- > View this message in context: http://discuss.orbeon.com/orbeon-switch-tp4656705p4656716.html > Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. > To post to this group, send email to [hidden email]. > > -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Hi Erik,
I tried getting the switch to work by commenting out the properties and also by replacing theme-new.xsl by the theme-plain.xsl and it still didn't work. Setting the oxf.xforms.noscript property to true does make it work though. Best regards, Henk |
Administrator
|
Henk,
Can you send a reproducible case? This definitely is something that works as we use switch all the time. And it's fine if oxf.xforms.noscript works for you, but then you will be running in noscript mode. Is that something you want to do? -Erik On Wed, May 8, 2013 at 4:30 AM, Henk Visser <[hidden email]> wrote: > Hi Erik, > > I tried getting the switch to work by commenting out the properties and also > by replacing theme-new.xsl by the theme-plain.xsl and it still didn't work. > Setting the oxf.xforms.noscript property to true does make it work though. > > Best regards, > > Henk > > -- > View this message in context: http://discuss.orbeon.com/orbeon-switch-tp4656705p4656727.html > Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. > To post to this group, send email to [hidden email]. > > -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Free forum by Nabble | Edit this page |