How to implement a mechanism like orbeon's properties ?

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

How to implement a mechanism like orbeon's properties ?

ricetrac
Hello,

In our application, we have a resource file which contains all labels of our application. We would like that our client add her own resource file to change some labels.

How could we implement the same mechanism of orbeon's properties ? ie , use first the data of the client file relative to the default file ?

Thank You.

julien
Reply | Threaded
Open this post in threaded view
|

Re: How to implement a mechanism like orbeon's properties ?

Alessandro  Vernet
Administrator
Hi Julien,

Form Runner, loads resources calling a service that ends up running fr-resources.xpl, which use the fr:resources-patcher processor to "patch" the resources with values of properties, which itself is implemented in Scala. Some code in fr:resources-patcher is specific to Form Runner, i.e. the concept of app/form name and the oxf.fr.resource prefix, hence it being the fr: namespace, but you might be able to reuse this code, or do something similar to handle your use case.


Alex

On Thu, Mar 26, 2015 at 6:13 PM ricetrac <[hidden email]> wrote:
Hello,

In our application, we have a resource file which contains all labels of our
application. We would like that our client add her own resource file to
change some labels.

How could we implement the same mechanism of orbeon's properties ? ie , use
first the data of the client file relative to the default file ?

Thank You.

julien


--
View this message in context: http://discuss.orbeon.com/How-to-implement-a-mechanism-like-orbeon-s-properties-tp4659716.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: How to implement a mechanism like orbeon's properties ?

ricetrac

Thank you for your response. It’s a good help

 

julien

 

De : [hidden email] [mailto:[hidden email]] De la part de Alessandro Vernet
Envoyé : vendredi 27 mars 2015 21:12
À : [hidden email]
Objet : Re: [orbeon] How to implement a mechanism like orbeon's properties ?

 

Hi Julien,

 

Form Runner, loads resources calling a service that ends up running fr-resources.xpl, which use the fr:resources-patcher processor to "patch" the resources with values of properties, which itself is implemented in Scala. Some code in fr:resources-patcher is specific to Form Runner, i.e. the concept of app/form name and the oxf.fr.resource prefix, hence it being the fr: namespace, but you might be able to reuse this code, or do something similar to handle your use case.

 

 

Alex

 

On Thu, Mar 26, 2015 at 6:13 PM ricetrac <[hidden email]> wrote:

Hello,

In our application, we have a resource file which contains all labels of our
application. We would like that our client add her own resource file to
change some labels.

How could we implement the same mechanism of orbeon's properties ? ie , use
first the data of the client file relative to the default file ?

Thank You.

julien


--
View this message in context: http://discuss.orbeon.com/How-to-implement-a-mechanism-like-orbeon-s-properties-tp4659716.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].