You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Steinar Jonsson <sj...@online.no> on 2005/10/30 23:19:31 UTC

Javaflow and 2.1.8

I have played a little with 2.1.8 and have two problems related to javaflow. 

Problem 1: I cannot get access to sitemap parameters. This is supposedly 
fixed in 2.2, but would be nice to have in 2.1 also. 

Problem 2: I cannot get a selection box value change event to terminate 
FormInstance.show() and give control back to my flow code.
It looks like this is what's happening:
- the form is initially set to invalid, validations are supposed to possibly 
  set it to valid
- the result of calling endProcessing() is that no validation takes place 
  so the form remains invalid
- if the form is invalid it is redisplayed no matter what

These problems are not new, it's the same in 2.1.7.

Regards
Steinar Jonsson


Re: Javaflow and 2.1.8

Posted by Sylvain Wallez <sy...@apache.org>.
Steinar Jonsson wrote:
> Attached is a patch that solves problem 1 by adding getParameters() to 
> AbstractContinuable.
>   

Applied. Please cross-check!

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


Re: Javaflow and 2.1.8

Posted by Steinar Jonsson <sj...@online.no>.
On Monday 31 October 2005 14:26, Sylvain Wallez wrote:
> Steinar Jonsson wrote:
> > I have played a little with 2.1.8 and have two problems related to
> > javaflow.
> >
> > Problem 1: I cannot get access to sitemap parameters. This is supposedly
> > fixed in 2.2, but would be nice to have in 2.1 also.
> >
> > Problem 2: I cannot get a selection box value change event to terminate
> > FormInstance.show() and give control back to my flow code.
> > It looks like this is what's happening:
> > - the form is initially set to invalid, validations are supposed to
> > possibly set it to valid
> > - the result of calling endProcessing() is that no validation takes place
> >   so the form remains invalid
> > - if the form is invalid it is redisplayed no matter what
>
> That last point is bogus: the result of endProcessing dictates if the
> form should be redisplayed or not.
>
> I fixed it. Please cross-check.
>

Works now. Thanks, Sylvain, you're doing great work.

Attached is a patch that solves problem 1 by adding getParameters() to 
AbstractContinuable.

Steinar

Re: Javaflow and 2.1.8

Posted by Sylvain Wallez <sy...@apache.org>.
Steinar Jonsson wrote:

> I have played a little with 2.1.8 and have two problems related to javaflow. 
>
> Problem 1: I cannot get access to sitemap parameters. This is supposedly 
> fixed in 2.2, but would be nice to have in 2.1 also. 
>
> Problem 2: I cannot get a selection box value change event to terminate 
> FormInstance.show() and give control back to my flow code.
> It looks like this is what's happening:
> - the form is initially set to invalid, validations are supposed to possibly 
>   set it to valid
> - the result of calling endProcessing() is that no validation takes place 
>   so the form remains invalid
> - if the form is invalid it is redisplayed no matter what
>   

That last point is bogus: the result of endProcessing dictates if the 
form should be redisplayed or not.

I fixed it. Please cross-check.

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director