Is it possible to use fr:attachment

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

Is it possible to use fr:attachment

ricetrac

Hello,

 

I'd like to know if it is possible to use <fr:attachment> instead of <xforms:upload> ?
Because with <xforms:upload>, when the size of the file chosen by the user exceeds the limit set, an java error page appears and replaces the current page.
With <fr:attachment>, is the classic error popup that appears above the current page, with the ability to show detail, close the popup, etc. ... It's much more pleasant for the user, and we can customize it.
I have not found any doc on this component, but I've noticed in editing the code produced by form builder.

 

Thank you.

 

Julien.

 


Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. 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: Is it possible to use fr:attachment

Erik Bruchez
Administrator
Julien,

You use it like xforms:upload, e.g.:

<fr:attachment ref="my-attachment">
    <xforms:label ref="..."/>
    <xforms:hint ref="..."/>
    <xforms:help ref="..."/>
    <xforms:alert ref="..."/>
    <xforms:filename ref="..."/>
    <xforms:mediatype ref="..."/>
    <xxforms:size ref="..."/>
</fr:attachment>

Now I am not sure this will make a difference if the upload is
rejected because it is too large because fr:attachement internally
uses xforms:upload.

-Erik

On Thu, Jun 17, 2010 at 6:39 AM, Bittard, Julien
<[hidden email]> wrote:

> Hello,
>
>
>
> I'd like to know if it is possible to use <fr:attachment> instead of
> <xforms:upload> ?
> Because with <xforms:upload>, when the size of the file chosen by the user
> exceeds the limit set, an java error page appears and replaces the current
> page.
> With <fr:attachment>, is the classic error popup that appears above the
> current page, with the ability to show detail, close the popup, etc. ...
> It's much more pleasant for the user, and we can customize it.
> I have not found any doc on this component, but I've noticed in editing the
> code produced by form builder.
>
>
>
> Thank you.
>
>
>
> Julien.
>
>
>
> Please help Logica to respect the environment by not printing this email /
> Pour contribuer comme Logica au respect de l'environnement, merci de ne pas
> imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen
> Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a
> respeitar o ambiente não imprimindo este correio electrónico. This e-mail
> and any attachment is for authorised use by the intended recipient(s) only.
> It may contain proprietary material, confidential information and/or be
> subject to legal privilege. It should not be copied, disclosed to, retained
> or used by, any other party. If you are not an intended recipient then
> please promptly delete this e-mail and any attachment and all copies and
> inform the sender. 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
>
>


--
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: Is it possible to use fr:attachment

ricetrac
Hello,

You're right Erik. This is not the use of <fr:attachment> to display the popup error.
We must do a replace="instance" instead of replace="all" in the <xforms:submission> triggered by <xforms:upload>, otherwise the error "exceeds the limit" replace the main page.

Julien bittard

-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]] De la part de Erik Bruchez
Envoyé : samedi 19 juin 2010 03:57
À : [hidden email]
Objet : [ops-users] Re: Is it possible to use fr:attachment

Julien,

You use it like xforms:upload, e.g.:

<fr:attachment ref="my-attachment">
    <xforms:label ref="..."/>
    <xforms:hint ref="..."/>
    <xforms:help ref="..."/>
    <xforms:alert ref="..."/>
    <xforms:filename ref="..."/>
    <xforms:mediatype ref="..."/>
    <xxforms:size ref="..."/>
</fr:attachment>

Now I am not sure this will make a difference if the upload is rejected because it is too large because fr:attachement internally uses xforms:upload.

-Erik

On Thu, Jun 17, 2010 at 6:39 AM, Bittard, Julien <[hidden email]> wrote:

> Hello,
>
>
>
> I'd like to know if it is possible to use <fr:attachment> instead of
> <xforms:upload> ?
> Because with <xforms:upload>, when the size of the file chosen by the
> user exceeds the limit set, an java error page appears and replaces
> the current page.
> With <fr:attachment>, is the classic error popup that appears above
> the current page, with the ability to show detail, close the popup, etc. ...
> It's much more pleasant for the user, and we can customize it.
> I have not found any doc on this component, but I've noticed in
> editing the code produced by form builder.
>
>
>
> Thank you.
>
>
>
> Julien.
>
>
>
> Please help Logica to respect the environment by not printing this
> email / Pour contribuer comme Logica au respect de l'environnement,
> merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht
> nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /
> Por favor ajude a Logica a respeitar o ambiente não imprimindo este
> correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only.
> It may contain proprietary material, confidential information and/or
> be subject to legal privilege. It should not be copied, disclosed to,
> retained or used by, any other party. If you are not an intended
> recipient then please promptly delete this e-mail and any attachment
> and all copies and inform the sender. 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
>
>
Please help Logica to respect the environment by not printing this email  / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. 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