Hi Team, How to enable a particular xforms:case within a group during the trigger event that is happening outside the xforms:group.? <xforms:group ref=".[//showform = 'true']"> <xforms:switch> <xforms:case id="showbar"> <div class="linewrapper" id="wachtwoordbar"> <span class="labelwrapper align-left"> <span class="label">Wachtwoord</span> </span> <span class="controlwrapper"> <span class="control decorated" id="linkid"> <xforms:trigger appearance="minimal" id="wijzigenlink"> <xforms:label>Wijzigen</xforms:label> <xforms:setvalue ev:event="DOMActivate" ref="instance('email_instance')//showsuccess" value="'false'"/> <xforms:toggle case="showform" ev:event="DOMActivate" /> </xforms:trigger> <span class="tooltipwrapper"> <span class="icon-questiongrey floatRight">?</span> <span class="fallback">Lorem ipsum dolor sit amet consecteur adipiscing elit.</span> </span> </span> </span> </div> </xforms:case>
<xforms:case id="showform"> <xhtml:fieldset class="alternative" id="changepasswordform"> <xhtml:h3>Wachtwoord<span class="icon-questiongrey floatRight kpn-bh-richtooltip">?</span></xhtml:h3> <xhtml:p>Loerm ipsum dolor sit amet, consectetur adipiscing elit. Nam iementum vestibulum. Aenean interdum risus nec.</xhtml:p> <!--<xforms:secret ref="instance('email_instance')//actualpassword" id="actualpassword" class="width-164" style="visibility:hidden; display:none;"/>--> <xhtml:div class="linewrapper controlwrapper control"> <xforms:secret ref="instance('email_instance')//oldpassword" id="oldpassword" xxforms:maxlength="16" onchange="alertblock()"> <xforms:label class="labelwrapper">huidig wachtwoord*</xforms:label> </xforms:secret> <span class="callout"> </span>
</xhtml:div> <xhtml:div class="linewrapper controlwrapper control"> <xforms:secret ref="instance('email_instance')//newpassword" id="newpassword" xxforms:maxlength="16"> <xforms:label class="labelwrapper">Nieuw wachtwoord*</xforms:label> </xforms:secret> <span class="moreinfo">Minimaal 8 en maximaal 16 tekens!</span> <span class="callout"> </span>
</xhtml:div> <xhtml:div class="linewrapper controlwrapper control"> <xforms:secret ref="instance('email_instance')//confirmpassword" id="confirmpassword" xxforms:maxlength="16"> <xforms:label class="labelwrapper">Herhaal wachtwoord*</xforms:label> </xforms:secret> <span class="callout"> </span>
</xhtml:div> <xhtml:div class="buttonwrapper"> <xhtml:p>Lorem ipsum dolor sit amet, consecteur adipiscing elit. Nam mollis elemntum vertibulum. Lorem ipsum dolor sit amet, consecteur adipiscing elit. Nam mollis elemntum
vertibulum. Lorem ipsum dolor sit amet, consecteur adipiscing elit. Nam mollis elemntum vertibulum.</xhtml:p> </xhtml:div> <xhtml:div class="buttonwrapper" > <span class="" id="opslaanclass"> <xforms:trigger id="opslaanbutton"> <xforms:label>opslaan</xforms:label> <xforms:send ev:event="DOMActivate" submission="next-submission"/> <!--<xforms:toggle case="showspinner" ev:event="DOMActivate" />--> </xforms:trigger> </span> <span class="button-grey"> <xforms:trigger id="cancelbutton"> <xforms:label>annuleren</xforms:label>
<xforms:toggle case="showbar" ev:event="DOMActivate" /> </xforms:trigger> </span> </xhtml:div> </xhtml:fieldset> </xforms:case> <xforms:case id="showspinner"> <xhtml:div class="error-block">
<xhtml:img src="/apps/kpnstatic/images/css/ajax-loader.gif"/> <xhtml:p>Wachtwoord wordt opgeslagen. Een moment aub...</xhtml:p> </xhtml:div> </xforms:case> </xforms:switch> </xforms:group> <xforms:group ref=".[//showerror = 'true']"> <div class="error-block"> <p class="iconbig-caution">Opslaan van het wachtwoord is niet gelukt. Probeer het nog eens...</p> <span class="button-blue"> <xforms:trigger> <xforms:label>vorige</xforms:label>
<xforms:toggle case="showform" ev:event="DOMActivate" /> <xforms:send ev:event="DOMActivate" submission="back-submission"/> </xforms:trigger> </span> </div> </xforms:group> Is it possible to toggle the case outside the group? Please do the needful. Thanks and Regards, Lingesh P DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- 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,
I'd send an event to the containing group ; this group would hold an event handler that would call the toggle. Below is an exemple : <xforms:group ref=".[//showform = 'true']" id="my-group"> <xforms:toggle case="showform" ev:event="my-event" /> <xforms:switch> <xforms:case id="showform"> etc... </xforms:group> <xforms:group ref=".[//showerror = 'true']"> <xforms:trigger> <xforms:dispatch name="my-event" targetid="my-group" ev:event="DOMActivate" /> </xforms:trigger> </xforms:group> Hope that helps, Grégoire Neuville. On 11 July 2011 14:55, Lingesh_Palanivelu <[hidden email]> wrote: > Hi Team, > > > > How to enable a particular xforms:case within a group during the trigger > event that is happening outside the xforms:group.? > > > > <xforms:group ref=".[//showform = 'true']"> > > <xforms:switch> > > <xforms:case id="showbar"> > > <div class="linewrapper" id="wachtwoordbar"> > > <span class="labelwrapper > align-left"> > > <span > class="label">Wachtwoord</span> > > </span> > > <span > class="controlwrapper"> > > <span > class="control decorated" id="linkid"> > > > <xforms:trigger appearance="minimal" id="wijzigenlink"> > > > <xforms:label>Wijzigen</xforms:label> > > > <xforms:setvalue ev:event="DOMActivate" > ref="instance('email_instance')//showsuccess" value="'false'"/> > > > <xforms:toggle case="showform" ev:event="DOMActivate" /> > > > </xforms:trigger> > > > <span class="tooltipwrapper"> > > > <span class="icon-questiongrey floatRight">?</span> > > > <span class="fallback">Lorem ipsum dolor sit amet consecteur adipiscing > elit.</span> > > > </span> > > </span> > > </span> > > </div> > > </xforms:case> > > <xforms:case id="showform"> > > <xhtml:fieldset class="alternative" > id="changepasswordform"> > > <xhtml:h3>Wachtwoord<span > class="icon-questiongrey floatRight kpn-bh-richtooltip">?</span></xhtml:h3> > > <xhtml:p>Loerm ipsum dolor > sit amet, consectetur adipiscing elit. Nam iementum vestibulum. Aenean > interdum risus nec.</xhtml:p> > > <!--<xforms:secret > ref="instance('email_instance')//actualpassword" id="actualpassword" > class="width-164" style="visibility:hidden; display:none;"/>--> > > <xhtml:div > class="linewrapper controlwrapper control"> > > > <xforms:secret ref="instance('email_instance')//oldpassword" > id="oldpassword" xxforms:maxlength="16" onchange="alertblock()"> > > > <xforms:label class="labelwrapper">huidig wachtwoord*</xforms:label> > > > </xforms:secret> > > <span > class="callout"> > > > </span> > > </xhtml:div> > > <xhtml:div > class="linewrapper controlwrapper control"> > > > <xforms:secret ref="instance('email_instance')//newpassword" > id="newpassword" xxforms:maxlength="16"> > > > <xforms:label class="labelwrapper">Nieuw wachtwoord*</xforms:label> > > > </xforms:secret> > > <span > class="moreinfo">Minimaal 8 en maximaal 16 tekens!</span> > > <span > class="callout"> > > > </span> > > </xhtml:div> > > <xhtml:div > class="linewrapper controlwrapper control"> > > > <xforms:secret ref="instance('email_instance')//confirmpassword" > id="confirmpassword" xxforms:maxlength="16"> > > > <xforms:label class="labelwrapper">Herhaal wachtwoord*</xforms:label> > > > </xforms:secret> > > <span > class="callout"> > > > </span> > > </xhtml:div> > > <xhtml:div > class="buttonwrapper"> > > > <xhtml:p>Lorem ipsum dolor sit amet, consecteur adipiscing elit. Nam mollis > elemntum vertibulum. Lorem ipsum dolor sit amet, consecteur adipiscing elit. > Nam mollis elemntum vertibulum. Lorem ipsum dolor sit amet, consecteur > adipiscing elit. Nam mollis elemntum vertibulum.</xhtml:p> > > </xhtml:div> > > <xhtml:div > class="buttonwrapper" > > > <span > class="" id="opslaanclass"> > > > <xforms:trigger id="opslaanbutton"> > > > <xforms:label>opslaan</xforms:label> > > > <xforms:send ev:event="DOMActivate" submission="next-submission"/> > > > <!--<xforms:toggle case="showspinner" ev:event="DOMActivate" />--> > > > </xforms:trigger> > > </span> > > <span > class="button-grey"> > > > <xforms:trigger id="cancelbutton"> > > > <xforms:label>annuleren</xforms:label> > > > > <xforms:toggle case="showbar" ev:event="DOMActivate" /> > > > </xforms:trigger> > > </span> > > </xhtml:div> > > </xhtml:fieldset> > > </xforms:case> > > <xforms:case id="showspinner"> > > <xhtml:div > class="error-block"> > > <xhtml:img > src="/apps/kpnstatic/images/css/ajax-loader.gif"/> > > <xhtml:p>Wachtwoord wordt > opgeslagen. Een moment aub...</xhtml:p> > > </xhtml:div> > > </xforms:case> > > </xforms:switch> > > </xforms:group> > > > > <xforms:group ref=".[//showerror = 'true']"> > > <div class="error-block"> > > <p class="iconbig-caution">Opslaan van het > wachtwoord is niet gelukt. Probeer het nog eens...</p> > > <span class="button-blue"> > > <xforms:trigger> > > > <xforms:label>vorige</xforms:label> > > > <xforms:toggle case="showform" ev:event="DOMActivate" /> > > <xforms:send > ev:event="DOMActivate" submission="back-submission"/> > > </xforms:trigger> > > </span> > > </div> > > </xforms:group> > > > > Is it possible to toggle the case outside the group? Please do the needful. > > > > Thanks and Regards, > > Lingesh P > > > > ________________________________ > DISCLAIMER: > This email (including any attachments) is intended for the sole use of the > intended recipient/s and may contain material that is CONFIDENTIAL AND > PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or > distribution or forwarding of any or all of the contents in this message is > STRICTLY PROHIBITED. If you are not the intended recipient, please contact > the sender by email and delete all copies; your cooperation in this regard > is appreciated. > > > -- > 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 > > -- Grégoire Neuville -- 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 Grégoire, Thanks a lot. Its working
J -----Original Message----- Hi, I'd send an event to the containing group ; this group would hold an event handler that would call the toggle. Below is an exemple : <xforms:group ref=".[//showform = 'true']" id="my-group"> <xforms:toggle case="showform" ev:event="my-event" /> <xforms:switch> <xforms:case id="showform"> etc... </xforms:group> <xforms:group ref=".[//showerror = 'true']"> <xforms:trigger> <xforms:dispatch name="my-event" targetid="my-group" ev:event="DOMActivate" /> </xforms:trigger> </xforms:group> Hope that helps, Grégoire Neuville. On 11 July 2011 14:55, Lingesh_Palanivelu <[hidden email]> wrote: > Hi Team, > > > > How to enable a particular xforms:case within a group during the
> trigger event that is happening outside the xforms:group.? > > > > <xforms:group ref=".[//showform = 'true']"> > > <xforms:switch> > > <xforms:case id="showbar"> > > <div class="linewrapper"
> id="wachtwoordbar"> > > <span > class="labelwrapper align-left"> > > <span
> class="label">Wachtwoord</span> > > </span> > > <span > class="controlwrapper"> > > <span
> class="control decorated" id="linkid"> > > > <xforms:trigger appearance="minimal" id="wijzigenlink"> > > > <xforms:label>Wijzigen</xforms:label> > > > <xforms:setvalue ev:event="DOMActivate" > ref="instance('email_instance')//showsuccess" value="'false'"/> > > > <xforms:toggle case="showform" ev:event="DOMActivate" /> > > > </xforms:trigger> > > > <span class="tooltipwrapper"> > > > <span class="icon-questiongrey floatRight">?</span> > > > <span class="fallback">Lorem ipsum dolor sit amet consecteur
> adipiscing elit.</span> > > > </span> > >
> </span> > > </span> > > </div> > > </xforms:case> > > <xforms:case id="showform"> > > <xhtml:fieldset class="alternative" > id="changepasswordform"> > > > <xhtml:h3>Wachtwoord<span class="icon-questiongrey floatRight
> kpn-bh-richtooltip">?</span></xhtml:h3> > > <xhtml:p>Loerm ipsum
> dolor sit amet, consectetur adipiscing elit. Nam iementum vestibulum.
> Aenean interdum risus nec.</xhtml:p> > > <!--<xforms:secret
> ref="instance('email_instance')//actualpassword" id="actualpassword" > class="width-164" style="visibility:hidden; > display:none;"/>--> > > <xhtml:div
> class="linewrapper controlwrapper control"> > > > <xforms:secret ref="instance('email_instance')//oldpassword" > id="oldpassword" xxforms:maxlength="16" onchange="alertblock()"> > > > <xforms:label class="labelwrapper">huidig wachtwoord*</xforms:label> > > > </xforms:secret> > > <span
> class="callout"> > > > </span> > > </xhtml:div> > > <xhtml:div
> class="linewrapper controlwrapper control"> > > > <xforms:secret ref="instance('email_instance')//newpassword" > id="newpassword" xxforms:maxlength="16"> > > > <xforms:label class="labelwrapper">Nieuw wachtwoord*</xforms:label> > > > </xforms:secret> > > <span
> class="moreinfo">Minimaal 8 en maximaal 16 tekens!</span> > > <span
> class="callout"> > > > </span> > > </xhtml:div> > > <xhtml:div
> class="linewrapper controlwrapper control"> > > > <xforms:secret ref="instance('email_instance')//confirmpassword" > id="confirmpassword" xxforms:maxlength="16"> > > > <xforms:label class="labelwrapper">Herhaal wachtwoord*</xforms:label> > > > </xforms:secret> > > <span
> class="callout"> > > > </span> > > </xhtml:div> > > <xhtml:div
> class="buttonwrapper"> > > > <xhtml:p>Lorem ipsum dolor sit amet, consecteur adipiscing elit. Nam
> mollis elemntum vertibulum. Lorem ipsum dolor sit amet, consecteur adipiscing elit. > Nam mollis elemntum vertibulum. Lorem ipsum dolor sit amet, consecteur
> adipiscing elit. Nam mollis elemntum vertibulum.</xhtml:p> > > </xhtml:div> > > <xhtml:div
> class="buttonwrapper" > > > <span
> class="" id="opslaanclass"> > > > <xforms:trigger id="opslaanbutton"> > > > <xforms:label>opslaan</xforms:label> > > > <xforms:send ev:event="DOMActivate" submission="next-submission"/> > > > <!--<xforms:toggle case="showspinner" ev:event="DOMActivate" />--> > > > </xforms:trigger> > >
> </span> > > <span
> class="button-grey"> > > > <xforms:trigger id="cancelbutton"> > > > <xforms:label>annuleren</xforms:label> > > > > <xforms:toggle case="showbar" ev:event="DOMActivate" /> > > > </xforms:trigger> > >
> </span> > > </xhtml:div> > > </xhtml:fieldset> > > </xforms:case> > > <xforms:case id="showspinner"> > > <xhtml:div class="error-block"> > > <xhtml:img
> src="/apps/kpnstatic/images/css/ajax-loader.gif"/> > > <xhtml:p>Wachtwoord
> wordt opgeslagen. Een moment aub...</xhtml:p> > > </xhtml:div> > > </xforms:case> > > </xforms:switch> > > </xforms:group> > > > > <xforms:group ref=".[//showerror = 'true']"> > > <div class="error-block"> > > <p class="iconbig-caution">Opslaan van
> het wachtwoord is niet gelukt. Probeer het nog eens...</p> > > <span class="button-blue"> > > <xforms:trigger> > > > <xforms:label>vorige</xforms:label> > > > <xforms:toggle case="showform" ev:event="DOMActivate" /> > >
> <xforms:send ev:event="DOMActivate" submission="back-submission"/> > > </xforms:trigger> > > </span> > > </div> > > </xforms:group> > > > > Is it possible to toggle the case outside the group? Please do the needful. > > > > Thanks and Regards, > > Lingesh P > > > > ________________________________ > DISCLAIMER: > This email (including any attachments) is intended for the sole use of
> the intended recipient/s and may contain material that is CONFIDENTIAL
> AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or
> copying or distribution or forwarding of any or all of the contents in
> this message is STRICTLY PROHIBITED. If you are not the intended
> recipient, please contact the sender by email and delete all copies;
> your cooperation in this regard is appreciated. > > > -- > 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 > > -- Grégoire Neuville DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- 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 |