hi,
I would like to be able to allow switching to another tab ONLY upon successful validation of the ui elements on the current tab. Before I start digging too deep (such as modifying the widget xsl etc....), are there any non intrusive recommended alternatives? thanks for your feedback. -- 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
|
Nicolas,
On Sun, Nov 1, 2009 at 2:27 PM, Nicolas Pujol <[hidden email]> wrote: > I would like to be able to allow switching to another tab ONLY upon > successful validation of the ui elements on the current tab. > Before I start digging too deep (such as modifying the widget xsl > etc....), are there any non intrusive recommended alternatives? We have a new XBL component that implements a widget tabs. So the current widget:tabs is depreciated in favor of the new fr:tabview. If you have a recent nighlty build, you can see it in action in the XForms Controls example (http://localhost:8080/orbeon/xforms-controls/). The syntax is quite simple, along the lines of: <fr:tabs> <fr:tab> <fr:label>Tab 1</fr:label> Content of tab 1 </fr:tab> <fr:tab> <fr:label>Tab 2</fr:label> Content of tab 2 </fr:tab> </fr:tabs> There is no event you can listen to for the switching (which is fully done client-side). But you could implement this in the fr:tabs XBL component, dispatching an event from JavaScript when users switch to another tab. Alex -- Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
Actually I noticed a typo, it's fr:tabview.
-Erik On Wed, Nov 11, 2009 at 3:28 PM, Alessandro Vernet <[hidden email]> wrote: > Nicolas, > > On Sun, Nov 1, 2009 at 2:27 PM, Nicolas Pujol <[hidden email]> wrote: >> I would like to be able to allow switching to another tab ONLY upon >> successful validation of the ui elements on the current tab. >> Before I start digging too deep (such as modifying the widget xsl >> etc....), are there any non intrusive recommended alternatives? > > We have a new XBL component that implements a widget tabs. So the > current widget:tabs is depreciated in favor of the new fr:tabview. If > you have a recent nighlty build, you can see it in action in the > XForms Controls example > (http://localhost:8080/orbeon/xforms-controls/). The syntax is quite > simple, along the lines of: > > <fr:tabs> > <fr:tab> > <fr:label>Tab 1</fr:label> > Content of tab 1 > </fr:tab> > <fr:tab> > <fr:label>Tab 2</fr:label> > Content of tab 2 > </fr:tab> > </fr:tabs> > > There is no event you can listen to for the switching (which is fully > done client-side). But you could implement this in the fr:tabs XBL > component, dispatching an event from JavaScript when users switch to > another tab. > > Alex > -- > Orbeon Forms - Web forms, open-source, for the Enterprise > Orbeon's Blog: http://www.orbeon.com/blog/ > My Twitter: http://twitter.com/avernet > > > -- > 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 |