On 12.05.2004 19:29, Isidro Vila Verde wrote:

Hello,
I have several pages (PageA, PageB, etc) all them with the same forms
fields.


As I have a lot of them I want to define only one template-transformer and
include the result of same cform pipeline into each Page. But after the user
submit the form I want to go to different pages depended of current context.

PageA:submit -> PageA (with some minor changes)
PageB:submit -> PageB (with some minor changes)
PageC:submit -> PageC (with some minor changes)

So my idea was to put the action attribute with value of some request
parameter, but I don't know how to do it.

As I see in documentation that JXPath has the objects continuation,
requests, session and parameters available I though I can use it, but I
don't know  how. I try a lot of possibilities but it seems only child 'id'
is allowed under that objects.

<ft:form-template action="#{$request/MY_PARAMEYTER_VALUE}" method="post"

Wrong approach. You try to control the page flow via URLs. Don't do that. Use the continuation approach and decide the flow in the flowscript. Much cleaner. And reusable as you can reuse the template as is.


Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to