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
Index: src/blocks/javaflow/java/org/apache/cocoon/components/flow/java/AbstractContinuable.java
===================================================================
--- src/blocks/javaflow/java/org/apache/cocoon/components/flow/java/AbstractContinuable.java	(revision 329875)
+++ src/blocks/javaflow/java/org/apache/cocoon/components/flow/java/AbstractContinuable.java	(working copy)
@@ -17,6 +17,7 @@
 
 import org.apache.avalon.framework.CascadingRuntimeException;
 import org.apache.avalon.framework.logger.Logger;
+import org.apache.avalon.framework.parameters.Parameters;
 import org.apache.cocoon.components.ContextHelper;
 import org.apache.cocoon.components.flow.FlowHelper;
 import org.apache.cocoon.components.flow.util.PipelineUtil;
@@ -31,7 +32,7 @@
  *
  * @author <a href="mailto:[EMAIL PROTECTED]">Torsten Curdt</a>
  * @author <a href="mailto:[EMAIL PROTECTED]">Stephan Michels</a>
- * @version CVS $Id: AbstractContinuable.java,v 1.4 2004/05/04 11:54:35 cziegeler Exp $
+ * @version CVS $Id$
  */
 public abstract class AbstractContinuable implements Continuable {
 
@@ -111,6 +112,10 @@
         return ContextHelper.getObjectModel(getContext().getAvalonContext());
     }
 
+    public Parameters getParameters() {
+        return getContext().getParameters();
+    }
+
     public void processPipelineTo(String uri, Object bizdata, OutputStream out) {
 
         ContinuationContext context = getContext();

Reply via email to