How to open document in popup?

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

How to open document in popup?

julien-29

Hello,
In my Forms the user can upload file.
I would like that when the user want to open the file, it open this in a new
window. Because, if it is a picture (jpg), it is open in the same window, there
isn't a dialog box : "Open" , "Save"....

I use http-serializer to produce the document.
I call my xpl in the "model" attribute in the page-flow.xml.

How to open this in a new window (popup) ?

Thank you.


--
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: How to open document in popup?

julien-29

I have a response : in the http-serializer put this header :
<p:processor name="oxf:http-serializer">
<p:input name="data" href="#image-data"/>
        <p:input name="config">
        <config>
        <header>
                <name>Content-Disposition</name>
                <value>attachment; filename=test.jpg</value>
        </header>
        </config>
</p:input>
</p:processor>

the parameter "attachment; filename=.." generate the dialog box : "open",
"save", etc.. .So the document is open with the associate software.


--
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