controlling the widget:tab

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

controlling the widget:tab

Ryan Puddephatt

Hi all,

            Is there a way to change the displayed tab using an xforms:action?

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: controlling the widget:tab

Erik Bruchez
Administrator
The tab widget is translated into xforms:trigger's and xforms:switch's.
You should be able to send a DOMActivate event to the trigger at the top
of each tab. Use something like:

<xforms:dispatch name="DOMActivate" target="trigger-id"/>

Now you just need to figure out the actual trigger id. I realize that we
won't actually use the id on the case to derive the id on the trigger.
But replace, in xforms-widgets.xsl:

<xforms:trigger appearance="xxforms:link">

with:

<xforms:trigger appearance="xxforms:link" id="{@id}-trigger">

With this, if your tab has id "text-controls", then use:

<xforms:dispatch name="DOMActivate" target="text-controls-trigger"/>

This is not super pretty (a single xforms:toggle would be better), but
it should work.

-Erik

Ryan Puddephatt wrote:

> Hi all,
>
>             Is there a way to change the displayed tab using an
> xforms:action?
>
>  
>
> Ryan
>
>  
>
> *Ryan Puddephatt*
>
> Software Engineer
>
> TFX Group - IT UK
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
>  
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7  01506 407 108
>
>  
>
>  
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: controlling the widget:tab

Ryan Puddephatt
Erik,
        This worked perfectly

Thanks

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
>Sent: 17 May 2006 14:27
>To: [hidden email]
>Subject: Re: [ops-users] controlling the widget:tab
>
>The tab widget is translated into xforms:trigger's and xforms:switch's.
>You should be able to send a DOMActivate event to the trigger at the top
>of each tab. Use something like:
>
><xforms:dispatch name="DOMActivate" target="trigger-id"/>
>
>Now you just need to figure out the actual trigger id. I realize that we
>won't actually use the id on the case to derive the id on the trigger.
>But replace, in xforms-widgets.xsl:
>
><xforms:trigger appearance="xxforms:link">
>
>with:
>
><xforms:trigger appearance="xxforms:link" id="{@id}-trigger">
>
>With this, if your tab has id "text-controls", then use:
>
><xforms:dispatch name="DOMActivate" target="text-controls-trigger"/>
>
>This is not super pretty (a single xforms:toggle would be better), but
>it should work.
>
>-Erik
>
>Ryan Puddephatt wrote:
>> Hi all,
>>
>>             Is there a way to change the displayed tab using an
>> xforms:action?
>>
>>
>>
>> Ryan
>>
>>
>>
>> *Ryan Puddephatt*
>>
>> Software Engineer
>>
>> TFX Group - IT UK
>>
>> 1 Michaelson Square
>>
>> Livingston
>>
>> West Lothian
>>
>> Scotand
>>
>> EH54 7DP
>>
>>
>>
>> * [hidden email]
>>
>> ( 01506 407 110
>>
>> 7  01506 407 108
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> 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
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>--
>Orbeon - XForms Everywhere:
>http://www.orbeon.com/blog/




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws