From looking at the code in StyleSheetNameResolver, this is how it
finds files:
The code first looks in the local styles directory, for me I think that is:
C:\JDev10.1.3\jdev\system\oracle.j2ee.10.1.3.36.26\embedded-oc4j\
application-deployments\current-workspace-app\trinidad-demo-webapp\temp\adf\styles
Then it uses _servletContext.getRealPath()
Then it looks at fContext.getExternalContext().getResource().
With either of the above it can find skins/purple/purpleSkin.css
Then it tries ClassLoaderUtils.getResource().
This is how it finds META-INF/adf/styles/simple-desktop.css
- Jeanne
Adam Winer wrote:
Phew, that's pretty much way off too. But, so where
should the stylesheets be installed? I'd assume they
should be relative to the context root. Or, even better,
this'd support an URL api so you can add stylesheets
that are stored in JARs.
-- Adam
On 10/18/06, Jeanne Waldman <[EMAIL PROTECTED]> wrote:
Yep, I was planning on that. What about this comment?
This style sheet
* should be installed under the directory specified by
* Configuration.STYLES_DIRECTORY path.
Jeanne
Adam Winer wrote:
> No complaints here. Need to fix up the doc not to say
> @see #getStyleSheetDocument, since that method is
> (correctly) not in the public API.
>
> -- Adam
>
>
> On 10/17/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
>
>>
>> +1
>>
>> On 10/17/06, Jeanne Waldman <[EMAIL PROTECTED]> wrote:
>> > I didn't realize until now that registerStyleSheet wasn't in the
>> public
>> > Skin API. It's only in SkinImpl.
>> > I'd like to add it to the Skin's APIs so that custom component
>> > developers can register skin
>> > definitions for their custom components to the base skins, like
>> simple.
>> > This way if the end user sets the skin to simple, the custom
>> components
>> > will have some
>> > styling. If we didn't do this, the custom components would have no
>> styling.
>> >
>> > Thanks,
>> > Jeanne
>> >
>> >
>> >
>>
>>
>> --
>> Matthias Wessendorf
>> http://tinyurl.com/fmywh
>>
>> further stuff:
>> blog: http://jroller.com/page/mwessendorf
>> mail: mwessendorf-at-gmail-dot-com
>>
>