-> -----Mensagem original----- -> De: Joerg Heinicke [mailto:[EMAIL PROTECTED] -> Enviada: quarta-feira, 12 de Maio de 2004 22:27 -> Para: [EMAIL PROTECTED] -> Assunto: Re: Dynamic URI in form-template action -> -> 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.
Thanks Joerg for your advice. I am not yet very confiant with all these thinks, but I will think a litle about use your sugestion. For now I solve the problem with a xsl post-processing (I don't like the solution but I need to move on) Isidro Isidro Vila Verde email:[EMAIL PROTECTED] web: http://serprest.pt/ tel: 223743701 tel: 969103006 -> -> Joerg -> -> --------------------------------------------------------------------- -> To unsubscribe, e-mail: [EMAIL PROTECTED] -> For additional commands, e-mail: [EMAIL PROTECTED] -> -> -> --- -> Incoming mail is certified Virus Free. -> Checked by AVG anti-virus system (http://www.grisoft.com). -> Version: 6.0.672 / Virus Database: 434 - Release Date: 28-04-2004 -> -> --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.672 / Virus Database: 434 - Release Date: 28-04-2004 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
