Hi Ugo,

Thanks for your help.

Ugo Cei wrote:

>> We attempted to control the tab selection of a tab group
>> as follows:
>
><snip/>
>
>Binding is made against the form model, not the data passed to the
>view as the value of the bizData argument.
>
>Try:
>
>   form.getWidget("tabState").value = 2;
>
>if you want to set it programmatically.

Yes, we need to set it programmatically so we can keep the tab
state when returning from another page.  Using your idea we still
have:

<wi:group>
    <wi:styling type = "tabs"/>
        <wi:state>
            <wt:widget id="tab-state"/>
        </wi:state>
    ...
    
But now, our bindings no longer include a tab-state binding. 
Instead, per your idea, the flow does:

    var tabState = new java.lang.Integer(2); // for testing
    form.getWidget("tab-state".value = tabState;
    form.showForm();

Still, this has no effect on the selected tab.  Should it work? 
Moreover, isn't your method just another way to do a binding and
therefore more or less the same as what we were originally doing?

Thanks again for your time,

Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to