cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: [CForms] Load/Save model events never send?
Date Tue, 04 Jul 2006 12:04:14 GMT
Quoin Developers wrote:
> Hello Carsten,
> 
> I think that I've run into a problem with the change to Form. I used
> to be able to do something like this in my flowscript
> 
> while (!done) {
>     form.load(model);
>     form.showForm("formTemplate");
>     form.save(model);
> }
> 
> Now, if I do this I get an exception "Cannot load form in phase
> ProcessingPhase[Save model=3]" thrown from the
> informStartLoadingModel() callback method.
> 
> Perhaps the phase should be set back to loading in
> informEndSavingModel() (as the comment suggests), or perhaps the form
> should be able to be in a lax processing phase enforcement mode.
> 
Yepp, I agree. I will change that.

> The basic question - what are we trying to protect from by enforcing
> the particular ProcessingPhase lifecycle?
>
Good question :) I think this is more or less an internal consistency
check which means is the api used in the correct order.

Carsten
-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message