For separate deployment need steps to use custom css

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

For separate deployment need steps to use custom css

avishekdas
Hi,
I am using separate deployment and using Orbeon to render xml that is not build using Form Runner.
Now I would like to render custom css to these forms, please help me with the steps for the same.

Appreciate your quick response.
Thanks!

- Avishek

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: For separate deployment need steps to use custom css

avishekdas
Can somebody please throw some light on how to apply css for separate deployment.
Right now when I run the xml through Orbeon sandbox the Orbeon css gets deployed but when I am using it as part of separate deployment allowing Orbeon to render the xml then there are no css applied.
Any direction will be much appreciated.
- Avishek

On Tuesday, 1 July 2014 19:07:04 UTC+5:30, Avishek Das wrote:
Hi,
I am using separate deployment and using Orbeon to render xml that is not build using Form Runner.
Now I would like to render custom css to these forms, please help me with the steps for the same.

Appreciate your quick response.
Thanks!

- Avishek

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: For separate deployment need steps to use custom css

danielk1989
Hey Avishek

I dont know whether this will help you or not.

But we use custom CSS, by setting the properties below in our properties-local.xml file

 <property as="xs:string"  name="oxf.fr.css.custom.uri.*.*"  value="/config/custom.css"/>

Then we place our custom.css file in the path specified by the propertie (same folder as properties-local.xml file.

Hope this helps you.

Best Regards
Daniel
Reply | Threaded
Open this post in threaded view
|

Re: For separate deployment need steps to use custom css

Erik Bruchez
Administrator
Daniel,

I doubt this will help Avishek because that's a Form Runner property, and it doesn't look like he is using Form Runner.

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: For separate deployment need steps to use custom css

Erik Bruchez
Administrator
In reply to this post by avishekdas
Avishek,

A couple of questions:

1. How do you refer to the CSS in your HTML?

2. Where is the CSS located?

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: For separate deployment need steps to use custom css

avishekdas
Hi Erik,

You are correct, in my setup I have separate deployment so spring takes control of the page flow and Orbeon is responsible for rendering, hence setting up the custom css property for Orbeon didn't help. Anyways thanks to Daniel.

Now my css is located in my Java web application context. <Custom application webapp>/css/<file name>.css
My xform xmls are located under <Custom application webapp>/xforms-jsp/<file name>.xml
and
the jsp file including the xform xm is located under - 
<Custom application webapp>/xforms-jsp/<file name>.jsp
This jsp file has a single line of code -
<%@include file="test.xml"%>

In my setup the orbeon jar is untouched and I am using the latest version. In my spring application cross-context is set to true. In this setup I can render page using Orbeon (without css), pass parameters from spring app to Orbeon and submit data from Orbeon, etc.

I tried to include the css in the xform xml using the below command, but the css has no effect.
<link rel="stylesheet" href="/orbeon/xforms-server/test.css" type="text/css">

Honestly I don't know the validity of the above command, I just tried and I have no idea how to get this done. Your suggestion would be really helpful.
Please let me know if more information is required.

-Avishek

On Tuesday, 8 July 2014 00:37:41 UTC+5:30, ebruchez wrote:
Avishek,

A couple of questions:

1. How do you refer to the CSS in your HTML?

2. Where is the CSS located?

-Erik

--
View this message in context: <a href="http://discuss.orbeon.com/For-separate-deployment-need-steps-to-use-custom-css-tp4658583p4658613.html" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2FFor-separate-deployment-need-steps-to-use-custom-css-tp4658583p4658613.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHBkLB-QzqnV4MSHYQNdsYANpILOw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2FFor-separate-deployment-need-steps-to-use-custom-css-tp4658583p4658613.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHBkLB-QzqnV4MSHYQNdsYANpILOw';return true;">http://discuss.orbeon.com/For-separate-deployment-need-steps-to-use-custom-css-tp4658583p4658613.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].
Reply | Threaded
Open this post in threaded view
|

Re: For separate deployment need steps to use custom css

avishekdas
Hi, Can someone please help out here - Avishek
Reply | Threaded
Open this post in threaded view
|

Re: For separate deployment need steps to use custom css

avishekdas
In reply to this post by avishekdas
Hi, Any idea on this! - Avishek

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