Re: Re-evaluating a switch

I would argue the following:

If there is no `@name` attribute, `<switch>` simply doesn't read/write a
value via its binding at all (the binding can still impact relevance).

So a `<setvalue>` does not have any effect on the selected case in your
example.

-Erik

On Wed, Nov 9, 2016 at 7:26 AM, Steven Pemberton <steven.pemberton@cwi.nl>
wrote:

> This is about XForms 1.1 behaviour.
>
> <switch ref="foo">
> <case id="a">...</case>
> <case id="b" selected="true">...</case>
> </switch>
>
> Initially b is selected.
>
> Then I do <toggle case="a"/>.
>
> So now a is selected.
>
> Then I do <setvalue ref="foo">bar</setvalue>
>
> I am assuming that b gets reselected.
>
> Do we agree?
>
> Steven
>
>

Received on Wednesday, 9 November 2016 17:02:28 UTC