[XForms 2] New feature - Patterns to reduce the need for actions

My opinion is that in XForms 2, the need for actions should be greatly  
reduced. Actions should be for rarely occurring situations.

The most obvious case is in <repeat>, where you have to do a lot of work  
to add and delete items.

My proposal is along the lines of

	<repeat bind="whatever" methods="insert delete">
		...
	</repeat>

An implementation would be required to add some way of inserting and  
deleting elements. How that is done is left to implementations.

Without the attribute, there would be no system-supplied method to insert  
or delete, though you could still do it with actions. You could also just  
allow deletes, or just allow inserts.

The other place where you regularly need actions is in switch, but that is  
the subject of another mail.

Steven

Received on Wednesday, 27 May 2009 15:22:36 UTC