You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by "Causevic, Dzenan" <dc...@navisite.com> on 2006/09/25 15:42:30 UTC
Use of custom style sheets
I am a beginner to Trinidad components and I have a simple question regarding the use of style sheets.
I am getting default look for tab components, however my page is using my own style sheet and now I need to get these tabs to use the same colors as the rest of the page.
The documenation is not so clear, that's why I am posting here for help.
I created WEB-INF/trinidad-config.xml file and added following directive: <skin-family>blueSkin</skin-family>
Then I created WEB-INF/trinidad-skins.xml like this:
<skins xmlns="http://myfaces.apache.org/trinidad/skin">
<skin>
<id>
blue.desktop
</id>
<family>
blue
</family>
<render-kit-id>
org.apache.myfaces.trinidad.desktop
</render-kit-id>
<style-sheet-name>
stylesheet/blueSkin.css
</style-sheet-name>
</skin>
</skins>
Finally I placed blueSkin.css (the one from the demo page) in my web/stylesheet directory.
However I still get a default look for my tabs. What am I still missing here?
Re: Use of custom style sheets
Posted by HulaBula <Hu...@gmx.de>.
look at this tutorial from oracle and just replace the namespaces and
file-names with trinidad ones! worked well for me!
http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html
changes in trinidad:
http://wiki.apache.org/myfaces/from_ADF_to_Trinidad
clem
Causevic, Dzenan wrote:
> I did make those changes but still no success. I am still getting default look.
> This is the excerpt from the source file:
>
> <link rel="stylesheet" charset="UTF-8" type="text/css" href="/seekerreg/adf/styles/cache/blue-desktop-unknown-version-en-gecko.css"><script>var _AdfWindowOpenError='A popup window blocker has been detected in your browser. Popup blockers interfere with the operation of this application. Please disable your popup blocker or allow popups from this site.';</script><script src="/seekerreg/adf/jsLibs/Common11-m7.js"></script><script>_defaultTZ()</script>
> <link href="/seekerreg/stylesheet/stylesheet.css" rel="stylesheet">
> </head>
>
> Can blueSkin.css be placed in web/stylesheet directory where the custom sheet resides, or does it have to go to some type of web/adf/styles/cache like what we get above?
>
> -----Original Message-----
> From: Simon Lessard [mailto:simon.lessard.3@gmail.com]
> Sent: Mon 9/25/2006 1:56 PM
> To: adffaces-user@incubator.apache.org
> Subject: Re: Use of custom style sheets
>
> Ugh...
>
> I'll have to test that, the first form should work just as well.
>
> On 9/25/06, HulaBula <Hu...@gmx.de> wrote:
>
>> Does it work now? I ran into a similar problem and now figured out that
>> the config-parser treats
>> <family>
>> blue
>> </family>
>>
>> different to
>>
>> <family>blue</family> (<-- which will work)
>>
>> You can see that behaviour if you step-debug through
>> CoreRenderingContext.java. (linebreaks are not trimmed)
>>
>> greets!
>>
>> clemens
>>
>> Simon Lessard wrote:
>>
>>> You must specify the skin-family in trinidad.config.xml to value: blue.
>>>
>>> On 9/25/06, Causevic, Dzenan <dc...@navisite.com> wrote:
>>>
>>>> I am a beginner to Trinidad components and I have a simple question
>>>> regarding the use of style sheets.
>>>> I am getting default look for tab components, however my page is
>>>> using my
>>>> own style sheet and now I need to get these tabs to use the same
>>>> colors as
>>>> the rest of the page.
>>>>
>>>> The documenation is not so clear, that's why I am posting here for
>>>>
>> help.
>>
>>>> I created WEB-INF/trinidad-config.xml file and added following
>>>> directive:
>>>> <skin-family>blueSkin</skin-family>
>>>> Then I created WEB-INF/trinidad-skins.xml like this:
>>>> <skins xmlns="http://myfaces.apache.org/trinidad/skin">
>>>> <skin>
>>>> <id>
>>>> blue.desktop
>>>> </id>
>>>> <family>
>>>> blue
>>>> </family>
>>>> <render-kit-id>
>>>> org.apache.myfaces.trinidad.desktop
>>>> </render-kit-id>
>>>> <style-sheet-name>
>>>> stylesheet/blueSkin.css
>>>> </style-sheet-name>
>>>> </skin>
>>>> </skins>
>>>>
>>>> Finally I placed blueSkin.css (the one from the demo page) in my
>>>> web/stylesheet directory.
>>>>
>>>> However I still get a default look for my tabs. What am I still missing
>>>> here?
>>>>
>>>>
>>>>
>>
>
>
Re: Use of custom style sheets
Posted by Simon Lessard <si...@gmail.com>.
Hello Dzenan,
No, you should be able to palce the CSS anywhere, /adf/styles/cache will get
generated automatically. Did you try to enter the CSS url in your browser to
see if the stylesheet can be found?
Regards,
~ Simon
On 9/25/06, Causevic, Dzenan <dc...@navisite.com> wrote:
>
> I did make those changes but still no success. I am still getting default
> look.
> This is the excerpt from the source file:
>
> <link rel="stylesheet" charset="UTF-8" type="text/css"
> href="/seekerreg/adf/styles/cache/blue-
> desktop-unknown-version-en-gecko.css"><script>var _AdfWindowOpenError='A
> popup window blocker has been detected in your browser. Popup blockers
> interfere with the operation of this application. Please disable your popup
> blocker or allow popups from this site.';</script><script
> src="/seekerreg/adf/jsLibs/Common11-m7.js
> "></script><script>_defaultTZ()</script>
> <link href="/seekerreg/stylesheet/stylesheet.css"
> rel="stylesheet">
> </head>
>
> Can blueSkin.css be placed in web/stylesheet directory where the custom
> sheet resides, or does it have to go to some type of web/adf/styles/cache
> like what we get above?
>
> -----Original Message-----
> From: Simon Lessard [mailto:simon.lessard.3@gmail.com]
> Sent: Mon 9/25/2006 1:56 PM
> To: adffaces-user@incubator.apache.org
> Subject: Re: Use of custom style sheets
>
> Ugh...
>
> I'll have to test that, the first form should work just as well.
>
> On 9/25/06, HulaBula <Hu...@gmx.de> wrote:
> >
> > Does it work now? I ran into a similar problem and now figured out that
> > the config-parser treats
> > <family>
> > blue
> > </family>
> >
> > different to
> >
> > <family>blue</family> (<-- which will work)
> >
> > You can see that behaviour if you step-debug through
> > CoreRenderingContext.java. (linebreaks are not trimmed)
> >
> > greets!
> >
> > clemens
> >
> > Simon Lessard wrote:
> > > You must specify the skin-family in trinidad.config.xml to value:
> blue.
> > >
> > > On 9/25/06, Causevic, Dzenan <dc...@navisite.com> wrote:
> > >>
> > >>
> > >> I am a beginner to Trinidad components and I have a simple question
> > >> regarding the use of style sheets.
> > >> I am getting default look for tab components, however my page is
> > >> using my
> > >> own style sheet and now I need to get these tabs to use the same
> > >> colors as
> > >> the rest of the page.
> > >>
> > >> The documenation is not so clear, that's why I am posting here for
> > help.
> > >> I created WEB-INF/trinidad-config.xml file and added following
> > >> directive:
> > >> <skin-family>blueSkin</skin-family>
> > >> Then I created WEB-INF/trinidad-skins.xml like this:
> > >> <skins xmlns="http://myfaces.apache.org/trinidad/skin">
> > >> <skin>
> > >> <id>
> > >> blue.desktop
> > >> </id>
> > >> <family>
> > >> blue
> > >> </family>
> > >> <render-kit-id>
> > >> org.apache.myfaces.trinidad.desktop
> > >> </render-kit-id>
> > >> <style-sheet-name>
> > >> stylesheet/blueSkin.css
> > >> </style-sheet-name>
> > >> </skin>
> > >> </skins>
> > >>
> > >> Finally I placed blueSkin.css (the one from the demo page) in my
> > >> web/stylesheet directory.
> > >>
> > >> However I still get a default look for my tabs. What am I still
> missing
> > >> here?
> > >>
> > >>
> > >
> >
> >
>
>
>
RE: Use of custom style sheets
Posted by "Causevic, Dzenan" <dc...@navisite.com>.
I did make those changes but still no success. I am still getting default look.
This is the excerpt from the source file:
<link rel="stylesheet" charset="UTF-8" type="text/css" href="/seekerreg/adf/styles/cache/blue-desktop-unknown-version-en-gecko.css"><script>var _AdfWindowOpenError='A popup window blocker has been detected in your browser. Popup blockers interfere with the operation of this application. Please disable your popup blocker or allow popups from this site.';</script><script src="/seekerreg/adf/jsLibs/Common11-m7.js"></script><script>_defaultTZ()</script>
<link href="/seekerreg/stylesheet/stylesheet.css" rel="stylesheet">
</head>
Can blueSkin.css be placed in web/stylesheet directory where the custom sheet resides, or does it have to go to some type of web/adf/styles/cache like what we get above?
-----Original Message-----
From: Simon Lessard [mailto:simon.lessard.3@gmail.com]
Sent: Mon 9/25/2006 1:56 PM
To: adffaces-user@incubator.apache.org
Subject: Re: Use of custom style sheets
Ugh...
I'll have to test that, the first form should work just as well.
On 9/25/06, HulaBula <Hu...@gmx.de> wrote:
>
> Does it work now? I ran into a similar problem and now figured out that
> the config-parser treats
> <family>
> blue
> </family>
>
> different to
>
> <family>blue</family> (<-- which will work)
>
> You can see that behaviour if you step-debug through
> CoreRenderingContext.java. (linebreaks are not trimmed)
>
> greets!
>
> clemens
>
> Simon Lessard wrote:
> > You must specify the skin-family in trinidad.config.xml to value: blue.
> >
> > On 9/25/06, Causevic, Dzenan <dc...@navisite.com> wrote:
> >>
> >>
> >> I am a beginner to Trinidad components and I have a simple question
> >> regarding the use of style sheets.
> >> I am getting default look for tab components, however my page is
> >> using my
> >> own style sheet and now I need to get these tabs to use the same
> >> colors as
> >> the rest of the page.
> >>
> >> The documenation is not so clear, that's why I am posting here for
> help.
> >> I created WEB-INF/trinidad-config.xml file and added following
> >> directive:
> >> <skin-family>blueSkin</skin-family>
> >> Then I created WEB-INF/trinidad-skins.xml like this:
> >> <skins xmlns="http://myfaces.apache.org/trinidad/skin">
> >> <skin>
> >> <id>
> >> blue.desktop
> >> </id>
> >> <family>
> >> blue
> >> </family>
> >> <render-kit-id>
> >> org.apache.myfaces.trinidad.desktop
> >> </render-kit-id>
> >> <style-sheet-name>
> >> stylesheet/blueSkin.css
> >> </style-sheet-name>
> >> </skin>
> >> </skins>
> >>
> >> Finally I placed blueSkin.css (the one from the demo page) in my
> >> web/stylesheet directory.
> >>
> >> However I still get a default look for my tabs. What am I still missing
> >> here?
> >>
> >>
> >
>
>
Re: Use of custom style sheets
Posted by Simon Lessard <si...@gmail.com>.
Ugh...
I'll have to test that, the first form should work just as well.
On 9/25/06, HulaBula <Hu...@gmx.de> wrote:
>
> Does it work now? I ran into a similar problem and now figured out that
> the config-parser treats
> <family>
> blue
> </family>
>
> different to
>
> <family>blue</family> (<-- which will work)
>
> You can see that behaviour if you step-debug through
> CoreRenderingContext.java. (linebreaks are not trimmed)
>
> greets!
>
> clemens
>
> Simon Lessard wrote:
> > You must specify the skin-family in trinidad.config.xml to value: blue.
> >
> > On 9/25/06, Causevic, Dzenan <dc...@navisite.com> wrote:
> >>
> >>
> >> I am a beginner to Trinidad components and I have a simple question
> >> regarding the use of style sheets.
> >> I am getting default look for tab components, however my page is
> >> using my
> >> own style sheet and now I need to get these tabs to use the same
> >> colors as
> >> the rest of the page.
> >>
> >> The documenation is not so clear, that's why I am posting here for
> help.
> >> I created WEB-INF/trinidad-config.xml file and added following
> >> directive:
> >> <skin-family>blueSkin</skin-family>
> >> Then I created WEB-INF/trinidad-skins.xml like this:
> >> <skins xmlns="http://myfaces.apache.org/trinidad/skin">
> >> <skin>
> >> <id>
> >> blue.desktop
> >> </id>
> >> <family>
> >> blue
> >> </family>
> >> <render-kit-id>
> >> org.apache.myfaces.trinidad.desktop
> >> </render-kit-id>
> >> <style-sheet-name>
> >> stylesheet/blueSkin.css
> >> </style-sheet-name>
> >> </skin>
> >> </skins>
> >>
> >> Finally I placed blueSkin.css (the one from the demo page) in my
> >> web/stylesheet directory.
> >>
> >> However I still get a default look for my tabs. What am I still missing
> >> here?
> >>
> >>
> >
>
>
Re: Use of custom style sheets
Posted by HulaBula <Hu...@gmx.de>.
Does it work now? I ran into a similar problem and now figured out that
the config-parser treats
<family>
blue
</family>
different to
<family>blue</family> (<-- which will work)
You can see that behaviour if you step-debug through
CoreRenderingContext.java. (linebreaks are not trimmed)
greets!
clemens
Simon Lessard wrote:
> You must specify the skin-family in trinidad.config.xml to value: blue.
>
> On 9/25/06, Causevic, Dzenan <dc...@navisite.com> wrote:
>>
>>
>> I am a beginner to Trinidad components and I have a simple question
>> regarding the use of style sheets.
>> I am getting default look for tab components, however my page is
>> using my
>> own style sheet and now I need to get these tabs to use the same
>> colors as
>> the rest of the page.
>>
>> The documenation is not so clear, that's why I am posting here for help.
>> I created WEB-INF/trinidad-config.xml file and added following
>> directive:
>> <skin-family>blueSkin</skin-family>
>> Then I created WEB-INF/trinidad-skins.xml like this:
>> <skins xmlns="http://myfaces.apache.org/trinidad/skin">
>> <skin>
>> <id>
>> blue.desktop
>> </id>
>> <family>
>> blue
>> </family>
>> <render-kit-id>
>> org.apache.myfaces.trinidad.desktop
>> </render-kit-id>
>> <style-sheet-name>
>> stylesheet/blueSkin.css
>> </style-sheet-name>
>> </skin>
>> </skins>
>>
>> Finally I placed blueSkin.css (the one from the demo page) in my
>> web/stylesheet directory.
>>
>> However I still get a default look for my tabs. What am I still missing
>> here?
>>
>>
>
Re: Use of custom style sheets
Posted by Simon Lessard <si...@gmail.com>.
You must specify the skin-family in trinidad.config.xml to value: blue.
On 9/25/06, Causevic, Dzenan <dc...@navisite.com> wrote:
>
>
> I am a beginner to Trinidad components and I have a simple question
> regarding the use of style sheets.
> I am getting default look for tab components, however my page is using my
> own style sheet and now I need to get these tabs to use the same colors as
> the rest of the page.
>
> The documenation is not so clear, that's why I am posting here for help.
> I created WEB-INF/trinidad-config.xml file and added following directive:
> <skin-family>blueSkin</skin-family>
> Then I created WEB-INF/trinidad-skins.xml like this:
> <skins xmlns="http://myfaces.apache.org/trinidad/skin">
> <skin>
> <id>
> blue.desktop
> </id>
> <family>
> blue
> </family>
> <render-kit-id>
> org.apache.myfaces.trinidad.desktop
> </render-kit-id>
> <style-sheet-name>
> stylesheet/blueSkin.css
> </style-sheet-name>
> </skin>
> </skins>
>
> Finally I placed blueSkin.css (the one from the demo page) in my
> web/stylesheet directory.
>
> However I still get a default look for my tabs. What am I still missing
> here?
>
>