You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marc Portier <mp...@outerthought.org> on 2003/12/16 16:13:28 UTC

[cforms|important] changed semantics on all binding elements.

Hi all,

Specially for those working on cvs-head

I just did a commit on the woody-binding stuff that introduces an 
attribute @direction on each binding element.

The value of the attribute should be one of 'both'(default), 'load' or 
'save' and naturally indicates which binding-directions are active on 
the given binding-elements.

Important thing to note is that two bindings: wb:value and wb:javascript 
already had some @readonly setting that is now no longer supported.

After doing an update you will need to change your binding files so the 
possible use of @readonly="true" on these elements gets replaced by 
@direction="load"


More on why this feaure is there:
- described use cases: 
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107062380411523&w=2
- @direction choice: 
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107105729827081&w=2


I already changed the docs to reflect the update over here:
http://wiki.cocoondev.org/Wiki.jsp?page=WoodyBinding

regards,
and comments welcome of course.

-marc=
PS: more refactoring in the binding area are foreseen
-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo@outerthought.org                              mpo@apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: [cforms|important] changed semantics on all binding elements.

Posted by Sylvain Wallez <sy...@apache.org>.
Marc Portier wrote:

> Hi all,
>
> Specially for those working on cvs-head
>
> I just did a commit on the woody-binding stuff that introduces an 
> attribute @direction on each binding element.
>
> The value of the attribute should be one of 'both'(default), 'load' or 
> 'save' and naturally indicates which binding-directions are active on 
> the given binding-elements.
>
> Important thing to note is that two bindings: wb:value and 
> wb:javascript already had some @readonly setting that is now no longer 
> supported.
>
> After doing an update you will need to change your binding files so 
> the possible use of @readonly="true" on these elements gets replaced 
> by @direction="load"


Haven't checked if it's already done, but it would be good to raise an 
error if the "read-only" attribute is present, so that users are forced 
to upgrade to the new syntax.

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com