cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject Re: Using htmlArea 'output' with SVG
Date Fri, 26 Nov 2004 11:51:17 GMT
OK.  Perhaps the terms used are confusing

form.save(model) in fact equates to "form.update(model)"

But the idea is still to try and alter some fragment
of the data *before* the update goes through...
why is it not possible to alter only one part, and why 
should "everything be discarded" by making such a partial
change?

>>> ugo@apache.org 2004/11/26 01:14:33 PM >>>
Il giorno 26/nov/04, alle 10:47, Derek Hohls ha scritto:

> Ugo
>
> In your point 3, surely the alterations take place
> *before* the model is saved i.e.
>
> form.load(model);
> form.showForm("uri");
> //do the DOM manipulation of the form/model(?)
> form.save(model);

No. If you do that, everything you have done before calling form.save()

will be overwritten and discarded. form.save() does not "save the 
model", it updates the model following what is written in the binding 
spec which does *NOT* include the HTMLArea field.

	Ugo

-- 
Ugo Cei - http://beblogging.com/

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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


Mime
View raw message