have trindad-skins.xml in your web-inf folder and have the following tag
<skin> <id>dummy.desktop</id> // you are overriding the style <family>dummy</family> <extends>fusion.desktop</extends> // this should be from the trinidad-config.cml <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id> <style-sheet-name>skins/dummy/dummy.css</style-sheet-name> <bundle-name>oracle.view.resource.rich.SkinBundle</bundle-name> // your skin bundle to override the name </skin>
here dummy.css is used to override any visual property of the faces component defined in fusion theme
to override the label, use in the SkinBundle like (The java bundle file should be registered as a managed bean in adfc-config.xml)
package oracle.view.resource.rich; import java.util.ListResourceBundle; public class SkinBundle extends ListResourceBundle { @Override public Object[] getContents() { return _CONTENTS; } static private final Object[] _CONTENTS = { { "af_panelCollection.LABEL_DETACH_TABLE_DLG", "Any name for the Detachable Table" }, { "af_panelCollection.LABEL_DETACH_TREE_TABLE_DLG", "Any name for the Detachable Tree Table" } }; }
Hi user, I get errors though can you mail me the sample application animesh97@yahoo.com
I land with errors in getContent() method.
Hi Krishna,
is it necessary to register the bundle class in adfc-config.xml…?
Hey, this code did not work for me..did you try implementing this? All i changed is the _CONTENTS to 2d array…