W3C home > Mailing lists > Public > public-forms@w3.org > May 2009

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

From: Steven Pemberton <Steven.Pemberton@cwi.nl>
Date: Wed, 27 May 2009 17:21:54 +0200
To: "Forms WG" <public-forms@w3.org>
Message-ID: <op.uulgyswssmjzpq@steven-750g>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:51 UTC