On Thu, 2009-03-12 at 14:16 +0100, Andreas Hartmann wrote:
> Thorsten Scherler schrieb:
> >...
> > As I understand Frank, his problem is that he needs a multiple step
> > usecase and he does not know how to do it.
> > 
> > His example is comparable with the typical car flow example of cocoon,
> > where you select one thing and the next select box depends on that. It
> > would be fairly easy to implement this with custom flow however I am
> > unsure myself how to do this multiple step flow with our usecase
> > framework. 
> > 
> > If somebody has an suggestion or experience how to implement this it
> > would be wonderful to share it.
> 
> 
> http://lenya.apache.org/docu20/reference/usecase-framework/usecase-framework-overview.html
> 
> advance()
> 
> "This method is called to advance the usecase after the a user 
> interaction. In contrast to execute(), this method is not called when 
> the <input type="submit" name="submit"> was pressed, but for every other 
> submitting of the form. A typical usecase is the multiple forms editor 
> where advance() is used to update the document when the user switched to 
> another element."
> 
> All usecase parameters are preserved unless they are explicitly deleted 
> or overwritten. Just be careful not to use fields, because the usecase 
> handler object is destroyed and re-created for each request. BTW, in 
> Lenya 2.2 you can use fields because Spring doesn't require to release 
> the component.

Thank you very much Andreas for the pointer, typical case of RTFM. ;)

salu2
-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la Información, S.A.U. (SADESI)





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to