cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <>
Subject Re: [CForms] Instantiating and showing form outsite of javaflow
Date Wed, 14 Sep 2005 15:56:29 GMT
You can instantiate and manipulate Form objects wherever you want.  
However, my experience is that you must show them from a class that 
extends AbstractContinuable which was loaded by the ContinuationClassLoader.


footh wrote:

>When first using CForms within Javaflow, I created a
>big if...then...else statement for insantiating the
>form, adding validators and the correct bean depending
>on the particular form.
>I then decided that I didn't like the big, ugly
>if...then...else statement in my flow so I conceived a
>way to do the form code in a separate class depending
>on the form (the flow looks at the form requested,
>than calls the appropriate class).  However, the
>execution throws an exception on the method.
>Is it possible to instantiate and show a form (thus
>generating the continuation) in a class outside of a
>Javaflow?  I would guess the answer is "no" given my
>experience described above but I was wondering if
>someone can offer insight so I don't have to have the
>gigantic if...then...else statement in my flow.
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message