rich:toolbar formatting on Oracle 10.1.3
gsaltd Oct 24, 2007 11:00 AMI am using rich:toolBar component (version 3.1.0)which works well on tomcat 10.0.13. However when I use it on Oracle 10.1.3 application server it isn't styled correctly.
I know that other threads have said to switch the XML compiler to xerces which I have done. This has worked correctly because the following code in a jsp page:
<% DocumentBuilder builder=null; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); builder = factory.newDocumentBuilder(); String xmlFactory = factory.getClass().getName(); String xmlBuilder = builder.getClass().getName(); %> <h2>DOM Parser</h2> DocumentBuilderFactory Instance: <%=xmlFactory%><br> DocumentBuilder Instance: <%=xmlBuilder%><br>
which gives me the following results:
DOM Parser
DocumentBuilderFactory Instance: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
DocumentBuilder Instance: org.apache.xerces.jaxp.DocumentBuilderImpl
The css generated by tomcat
.dr-toolbar-ext{ border:1px solid;border-color:#BED6F8;padding:0px;background-color:#BED6F8;background-position:top left;background-repeat:repeat-x;background-image: url(/cycviewweb/faces/a4j_3_1_0org.richfaces.renderkit.html.GradientA/DATB/eAH7..3Tj2v7ABPtBXU_);} .dr-toolbar-int{ font-size:11px;color:#000000;font-weight:bold;font-family:Arial, Verdana, sans-serif;padding:2px 10px 2px 10px;white-space:nowrap;}
The css generated by Oracle is:
<template xmlns:f="http:/jsf.exadel.com/template" xmlns:u="http:/jsf.exadel.com/template/util" xmlns="http://www.w3.org/1999/xhtml"><selector name=".dr-toolbar-ext"><style name="border" value="1px solid"></style><style name="border-color" skin="panelBorderColor"></style><style name="padding" value="0px"></style><style name="background-color" skin="headerBackgroundColor"></style><style name="background-position" value="top left"></style><style name="background-repeat" value="repeat-x"></style><style name="background-image"><resource f:key="org.richfaces.renderkit.html.GradientA"></resource></style></selector><selector name=".dr-toolbar-int"><style name="font-size" skin="headerSizeFont"></style><style name="color" skin="headerTextColor"></style><style name="font-weight" skin="headerWeightFont"></style><style name="font-family" skin="headerFamilyFont"></style><style name="padding" value="2px 10px 2px 10px"></style><style name="white-space" value="nowrap"></style></selector></template>
Can anyone advise me on this?