Re: <reset instance="id"/>

On Tue, 11 Jul 2017 15:08:44 +0200, Erik Bruchez <ebruchez@orbeon.com>  
wrote:

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

> 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.
I'm all for dispatching an error.

Added to agenda for next call.

Steven

>
> -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 Wednesday, 12 July 2017 10:05:28 UTC