First page Back Continue Last page Text

oracle adf workshop


Using Skin Configuration Elements in trinidad-skins.xml (continued)

<style-sheet-name>: This is the URL of the custom style sheet. The style sheet name file is retrieved as an URL object by using the following methods:

For nonstatic URLs, those that can change after the server has started, the URL is created by calling new<style-sheet-name> if <style-sheet-name> starts with http:, https:, file:, ftp:, or jar:. Otherwise, the URL is created by calling <FacesContext> <ExternalContext> getResource<style-sheet-name>, prepending “/” if it is not already present. The following is an example of this: skins/bigfont/bigfont.css.

If the URL is still not retrieved, it is created by using <ClassLoader> getResource. The following is an example of this: META­INF/purpleSkin/styles/myPurpleSkin.css.

<bundle-name>: The resource bundle created for the skin. If you did not create a custom bundle, you do not need to declare this element.

<translation-source>: This is an EL binding that can point to a Map or a ResourceBundle. You can use this instead of the bundle name if you want to be more dynamic in your skin translations at run time. The <bundle-name> tag takes precedence.