cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Man <>
Subject Re: [C2] actions, forms, etc.
Date Wed, 30 May 2001 18:12:22 GMT
On Wed, May 30, 2001 at 05:57:05PM +0300, Neeme Praks wrote:
> I started to look at the C2 framework, to see if it was finally getting to
> the state where I could start porting some of my existing webapps over to
> C2. And I'm a bit confused about the current state of the Action
> framework...
> So, to work around this problem, I would propose to inverse the structure of
> the sitemap in the case of form validation:
>           <map:act type="check for form values">
>             <!-- form values not ok, redirect back to form. error
> information is passed in with the objectmodel -->
>           </map:act>
>           <!-- form values ok, save the data-->
> What do you think? Does this approach have any disadvantages?
> If not, then I would propose to convert the current examples to this new
> approach (I can help also, if needed).
actually we have previously came to another point. You are true that validator
actions now return nothing when validation fails, this will be changed so that
action will return special configurable param to the sitemap indicating what
the result of validation was and which parameters where wrong (this param can
later be used in param-selector), this way we
just need to figure out how these wrong parameters propagate nicely back to
the form, an XSP solution would be great but how to pass action's Map object
to XSP efectively ??

> Neeme


"Only dead fish swims with a stream"
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

To unsubscribe, e-mail:
For additional commands, email:

View raw message