Modify page url of a pdf-template submission

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Modify page url of a pdf-template submission

rfleury
Hi everybody,

I would like to change the url of the page when I'm doing a submission to display my pdf-template.

Instead of http://localhost/orbeon/xforms-server-submit, I would like to obtain something like http://localhost/orbeon/reservation/en.

I know I'm not the first one who ask about that, and I read some tips on website (for example orbeon one in the FAQ). It seems that with the way I'm processing, I will not be able to do that. Therfore, It's done in the governement form, and I can't get how...

I'm doing as following:
I'm calling my submission thanks to:
    <xforms:submit submission="pdfgen">
        <xforms:label>pdfgen</xforms:label>
    </xforms:submit>

The submission is like:
    <xforms:submission id="pdfgen" ref="instance('copy-instance')" method="post"  action="/reservation/pdfgen/{instance('language')/lang}" replace="all" xxforms:show-progress="false"/>

In the page-flow, I have:
    <page id="pdf-detail" path-info="/reservation/pdfgen/en" view="pdf-detail-view-en.xpl">

And the pipeline I'm using is as simple as:
    <p:param name="instance" type="input"/>
    <p:param name="data" type="output"/>
    <p:processor name="oxf:pdf-template">
        <p:input name="instance" href="#instance"/>
        <p:input name="model" href="pdf-model-en.xml"/>
        <p:output name="data" ref="data"/>
    </p:processor>

The all thing is working well, but I would like to modify the url of the pdf view page.

I read on the orbeon website that it wasn't possible to do that when using a submission with method="post", only with method="get" or with an <xforms:load>. What is done in the governement form example is exactly what I want. It seems that a <xforms:load> is used, but we can't do without submitting!! and how then? I couldn't find out that... Could someone help?

Thanks in advance!

Romain.

Reply | Threaded
Open this post in threaded view
|

Re: Modify page url of a pdf-template submission

Erik Bruchez
Administrator
You are referring to that FAQ entry:

http://www.orbeon.com/ops/doc/home-faq#xforms-server-submit

It's as simple as that: the FAQ entry is right.

If you want to submit with POST, then you can't change the URL visible  
in the browser. If you want to have a nice-looking URL like the Govt  
Forms example, then you have to use a GET, either with a submission or  
a load.

-Erik

On Jan 28, 2008, at 8:41 AM, rfleury wrote:

>
> Hi everybody,
>
> I would like to change the url of the page when I'm doing a  
> submission to
> display my pdf-template.
>
> Instead of http://localhost/orbeon/xforms-server-submit, I would  
> like to
> obtain something like http://localhost/orbeon/reservation/en.
>
> I know I'm not the first one who ask about that, and I read some  
> tips on
> website (for example orbeon one in the FAQ). It seems that with the  
> way I'm
> processing, I will not be able to do that. Therfore, It's done in the
> governement form, and I can't get how...
>
> I'm doing as following:
> I'm calling my submission thanks to:
>    <xforms:submit submission="pdfgen">
>        <xforms:label>pdfgen</xforms:label>
>    </xforms:submit>
>
> The submission is like:
>    <xforms:submission id="pdfgen" ref="instance('copy-instance')"
> method="post"  action="/reservation/pdfgen/{instance('language')/
> lang}"
> replace="all" xxforms:show-progress="false"/>
>
> In the page-flow, I have:
>    <page id="pdf-detail" path-info="/reservation/pdfgen/en"
> view="pdf-detail-view-en.xpl">
>
> And the pipeline I'm using is as simple as:
>    <p:param name="instance" type="input"/>
>    <p:param name="data" type="output"/>
>    <p:processor name="oxf:pdf-template">
>        <p:input name="instance" href="#instance"/>
>        <p:input name="model" href="pdf-model-en.xml"/>
>        <p:output name="data" ref="data"/>
>    </p:processor>
>
> The all thing is working well, but I would like to modify the url of  
> the pdf
> view page.
>
> I read on the orbeon website that it wasn't possible to do that when  
> using a
> submission with method="post", only with method="get" or with an
> <xforms:load>. What is done in the governement form example is  
> exactly what
> I want. It seems that a <xforms:load> is used, but we can't do without
> submitting!! and how then? I couldn't find out that... Could someone  
> help?
>
> Thanks in advance!
>
> Romain.
>
>
> --
> View this message in context: http://www.nabble.com/Modify-page-url-of-a-pdf-template-submission-tp15089563p15089563.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Modify page url of a pdf-template submission

ilango_g
In reply to this post by rfleury
I have tested the Government form as well. Do you have a sample version of your form to try out? That way I can try to figure out what is going on.


rfleury wrote
Hi everybody,

I would like to change the url of the page when I'm doing a submission to display my pdf-template.

Instead of http://localhost/orbeon/xforms-server-submit, I would like to obtain something like http://localhost/orbeon/reservation/en.

I know I'm not the first one who ask about that, and I read some tips on website (for example orbeon one in the FAQ). It seems that with the way I'm processing, I will not be able to do that. Therfore, It's done in the governement form, and I can't get how...

I'm doing as following:
I'm calling my submission thanks to:
    <xforms:submit submission="pdfgen">
        <xforms:label>pdfgen</xforms:label>
    </xforms:submit>

The submission is like:
    <xforms:submission id="pdfgen" ref="instance('copy-instance')" method="post"  action="/reservation/pdfgen/{instance('language')/lang}" replace="all" xxforms:show-progress="false"/>

In the page-flow, I have:
    <page id="pdf-detail" path-info="/reservation/pdfgen/en" view="pdf-detail-view-en.xpl">

And the pipeline I'm using is as simple as:
    <p:param name="instance" type="input"/>
    <p:param name="data" type="output"/>
    <p:processor name="oxf:pdf-template">
        <p:input name="instance" href="#instance"/>
        <p:input name="model" href="pdf-model-en.xml"/>
        <p:output name="data" ref="data"/>
    </p:processor>

The all thing is working well, but I would like to modify the url of the pdf view page.

I read on the orbeon website that it wasn't possible to do that when using a submission with method="post", only with method="get" or with an <xforms:load>. What is done in the governement form example is exactly what I want. It seems that a <xforms:load> is used, but we can't do without submitting!! and how then? I couldn't find out that... Could someone help?

Thanks in advance!

Romain.