Download Files without xxforms:download

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

Download Files without xxforms:download

Dog86
Hello,

at the moment I have a Problem with supporting an FileDownload. I have
an Orbeon 3.6 Version so I can't use the xxforms:download way. Is
there any other way to download Files which are available under the
following path: oxf:/apps/files/file1.txt and to define the type of
the file.

The Problem is, that this are temp files, so I have also to spezifiy
the type and the name of the file. Anyone an Idea how to handle this
issue without having the way with xxforms:download?

Hope for help.

Greetings Jakob


--
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: Download Files without xxforms:download

Steve Bayliss
If you don't mind writing a pipeline (xpl) to handle this, you could use the
oxf:http-serializer processor to do this.

http://www.orbeon.com/ops/doc/processors-serializers-http

You can then use the content-type config element to specify the type, and
you can use the header element to define a Content-Disposition HTTP header
to specify attachment and the file name.

-----Original Message-----
From: Jakob Mandalka [mailto:[hidden email]]
Sent: 29 July 2009 10:31
To: [hidden email]
Subject: [ops-users] Download Files without xxforms:download


Hello,

at the moment I have a Problem with supporting an FileDownload. I have an
Orbeon 3.6 Version so I can't use the xxforms:download way. Is there any
other way to download Files which are available under the following path:
oxf:/apps/files/file1.txt and to define the type of the file.

The Problem is, that this are temp files, so I have also to spezifiy the
type and the name of the file. Anyone an Idea how to handle this issue
without having the way with xxforms:download?

Hope for help.

Greetings Jakob



--
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: RE: Download Files without xxforms:download

Dog86
Ok thanks, that sounds good. But I can't solve the problem..At the
moment I have the following xpl:

 <p:param type="input" name="instance"/>

<p:processor name="oxf:url-generator">
  <p:input name="config">
  <config>
    <!-- URL of the text file -->
    <url>oxf:/data-import/a1bdff30-7abb-11de-93f1-658c0a00681e</url>
    <!-- The file will be read as plain text -->
    <content-type>text/plain</content-type>
    <!-- The file is encoded with this encoding -->
    <encoding>iso-8859-1</encoding>
  </config>
  </p:input>
  <p:output name="data" id="text-data"/>
</p:processor>

<p:processor name="oxf:http-serializer">
<p:input name="config">
  <config>
  <!-- Make sure the client receives the text/plain content type -->
  <content-type>text-plain</content-type>
  <force-content-type>true</force-content-type>
  <!-- We specify another encoding, and force it -->
  <encoding>utf-8</encoding>
  <force-encoding>true</force-encoding>
  </config>
  </p:input>
  <p:input name="data" href="#text-data"/>
</p:processor>

I call this xpl with a submission..but nothing happens..

And one other thing, can I pass variables or something like that to
the xpl file? Because I have more than one file. But it should be able
to open each file and not all at once.



2009/7/29 Steve Bayliss <[hidden email]>:

> If you don't mind writing a pipeline (xpl) to handle this, you could use the
> oxf:http-serializer processor to do this.
>
> http://www.orbeon.com/ops/doc/processors-serializers-http
>
> You can then use the content-type config element to specify the type, and
> you can use the header element to define a Content-Disposition HTTP header
> to specify attachment and the file name.
>
> -----Original Message-----
> From: Jakob Mandalka [mailto:[hidden email]]
> Sent: 29 July 2009 10:31
> To: [hidden email]
> Subject: [ops-users] Download Files without xxforms:download
>
>
> Hello,
>
> at the moment I have a Problem with supporting an FileDownload. I have an
> Orbeon 3.6 Version so I can't use the xxforms:download way. Is there any
> other way to download Files which are available under the following path:
> oxf:/apps/files/file1.txt and to define the type of the file.
>
> The Problem is, that this are temp files, so I have also to spezifiy the
> type and the name of the file. Anyone an Idea how to handle this issue
> without having the way with xxforms:download?
>
> Hope for help.
>
> Greetings Jakob
>
>
>
> --
> 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
>
>


--
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: Re: RE: Download Files without xxforms:download

Steve Bayliss
What is in your page flow?

As this pipeline produces no output, it should be specified as a model - and
there should be no view.

In terms of passing a "variable" in, in your instance document you could
specify the name of the file you want to send, and you can use some xslt to
construct the config input of the http-serializer processor.  But probably
best to get it working with your hard-coded filename first.

-----Original Message-----
From: Jakob Mandalka [mailto:[hidden email]]
Sent: 29 July 2009 13:32
To: [hidden email]
Subject: [ops-users] Re: RE: Download Files without xxforms:download


Ok thanks, that sounds good. But I can't solve the problem..At the moment I
have the following xpl:

 <p:param type="input" name="instance"/>

<p:processor name="oxf:url-generator">
  <p:input name="config">
  <config>
    <!-- URL of the text file -->
    <url>oxf:/data-import/a1bdff30-7abb-11de-93f1-658c0a00681e</url>
    <!-- The file will be read as plain text -->
    <content-type>text/plain</content-type>
    <!-- The file is encoded with this encoding -->
    <encoding>iso-8859-1</encoding>
  </config>
  </p:input>
  <p:output name="data" id="text-data"/>
</p:processor>

<p:processor name="oxf:http-serializer">
<p:input name="config">
  <config>
  <!-- Make sure the client receives the text/plain content type -->
  <content-type>text-plain</content-type>
  <force-content-type>true</force-content-type>
  <!-- We specify another encoding, and force it -->
  <encoding>utf-8</encoding>
  <force-encoding>true</force-encoding>
  </config>
  </p:input>
  <p:input name="data" href="#text-data"/>
</p:processor>

I call this xpl with a submission..but nothing happens..

And one other thing, can I pass variables or something like that to the xpl
file? Because I have more than one file. But it should be able to open each
file and not all at once.



2009/7/29 Steve Bayliss <[hidden email]>:

> If you don't mind writing a pipeline (xpl) to handle this, you could
> use the oxf:http-serializer processor to do this.
>
> http://www.orbeon.com/ops/doc/processors-serializers-http
>
> You can then use the content-type config element to specify the type,
> and you can use the header element to define a Content-Disposition
> HTTP header to specify attachment and the file name.
>
> -----Original Message-----
> From: Jakob Mandalka [mailto:[hidden email]]
> Sent: 29 July 2009 10:31
> To: [hidden email]
> Subject: [ops-users] Download Files without xxforms:download
>
>
> Hello,
>
> at the moment I have a Problem with supporting an FileDownload. I have
> an Orbeon 3.6 Version so I can't use the xxforms:download way. Is
> there any other way to download Files which are available under the
> following path: oxf:/apps/files/file1.txt and to define the type of
> the file.
>
> The Problem is, that this are temp files, so I have also to spezifiy
> the type and the name of the file. Anyone an Idea how to handle this
> issue without having the way with xxforms:download?
>
> Hope for help.
>
> Greetings Jakob
>
>
>
> --
> 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
>
>


--
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: RE: Re: RE: Download Files without xxforms:download

Dog86
In my page-flow.xml I have the following line

<page path-info="/test2/openfile" model="getfile.xpl" />

If I change this to

<page path-info="/test2/openfile" view="getfile.xpl" />

I get the following error:

Exception Class org.orbeon.oxf.common.ValidationException
Message XPL view must have a 'data' output

2009/7/29 Steve Bayliss <[hidden email]>:

> What is in your page flow?
>
> As this pipeline produces no output, it should be specified as a model - and
> there should be no view.
>
> In terms of passing a "variable" in, in your instance document you could
> specify the name of the file you want to send, and you can use some xslt to
> construct the config input of the http-serializer processor.  But probably
> best to get it working with your hard-coded filename first.
>
> -----Original Message-----
> From: Jakob Mandalka [mailto:[hidden email]]
> Sent: 29 July 2009 13:32
> To: [hidden email]
> Subject: [ops-users] Re: RE: Download Files without xxforms:download
>
>
> Ok thanks, that sounds good. But I can't solve the problem..At the moment I
> have the following xpl:
>
>  <p:param type="input" name="instance"/>
>
> <p:processor name="oxf:url-generator">
>  <p:input name="config">
>  <config>
>    <!-- URL of the text file -->
>    <url>oxf:/data-import/a1bdff30-7abb-11de-93f1-658c0a00681e</url>
>    <!-- The file will be read as plain text -->
>    <content-type>text/plain</content-type>
>    <!-- The file is encoded with this encoding -->
>    <encoding>iso-8859-1</encoding>
>  </config>
>  </p:input>
>  <p:output name="data" id="text-data"/>
> </p:processor>
>
> <p:processor name="oxf:http-serializer">
> <p:input name="config">
>  <config>
>  <!-- Make sure the client receives the text/plain content type -->
>  <content-type>text-plain</content-type>
>  <force-content-type>true</force-content-type>
>  <!-- We specify another encoding, and force it -->
>  <encoding>utf-8</encoding>
>  <force-encoding>true</force-encoding>
>  </config>
>  </p:input>
>  <p:input name="data" href="#text-data"/>
> </p:processor>
>
> I call this xpl with a submission..but nothing happens..
>
> And one other thing, can I pass variables or something like that to the xpl
> file? Because I have more than one file. But it should be able to open each
> file and not all at once.
>
>
>
> 2009/7/29 Steve Bayliss <[hidden email]>:
>> If you don't mind writing a pipeline (xpl) to handle this, you could
>> use the oxf:http-serializer processor to do this.
>>
>> http://www.orbeon.com/ops/doc/processors-serializers-http
>>
>> You can then use the content-type config element to specify the type,
>> and you can use the header element to define a Content-Disposition
>> HTTP header to specify attachment and the file name.
>>
>> -----Original Message-----
>> From: Jakob Mandalka [mailto:[hidden email]]
>> Sent: 29 July 2009 10:31
>> To: [hidden email]
>> Subject: [ops-users] Download Files without xxforms:download
>>
>>
>> Hello,
>>
>> at the moment I have a Problem with supporting an FileDownload. I have
>> an Orbeon 3.6 Version so I can't use the xxforms:download way. Is
>> there any other way to download Files which are available under the
>> following path: oxf:/apps/files/file1.txt and to define the type of
>> the file.
>>
>> The Problem is, that this are temp files, so I have also to spezifiy
>> the type and the name of the file. Anyone an Idea how to handle this
>> issue without having the way with xxforms:download?
>>
>> Hope for help.
>>
>> Greetings Jakob
>>
>>
>>
>> --
>> 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
>>
>>
>
>
>
> --
> 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
>
>


--
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: Re: RE: Re: RE: Download Files without xxforms:download

Steve Bayliss
The first is fine - it should be a model.

It's possible that there's no output because of an error/exception (as there
is no output, you won't see this in a browser window I think).

Are you seeing anything in logs/console?

Also - at the moment you are not using the instance input (maybe that is
causing the error) - so I would comment that out until you've got it working
with the hard-coded filename; once that's working you can move on to
dynamically generating the config from the instance input.


-----Original Message-----
From: Jakob Mandalka [mailto:[hidden email]]
Sent: 29 July 2009 14:44
To: [hidden email]
Subject: [ops-users] Re: RE: Re: RE: Download Files without xxforms:download


In my page-flow.xml I have the following line

<page path-info="/test2/openfile" model="getfile.xpl" />

If I change this to

<page path-info="/test2/openfile" view="getfile.xpl" />

I get the following error:

Exception Class org.orbeon.oxf.common.ValidationException
Message XPL view must have a 'data' output

2009/7/29 Steve Bayliss <[hidden email]>:

> What is in your page flow?
>
> As this pipeline produces no output, it should be specified as a model
> - and there should be no view.
>
> In terms of passing a "variable" in, in your instance document you
> could specify the name of the file you want to send, and you can use
> some xslt to construct the config input of the http-serializer
> processor.  But probably best to get it working with your hard-coded
> filename first.
>
> -----Original Message-----
> From: Jakob Mandalka [mailto:[hidden email]]
> Sent: 29 July 2009 13:32
> To: [hidden email]
> Subject: [ops-users] Re: RE: Download Files without xxforms:download
>
>
> Ok thanks, that sounds good. But I can't solve the problem..At the
> moment I have the following xpl:
>
>  <p:param type="input" name="instance"/>
>
> <p:processor name="oxf:url-generator">
>  <p:input name="config">
>  <config>
>    <!-- URL of the text file -->
>    <url>oxf:/data-import/a1bdff30-7abb-11de-93f1-658c0a00681e</url>
>    <!-- The file will be read as plain text -->
>    <content-type>text/plain</content-type>
>    <!-- The file is encoded with this encoding -->
>    <encoding>iso-8859-1</encoding>
>  </config>
>  </p:input>
>  <p:output name="data" id="text-data"/>
> </p:processor>
>
> <p:processor name="oxf:http-serializer">
> <p:input name="config">
>  <config>
>  <!-- Make sure the client receives the text/plain content type -->
>  <content-type>text-plain</content-type>
>  <force-content-type>true</force-content-type>
>  <!-- We specify another encoding, and force it -->
>  <encoding>utf-8</encoding>
>  <force-encoding>true</force-encoding>
>  </config>
>  </p:input>
>  <p:input name="data" href="#text-data"/>
> </p:processor>
>
> I call this xpl with a submission..but nothing happens..
>
> And one other thing, can I pass variables or something like that to
> the xpl file? Because I have more than one file. But it should be able
> to open each file and not all at once.
>
>
>
> 2009/7/29 Steve Bayliss <[hidden email]>:
>> If you don't mind writing a pipeline (xpl) to handle this, you could
>> use the oxf:http-serializer processor to do this.
>>
>> http://www.orbeon.com/ops/doc/processors-serializers-http
>>
>> You can then use the content-type config element to specify the type,
>> and you can use the header element to define a Content-Disposition
>> HTTP header to specify attachment and the file name.
>>
>> -----Original Message-----
>> From: Jakob Mandalka [mailto:[hidden email]]
>> Sent: 29 July 2009 10:31
>> To: [hidden email]
>> Subject: [ops-users] Download Files without xxforms:download
>>
>>
>> Hello,
>>
>> at the moment I have a Problem with supporting an FileDownload. I
>> have an Orbeon 3.6 Version so I can't use the xxforms:download way.
>> Is there any other way to download Files which are available under
>> the following path: oxf:/apps/files/file1.txt and to define the type
>> of the file.
>>
>> The Problem is, that this are temp files, so I have also to spezifiy
>> the type and the name of the file. Anyone an Idea how to handle this
>> issue without having the way with xxforms:download?
>>
>> Hope for help.
>>
>> Greetings Jakob
>>
>>
>>
>> --
>> 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
>>
>>
>
>
>
> --
> 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
>
>


--
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: RE: Re: RE: Re: RE: Download Files without xxforms:download

Dog86
There is nothing in the logs/console.

I commented the instance input out and now the following line will be printed:

"http://localhost:8080/orbeon/test2/"

This is the root dir of my XForm App.

P.s: At the moment I use replace="all" for my submission. I also
tested it with instance and none..nothing opens a file or provides a
filedownload.

2009/7/29 Steve Bayliss <[hidden email]>:

> The first is fine - it should be a model.
>
> It's possible that there's no output because of an error/exception (as there
> is no output, you won't see this in a browser window I think).
>
> Are you seeing anything in logs/console?
>
> Also - at the moment you are not using the instance input (maybe that is
> causing the error) - so I would comment that out until you've got it working
> with the hard-coded filename; once that's working you can move on to
> dynamically generating the config from the instance input.
>
>
> -----Original Message-----
> From: Jakob Mandalka [mailto:[hidden email]]
> Sent: 29 July 2009 14:44
> To: [hidden email]
> Subject: [ops-users] Re: RE: Re: RE: Download Files without xxforms:download
>
>
> In my page-flow.xml I have the following line
>
> <page path-info="/test2/openfile" model="getfile.xpl" />
>
> If I change this to
>
> <page path-info="/test2/openfile" view="getfile.xpl" />
>
> I get the following error:
>
> Exception Class         org.orbeon.oxf.common.ValidationException
> Message         XPL view must have a 'data' output
>
> 2009/7/29 Steve Bayliss <[hidden email]>:
>> What is in your page flow?
>>
>> As this pipeline produces no output, it should be specified as a model
>> - and there should be no view.
>>
>> In terms of passing a "variable" in, in your instance document you
>> could specify the name of the file you want to send, and you can use
>> some xslt to construct the config input of the http-serializer
>> processor.  But probably best to get it working with your hard-coded
>> filename first.
>>
>> -----Original Message-----
>> From: Jakob Mandalka [mailto:[hidden email]]
>> Sent: 29 July 2009 13:32
>> To: [hidden email]
>> Subject: [ops-users] Re: RE: Download Files without xxforms:download
>>
>>
>> Ok thanks, that sounds good. But I can't solve the problem..At the
>> moment I have the following xpl:
>>
>>  <p:param type="input" name="instance"/>
>>
>> <p:processor name="oxf:url-generator">
>>  <p:input name="config">
>>  <config>
>>    <!-- URL of the text file -->
>>    <url>oxf:/data-import/a1bdff30-7abb-11de-93f1-658c0a00681e</url>
>>    <!-- The file will be read as plain text -->
>>    <content-type>text/plain</content-type>
>>    <!-- The file is encoded with this encoding -->
>>    <encoding>iso-8859-1</encoding>
>>  </config>
>>  </p:input>
>>  <p:output name="data" id="text-data"/>
>> </p:processor>
>>
>> <p:processor name="oxf:http-serializer">
>> <p:input name="config">
>>  <config>
>>  <!-- Make sure the client receives the text/plain content type -->
>>  <content-type>text-plain</content-type>
>>  <force-content-type>true</force-content-type>
>>  <!-- We specify another encoding, and force it -->
>>  <encoding>utf-8</encoding>
>>  <force-encoding>true</force-encoding>
>>  </config>
>>  </p:input>
>>  <p:input name="data" href="#text-data"/>
>> </p:processor>
>>
>> I call this xpl with a submission..but nothing happens..
>>
>> And one other thing, can I pass variables or something like that to
>> the xpl file? Because I have more than one file. But it should be able
>> to open each file and not all at once.
>>
>>
>>
>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>> If you don't mind writing a pipeline (xpl) to handle this, you could
>>> use the oxf:http-serializer processor to do this.
>>>
>>> http://www.orbeon.com/ops/doc/processors-serializers-http
>>>
>>> You can then use the content-type config element to specify the type,
>>> and you can use the header element to define a Content-Disposition
>>> HTTP header to specify attachment and the file name.
>>>
>>> -----Original Message-----
>>> From: Jakob Mandalka [mailto:[hidden email]]
>>> Sent: 29 July 2009 10:31
>>> To: [hidden email]
>>> Subject: [ops-users] Download Files without xxforms:download
>>>
>>>
>>> Hello,
>>>
>>> at the moment I have a Problem with supporting an FileDownload. I
>>> have an Orbeon 3.6 Version so I can't use the xxforms:download way.
>>> Is there any other way to download Files which are available under
>>> the following path: oxf:/apps/files/file1.txt and to define the type
>>> of the file.
>>>
>>> The Problem is, that this are temp files, so I have also to spezifiy
>>> the type and the name of the file. Anyone an Idea how to handle this
>>> issue without having the way with xxforms:download?
>>>
>>> Hope for help.
>>>
>>> Greetings Jakob
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>>
>> --
>> 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
>>
>>
>
>
>
> --
> 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
>
>


--
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: RE: Re: RE: Re: RE: Download Files without xxforms:download

Dog86
Ok, I have it! I had a problem with the content-type. I changed it now
to */* and it works!!! great! Thanks Steve!

But now I have the problem to pass information to the xpl.

In my instance I have file nodes which contain the filename, filetype
and the path to the file. Now I want to have for every file a button
wich provides the download. Burt how to pass the information which
file I want to open now to the xpl file?

2009/7/29 Jakob Mandalka <[hidden email]>:

> There is nothing in the logs/console.
>
> I commented the instance input out and now the following line will be printed:
>
> "http://localhost:8080/orbeon/test2/"
>
> This is the root dir of my XForm App.
>
> P.s: At the moment I use replace="all" for my submission. I also
> tested it with instance and none..nothing opens a file or provides a
> filedownload.
>
> 2009/7/29 Steve Bayliss <[hidden email]>:
>> The first is fine - it should be a model.
>>
>> It's possible that there's no output because of an error/exception (as there
>> is no output, you won't see this in a browser window I think).
>>
>> Are you seeing anything in logs/console?
>>
>> Also - at the moment you are not using the instance input (maybe that is
>> causing the error) - so I would comment that out until you've got it working
>> with the hard-coded filename; once that's working you can move on to
>> dynamically generating the config from the instance input.
>>
>>
>> -----Original Message-----
>> From: Jakob Mandalka [mailto:[hidden email]]
>> Sent: 29 July 2009 14:44
>> To: [hidden email]
>> Subject: [ops-users] Re: RE: Re: RE: Download Files without xxforms:download
>>
>>
>> In my page-flow.xml I have the following line
>>
>> <page path-info="/test2/openfile" model="getfile.xpl" />
>>
>> If I change this to
>>
>> <page path-info="/test2/openfile" view="getfile.xpl" />
>>
>> I get the following error:
>>
>> Exception Class         org.orbeon.oxf.common.ValidationException
>> Message         XPL view must have a 'data' output
>>
>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>> What is in your page flow?
>>>
>>> As this pipeline produces no output, it should be specified as a model
>>> - and there should be no view.
>>>
>>> In terms of passing a "variable" in, in your instance document you
>>> could specify the name of the file you want to send, and you can use
>>> some xslt to construct the config input of the http-serializer
>>> processor.  But probably best to get it working with your hard-coded
>>> filename first.
>>>
>>> -----Original Message-----
>>> From: Jakob Mandalka [mailto:[hidden email]]
>>> Sent: 29 July 2009 13:32
>>> To: [hidden email]
>>> Subject: [ops-users] Re: RE: Download Files without xxforms:download
>>>
>>>
>>> Ok thanks, that sounds good. But I can't solve the problem..At the
>>> moment I have the following xpl:
>>>
>>>  <p:param type="input" name="instance"/>
>>>
>>> <p:processor name="oxf:url-generator">
>>>  <p:input name="config">
>>>  <config>
>>>    <!-- URL of the text file -->
>>>    <url>oxf:/data-import/a1bdff30-7abb-11de-93f1-658c0a00681e</url>
>>>    <!-- The file will be read as plain text -->
>>>    <content-type>text/plain</content-type>
>>>    <!-- The file is encoded with this encoding -->
>>>    <encoding>iso-8859-1</encoding>
>>>  </config>
>>>  </p:input>
>>>  <p:output name="data" id="text-data"/>
>>> </p:processor>
>>>
>>> <p:processor name="oxf:http-serializer">
>>> <p:input name="config">
>>>  <config>
>>>  <!-- Make sure the client receives the text/plain content type -->
>>>  <content-type>text-plain</content-type>
>>>  <force-content-type>true</force-content-type>
>>>  <!-- We specify another encoding, and force it -->
>>>  <encoding>utf-8</encoding>
>>>  <force-encoding>true</force-encoding>
>>>  </config>
>>>  </p:input>
>>>  <p:input name="data" href="#text-data"/>
>>> </p:processor>
>>>
>>> I call this xpl with a submission..but nothing happens..
>>>
>>> And one other thing, can I pass variables or something like that to
>>> the xpl file? Because I have more than one file. But it should be able
>>> to open each file and not all at once.
>>>
>>>
>>>
>>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>>> If you don't mind writing a pipeline (xpl) to handle this, you could
>>>> use the oxf:http-serializer processor to do this.
>>>>
>>>> http://www.orbeon.com/ops/doc/processors-serializers-http
>>>>
>>>> You can then use the content-type config element to specify the type,
>>>> and you can use the header element to define a Content-Disposition
>>>> HTTP header to specify attachment and the file name.
>>>>
>>>> -----Original Message-----
>>>> From: Jakob Mandalka [mailto:[hidden email]]
>>>> Sent: 29 July 2009 10:31
>>>> To: [hidden email]
>>>> Subject: [ops-users] Download Files without xxforms:download
>>>>
>>>>
>>>> Hello,
>>>>
>>>> at the moment I have a Problem with supporting an FileDownload. I
>>>> have an Orbeon 3.6 Version so I can't use the xxforms:download way.
>>>> Is there any other way to download Files which are available under
>>>> the following path: oxf:/apps/files/file1.txt and to define the type
>>>> of the file.
>>>>
>>>> The Problem is, that this are temp files, so I have also to spezifiy
>>>> the type and the name of the file. Anyone an Idea how to handle this
>>>> issue without having the way with xxforms:download?
>>>>
>>>> Hope for help.
>>>>
>>>> Greetings Jakob
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>>
>> --
>> 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
>>
>>
>


--
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: Re: RE: Re: RE: Re: RE: Download Files without xxforms:download

Steve Bayliss
I think you'll need to do an xforms:setvalue (in the xforms:trigger for the
buttons) to set the instance value.

Are your files within an xforms:repeat, or is it just static data?

-----Original Message-----
From: Jakob Mandalka [mailto:[hidden email]]
Sent: 29 July 2009 15:21
To: [hidden email]
Subject: [ops-users] Re: RE: Re: RE: Re: RE: Download Files without
xxforms:download


Ok, I have it! I had a problem with the content-type. I changed it now to
*/* and it works!!! great! Thanks Steve!

But now I have the problem to pass information to the xpl.

In my instance I have file nodes which contain the filename, filetype and
the path to the file. Now I want to have for every file a button wich
provides the download. Burt how to pass the information which file I want to
open now to the xpl file?

2009/7/29 Jakob Mandalka <[hidden email]>:

> There is nothing in the logs/console.
>
> I commented the instance input out and now the following line will be
> printed:
>
> "http://localhost:8080/orbeon/test2/"
>
> This is the root dir of my XForm App.
>
> P.s: At the moment I use replace="all" for my submission. I also
> tested it with instance and none..nothing opens a file or provides a
> filedownload.
>
> 2009/7/29 Steve Bayliss <[hidden email]>:
>> The first is fine - it should be a model.
>>
>> It's possible that there's no output because of an error/exception
>> (as there is no output, you won't see this in a browser window I
>> think).
>>
>> Are you seeing anything in logs/console?
>>
>> Also - at the moment you are not using the instance input (maybe that
>> is causing the error) - so I would comment that out until you've got
>> it working with the hard-coded filename; once that's working you can
>> move on to dynamically generating the config from the instance input.
>>
>>
>> -----Original Message-----
>> From: Jakob Mandalka [mailto:[hidden email]]
>> Sent: 29 July 2009 14:44
>> To: [hidden email]
>> Subject: [ops-users] Re: RE: Re: RE: Download Files without
>> xxforms:download
>>
>>
>> In my page-flow.xml I have the following line
>>
>> <page path-info="/test2/openfile" model="getfile.xpl" />
>>
>> If I change this to
>>
>> <page path-info="/test2/openfile" view="getfile.xpl" />
>>
>> I get the following error:
>>
>> Exception Class         org.orbeon.oxf.common.ValidationException
>> Message         XPL view must have a 'data' output
>>
>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>> What is in your page flow?
>>>
>>> As this pipeline produces no output, it should be specified as a
>>> model
>>> - and there should be no view.
>>>
>>> In terms of passing a "variable" in, in your instance document you
>>> could specify the name of the file you want to send, and you can use
>>> some xslt to construct the config input of the http-serializer
>>> processor.  But probably best to get it working with your hard-coded
>>> filename first.
>>>
>>> -----Original Message-----
>>> From: Jakob Mandalka [mailto:[hidden email]]
>>> Sent: 29 July 2009 13:32
>>> To: [hidden email]
>>> Subject: [ops-users] Re: RE: Download Files without xxforms:download
>>>
>>>
>>> Ok thanks, that sounds good. But I can't solve the problem..At the
>>> moment I have the following xpl:
>>>
>>>  <p:param type="input" name="instance"/>
>>>
>>> <p:processor name="oxf:url-generator">
>>>  <p:input name="config">
>>>  <config>
>>>    <!-- URL of the text file -->
>>>    <url>oxf:/data-import/a1bdff30-7abb-11de-93f1-658c0a00681e</url>
>>>    <!-- The file will be read as plain text -->
>>>    <content-type>text/plain</content-type>
>>>    <!-- The file is encoded with this encoding -->
>>>    <encoding>iso-8859-1</encoding>
>>>  </config>
>>>  </p:input>
>>>  <p:output name="data" id="text-data"/>
>>> </p:processor>
>>>
>>> <p:processor name="oxf:http-serializer">
>>> <p:input name="config">
>>>  <config>
>>>  <!-- Make sure the client receives the text/plain content type -->
>>>  <content-type>text-plain</content-type>
>>>  <force-content-type>true</force-content-type>
>>>  <!-- We specify another encoding, and force it -->
>>>  <encoding>utf-8</encoding>
>>>  <force-encoding>true</force-encoding>
>>>  </config>
>>>  </p:input>
>>>  <p:input name="data" href="#text-data"/>
>>> </p:processor>
>>>
>>> I call this xpl with a submission..but nothing happens..
>>>
>>> And one other thing, can I pass variables or something like that to
>>> the xpl file? Because I have more than one file. But it should be
>>> able to open each file and not all at once.
>>>
>>>
>>>
>>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>>> If you don't mind writing a pipeline (xpl) to handle this, you
>>>> could use the oxf:http-serializer processor to do this.
>>>>
>>>> http://www.orbeon.com/ops/doc/processors-serializers-http
>>>>
>>>> You can then use the content-type config element to specify the
>>>> type, and you can use the header element to define a
>>>> Content-Disposition HTTP header to specify attachment and the file
>>>> name.
>>>>
>>>> -----Original Message-----
>>>> From: Jakob Mandalka [mailto:[hidden email]]
>>>> Sent: 29 July 2009 10:31
>>>> To: [hidden email]
>>>> Subject: [ops-users] Download Files without xxforms:download
>>>>
>>>>
>>>> Hello,
>>>>
>>>> at the moment I have a Problem with supporting an FileDownload. I
>>>> have an Orbeon 3.6 Version so I can't use the xxforms:download way.
>>>> Is there any other way to download Files which are available under
>>>> the following path: oxf:/apps/files/file1.txt and to define the
>>>> type of the file.
>>>>
>>>> The Problem is, that this are temp files, so I have also to
>>>> spezifiy the type and the name of the file. Anyone an Idea how to
>>>> handle this issue without having the way with xxforms:download?
>>>>
>>>> Hope for help.
>>>>
>>>> Greetings Jakob
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>>
>> --
>> 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
>>
>>
>


--
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: RE: Re: RE: Re: RE: Re: RE: Download Files without xxforms:download

Dog86
I have a xforms:repeat and the files included in the instance are also
generic. So I need a generic solution.

2009/7/29 Steve Bayliss <[hidden email]>:

> I think you'll need to do an xforms:setvalue (in the xforms:trigger for the
> buttons) to set the instance value.
>
> Are your files within an xforms:repeat, or is it just static data?
>
> -----Original Message-----
> From: Jakob Mandalka [mailto:[hidden email]]
> Sent: 29 July 2009 15:21
> To: [hidden email]
> Subject: [ops-users] Re: RE: Re: RE: Re: RE: Download Files without
> xxforms:download
>
>
> Ok, I have it! I had a problem with the content-type. I changed it now to
> */* and it works!!! great! Thanks Steve!
>
> But now I have the problem to pass information to the xpl.
>
> In my instance I have file nodes which contain the filename, filetype and
> the path to the file. Now I want to have for every file a button wich
> provides the download. Burt how to pass the information which file I want to
> open now to the xpl file?
>
> 2009/7/29 Jakob Mandalka <[hidden email]>:
>> There is nothing in the logs/console.
>>
>> I commented the instance input out and now the following line will be
>> printed:
>>
>> "http://localhost:8080/orbeon/test2/"
>>
>> This is the root dir of my XForm App.
>>
>> P.s: At the moment I use replace="all" for my submission. I also
>> tested it with instance and none..nothing opens a file or provides a
>> filedownload.
>>
>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>> The first is fine - it should be a model.
>>>
>>> It's possible that there's no output because of an error/exception
>>> (as there is no output, you won't see this in a browser window I
>>> think).
>>>
>>> Are you seeing anything in logs/console?
>>>
>>> Also - at the moment you are not using the instance input (maybe that
>>> is causing the error) - so I would comment that out until you've got
>>> it working with the hard-coded filename; once that's working you can
>>> move on to dynamically generating the config from the instance input.
>>>
>>>
>>> -----Original Message-----
>>> From: Jakob Mandalka [mailto:[hidden email]]
>>> Sent: 29 July 2009 14:44
>>> To: [hidden email]
>>> Subject: [ops-users] Re: RE: Re: RE: Download Files without
>>> xxforms:download
>>>
>>>
>>> In my page-flow.xml I have the following line
>>>
>>> <page path-info="/test2/openfile" model="getfile.xpl" />
>>>
>>> If I change this to
>>>
>>> <page path-info="/test2/openfile" view="getfile.xpl" />
>>>
>>> I get the following error:
>>>
>>> Exception Class         org.orbeon.oxf.common.ValidationException
>>> Message         XPL view must have a 'data' output
>>>
>>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>>> What is in your page flow?
>>>>
>>>> As this pipeline produces no output, it should be specified as a
>>>> model
>>>> - and there should be no view.
>>>>
>>>> In terms of passing a "variable" in, in your instance document you
>>>> could specify the name of the file you want to send, and you can use
>>>> some xslt to construct the config input of the http-serializer
>>>> processor.  But probably best to get it working with your hard-coded
>>>> filename first.
>>>>
>>>> -----Original Message-----
>>>> From: Jakob Mandalka [mailto:[hidden email]]
>>>> Sent: 29 July 2009 13:32
>>>> To: [hidden email]
>>>> Subject: [ops-users] Re: RE: Download Files without xxforms:download
>>>>
>>>>
>>>> Ok thanks, that sounds good. But I can't solve the problem..At the
>>>> moment I have the following xpl:
>>>>
>>>>  <p:param type="input" name="instance"/>
>>>>
>>>> <p:processor name="oxf:url-generator">
>>>>  <p:input name="config">
>>>>  <config>
>>>>    <!-- URL of the text file -->
>>>>    <url>oxf:/data-import/a1bdff30-7abb-11de-93f1-658c0a00681e</url>
>>>>    <!-- The file will be read as plain text -->
>>>>    <content-type>text/plain</content-type>
>>>>    <!-- The file is encoded with this encoding -->
>>>>    <encoding>iso-8859-1</encoding>
>>>>  </config>
>>>>  </p:input>
>>>>  <p:output name="data" id="text-data"/>
>>>> </p:processor>
>>>>
>>>> <p:processor name="oxf:http-serializer">
>>>> <p:input name="config">
>>>>  <config>
>>>>  <!-- Make sure the client receives the text/plain content type -->
>>>>  <content-type>text-plain</content-type>
>>>>  <force-content-type>true</force-content-type>
>>>>  <!-- We specify another encoding, and force it -->
>>>>  <encoding>utf-8</encoding>
>>>>  <force-encoding>true</force-encoding>
>>>>  </config>
>>>>  </p:input>
>>>>  <p:input name="data" href="#text-data"/>
>>>> </p:processor>
>>>>
>>>> I call this xpl with a submission..but nothing happens..
>>>>
>>>> And one other thing, can I pass variables or something like that to
>>>> the xpl file? Because I have more than one file. But it should be
>>>> able to open each file and not all at once.
>>>>
>>>>
>>>>
>>>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>>>> If you don't mind writing a pipeline (xpl) to handle this, you
>>>>> could use the oxf:http-serializer processor to do this.
>>>>>
>>>>> http://www.orbeon.com/ops/doc/processors-serializers-http
>>>>>
>>>>> You can then use the content-type config element to specify the
>>>>> type, and you can use the header element to define a
>>>>> Content-Disposition HTTP header to specify attachment and the file
>>>>> name.
>>>>>
>>>>> -----Original Message-----
>>>>> From: Jakob Mandalka [mailto:[hidden email]]
>>>>> Sent: 29 July 2009 10:31
>>>>> To: [hidden email]
>>>>> Subject: [ops-users] Download Files without xxforms:download
>>>>>
>>>>>
>>>>> Hello,
>>>>>
>>>>> at the moment I have a Problem with supporting an FileDownload. I
>>>>> have an Orbeon 3.6 Version so I can't use the xxforms:download way.
>>>>> Is there any other way to download Files which are available under
>>>>> the following path: oxf:/apps/files/file1.txt and to define the
>>>>> type of the file.
>>>>>
>>>>> The Problem is, that this are temp files, so I have also to
>>>>> spezifiy the type and the name of the file. Anyone an Idea how to
>>>>> handle this issue without having the way with xxforms:download?
>>>>>
>>>>> Hope for help.
>>>>>
>>>>> Greetings Jakob
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>
>
>
> --
> 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
>
>


--
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: Re: RE: Re: RE: Re: RE: Re: RE: Download Files without xxforms:download

Steve Bayliss
Then xforms:setvalue should do the job.  

You can use index('repeat-nodeset-id') to identify where you are in the
repeat, and use that to pull out the value from the instance that's driving
your list of files - and put this value into the instance you're going to
submit.

So something like...

(where your xforms:repeat nodeset is based on the "data" instance, and the
nodeset id for the repeat is 'repeat-nodeset')
(and your submission is called "download", and you have an instance named
"download-submission" to hold the name of the file to download)

<xforms:trigger>
  <xforms:label>Download</xforms:label>
  <xforms:action ev:event="DOMActivate">
    <xforms:setvalue ref="instance('download-submission')/filename"
value="instance('data')/files/file[index('repeat-nodeset')]/filename"
    <xforms:send submission="download"/>
  </xforms:action>
</xforms:trigger>

You will have to tinker around with this a bit to suit what you're trying to
do, but that's the principle anyway.

Steve


-----Original Message-----
From: Jakob Mandalka [mailto:[hidden email]]
Sent: 29 July 2009 15:38
To: [hidden email]
Subject: [ops-users] Re: RE: Re: RE: Re: RE: Re: RE: Download Files without
xxforms:download


I have a xforms:repeat and the files included in the instance are also
generic. So I need a generic solution.

2009/7/29 Steve Bayliss <[hidden email]>:

> I think you'll need to do an xforms:setvalue (in the xforms:trigger
> for the
> buttons) to set the instance value.
>
> Are your files within an xforms:repeat, or is it just static data?
>
> -----Original Message-----
> From: Jakob Mandalka [mailto:[hidden email]]
> Sent: 29 July 2009 15:21
> To: [hidden email]
> Subject: [ops-users] Re: RE: Re: RE: Re: RE: Download Files without
> xxforms:download
>
>
> Ok, I have it! I had a problem with the content-type. I changed it now
> to
> */* and it works!!! great! Thanks Steve!
>
> But now I have the problem to pass information to the xpl.
>
> In my instance I have file nodes which contain the filename, filetype
> and the path to the file. Now I want to have for every file a button
> wich provides the download. Burt how to pass the information which
> file I want to open now to the xpl file?
>
> 2009/7/29 Jakob Mandalka <[hidden email]>:
>> There is nothing in the logs/console.
>>
>> I commented the instance input out and now the following line will be
>> printed:
>>
>> "http://localhost:8080/orbeon/test2/"
>>
>> This is the root dir of my XForm App.
>>
>> P.s: At the moment I use replace="all" for my submission. I also
>> tested it with instance and none..nothing opens a file or provides a
>> filedownload.
>>
>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>> The first is fine - it should be a model.
>>>
>>> It's possible that there's no output because of an error/exception
>>> (as there is no output, you won't see this in a browser window I
>>> think).
>>>
>>> Are you seeing anything in logs/console?
>>>
>>> Also - at the moment you are not using the instance input (maybe
>>> that is causing the error) - so I would comment that out until
>>> you've got it working with the hard-coded filename; once that's
>>> working you can move on to dynamically generating the config from
>>> the instance input.
>>>
>>>
>>> -----Original Message-----
>>> From: Jakob Mandalka [mailto:[hidden email]]
>>> Sent: 29 July 2009 14:44
>>> To: [hidden email]
>>> Subject: [ops-users] Re: RE: Re: RE: Download Files without
>>> xxforms:download
>>>
>>>
>>> In my page-flow.xml I have the following line
>>>
>>> <page path-info="/test2/openfile" model="getfile.xpl" />
>>>
>>> If I change this to
>>>
>>> <page path-info="/test2/openfile" view="getfile.xpl" />
>>>
>>> I get the following error:
>>>
>>> Exception Class         org.orbeon.oxf.common.ValidationException
>>> Message         XPL view must have a 'data' output
>>>
>>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>>> What is in your page flow?
>>>>
>>>> As this pipeline produces no output, it should be specified as a
>>>> model
>>>> - and there should be no view.
>>>>
>>>> In terms of passing a "variable" in, in your instance document you
>>>> could specify the name of the file you want to send, and you can
>>>> use some xslt to construct the config input of the http-serializer
>>>> processor.  But probably best to get it working with your
>>>> hard-coded filename first.
>>>>
>>>> -----Original Message-----
>>>> From: Jakob Mandalka [mailto:[hidden email]]
>>>> Sent: 29 July 2009 13:32
>>>> To: [hidden email]
>>>> Subject: [ops-users] Re: RE: Download Files without
>>>> xxforms:download
>>>>
>>>>
>>>> Ok thanks, that sounds good. But I can't solve the problem..At the
>>>> moment I have the following xpl:
>>>>
>>>>  <p:param type="input" name="instance"/>
>>>>
>>>> <p:processor name="oxf:url-generator">
>>>>  <p:input name="config">
>>>>  <config>
>>>>    <!-- URL of the text file -->
>>>>    <url>oxf:/data-import/a1bdff30-7abb-11de-93f1-658c0a00681e</url>
>>>>    <!-- The file will be read as plain text -->
>>>>    <content-type>text/plain</content-type>
>>>>    <!-- The file is encoded with this encoding -->
>>>>    <encoding>iso-8859-1</encoding>
>>>>  </config>
>>>>  </p:input>
>>>>  <p:output name="data" id="text-data"/>
>>>> </p:processor>
>>>>
>>>> <p:processor name="oxf:http-serializer">
>>>> <p:input name="config">
>>>>  <config>
>>>>  <!-- Make sure the client receives the text/plain content type -->
>>>>  <content-type>text-plain</content-type>
>>>>  <force-content-type>true</force-content-type>
>>>>  <!-- We specify another encoding, and force it -->
>>>>  <encoding>utf-8</encoding>
>>>>  <force-encoding>true</force-encoding>
>>>>  </config>
>>>>  </p:input>
>>>>  <p:input name="data" href="#text-data"/>
>>>> </p:processor>
>>>>
>>>> I call this xpl with a submission..but nothing happens..
>>>>
>>>> And one other thing, can I pass variables or something like that to
>>>> the xpl file? Because I have more than one file. But it should be
>>>> able to open each file and not all at once.
>>>>
>>>>
>>>>
>>>> 2009/7/29 Steve Bayliss <[hidden email]>:
>>>>> If you don't mind writing a pipeline (xpl) to handle this, you
>>>>> could use the oxf:http-serializer processor to do this.
>>>>>
>>>>> http://www.orbeon.com/ops/doc/processors-serializers-http
>>>>>
>>>>> You can then use the content-type config element to specify the
>>>>> type, and you can use the header element to define a
>>>>> Content-Disposition HTTP header to specify attachment and the file
>>>>> name.
>>>>>
>>>>> -----Original Message-----
>>>>> From: Jakob Mandalka [mailto:[hidden email]]
>>>>> Sent: 29 July 2009 10:31
>>>>> To: [hidden email]
>>>>> Subject: [ops-users] Download Files without xxforms:download
>>>>>
>>>>>
>>>>> Hello,
>>>>>
>>>>> at the moment I have a Problem with supporting an FileDownload. I
>>>>> have an Orbeon 3.6 Version so I can't use the xxforms:download
>>>>> way. Is there any other way to download Files which are available
>>>>> under the following path: oxf:/apps/files/file1.txt and to define
>>>>> the type of the file.
>>>>>
>>>>> The Problem is, that this are temp files, so I have also to
>>>>> spezifiy the type and the name of the file. Anyone an Idea how to
>>>>> handle this issue without having the way with xxforms:download?
>>>>>
>>>>> Hope for help.
>>>>>
>>>>> Greetings Jakob
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>
>
>
> --
> 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
>
>


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