-
1. Re: Stylesheet management: best practices?
ilya_shaikovsky Jan 21, 2009 6:57 AM (in response to alexeev.net)you could include your css xcss files in plug'n'skin project so you will control all the stylesheets in one subproject.
-
2. Re: Stylesheet management: best practices?
alexeev.net Jan 21, 2009 7:15 AM (in response to alexeev.net)"ilya_shaikovsky" wrote:
you could include your css xcss files in plug'n'skin project so you will control all the stylesheets in one subproject.
Let's assume, I have CUSTOM_STYLES.xcss for non-richfaces components.
Is the additional entry in general StyleSheet definition everything, what I need to get it work?
Do I need a hardcoded reference tho such a style from jspx page?<?xml version="1.0" encoding="UTF-8"?> <f:template xmlns:f='http:/jsf.exadel.com/template' xmlns:u='http:/jsf.exadel.com/template/util' xmlns="http://www.w3.org/1999/xhtml" > <f:importResource src="path/to/myskin/css/calendar.xcss" /> <f:importResource src="path/to/myskin/css/columns.xcss" /> <f:importResource src="path/to/myskin/css/combobox.xcss" /> ... <f:importResource src="path/to/myskin/css/CUSTOM_STYLES.xcss" /> </f:template>
-
3. Re: Stylesheet management: best practices?
nbelaevski Jan 21, 2009 1:09 PM (in response to alexeev.net)Hello,
Additional entry in general stylesheet should be enough. -
4. Re: Stylesheet management: best practices?
alexeev.net Jan 28, 2009 9:13 AM (in response to alexeev.net)"nbelaevski" wrote:
Hello,
Additional entry in general stylesheet should be enough.
Hi,
it does not seem to work. There is no reference to
"myskin/css/CUSTOM_STYLES.xcss"
in the genereated file
"target\generated-component\resources\META-INF\resources-config.xml" -
5. Re: Stylesheet management: best practices?
nbelaevski Jan 28, 2009 10:04 AM (in response to alexeev.net)Hello,
Sorry, looks like I was not right. You can add it manually into src/main/config/resources/resource-config.xml file. -
6. Re: Stylesheet management: best practices?
alexeev.net Jan 28, 2009 10:54 AM (in response to alexeev.net)In fact, adding link into
src/main/config/resources/resource-config.xml
AND
<f:importResource> link into
src/main/resources/META-INF/skins/mySkin.xcss
helped.
Thank you. -
7. Re: Stylesheet management: best practices?
maxmustang Feb 12, 2009 8:38 AM (in response to alexeev.net)Hello,
I just included my stylesheet in a jar to make it available to all my projects, l Is it not possible to see the styles preview in the wysiwyg-editor? Is there any workaround?
My Code:
<a4j:loadStyle src="resource:///[myProject]/renderkit/html/css/my.xcss"></a4j:loadStyle> -
8. Re: Stylesheet management: best practices?
maxmustang Feb 12, 2009 8:40 AM (in response to alexeev.net).. forgott to mention <a4jload..> is inside Facelet-Template.
-
9. Re: Stylesheet management: best practices?
ilya_shaikovsky Feb 12, 2009 9:16 AM (in response to alexeev.net)wysiwyg-editors questions is related to their forums :)
-
10. Re: Stylesheet management: best practices?
maxmustang Feb 17, 2009 2:30 PM (in response to alexeev.net)I found a solution for me:
In all projects (inside the template) i reference with help of relative path to the project which contains the css.
<a4j:outputPanel rendered="false">
</a4j:outputPanel>
This way i see the styles in Editor, the code is not rendered at runtime:-)
Now is just left one problem, i dont see Background-Images which are defined inside that css, how can i solve this? I think i must put the images in the same project as the css, but where and how load them/reference in css file?
Many thanks - max -
11. Re: Stylesheet management: best practices?
maxmustang Feb 17, 2009 2:34 PM (in response to alexeev.net)sorry somehow lost the code inside panel, here it is:
<a4j:outputPanel rendered="false">
<link href=file/../../../../../[ProjectNameWithCss]/src/main/resources/my.css type="text/css" rel="stylesheet" />
</a4j:outputPanel>