Re: <reset instance="id"/>

Mmh, I don't like it when things fail without any way to know.

We should be consistent: either `xforms-action-error` is dispatched in all
these cases, or in none of them.

`<send>` could be considered different since it has its own
`xforms-submit-error` event.

-Erik

On Tue, Jul 11, 2017 at 2:34 PM, Steven Pemberton <steven.pemberton@cwi.nl>
wrote:

> On Mon, 10 Jul 2017 15:49:43 +0200, Erik Bruchez <ebruchez@orbeon.com>
> wrote:
>
> For `<submission>`, we say:
>
>     "if the instance attribute does not indicate an instance in the same
> model as the submission, submission fails with target-model-error"
>
> I would say we dispatch an `xforms-action-error` in on the case of
> `<reset>` and `<retain>`.
>
>
> That's what I thought at first, but then looked at the other actions with
> id attributes:
>
> setindex: The element referred to by the repeat attribute is identified.
> If no such repeat element exists, this action has no effect.
>
> toggle: If no case element is identified by this value, then the toggle
> action has no effect.
>
> setfocus: If no such control is identified, then this action has no effect.
>
> dispatch: If no element is so identified, this action has no effect.
>
> send: If the submission attribute is given but does not identify a
> submission element, then the send action has no effect.
>
> Steven
>
>
> -Erik
>
> On Thu, Jul 6, 2017 at 4:32 PM, Steven Pemberton <steven.pemberton@cwi.nl>
> wrote:
>
>> What should happen with
>>
>>   <reset instance="id"/>
>>
>> if 'id' doesn't identify an instance?
>>
>> Steven
>>
>>
>
>
>
>

Received on Tuesday, 11 July 2017 13:09:36 UTC