Contentcompression für CSS abschalten

Beim Erstellen von eigenen Skins für JD11 kommt man schnell an den Punkt, wo einem nicht mehr klar ist, warum die von einem Skin betroffenen Elemente sich nicht so darstellen, wie man es gewünscht hat.

Sieht man sich den Quellcode der erzeugten CSS Infromationen der Seiten an stolpert man über kryptische Namen, die bei der Erzeugung der Seiten angelegt werden, um die CSS-Infos (speichertechnisch) klein zu halten.

.AFInstructionText, .x0, .AFFieldText, .x6, .xk, .xl, .xm, .x23, .x24, .x2d, .x2f, .x2h, .x1u.x2n .x25, .x1u.p_AFDisabled.x2n .x25, .x1u.x2p .x25, .x1u.x2q .x25, .x1u.x2r .x25, .x1u.x2s .x25, .x22.x2n .x24, .x22.p_AFDisabled.x2n .x24, .x22.x2p .x24, .x22.x2q .x24, .x22.x2r .x24, .x22.x2s .x24, .x1t.x2n .x26, .x1t.p_AFDisabled.x2n .x26, .x1t.x2p .x26, .AFFieldTextLTR, .x94, .AFPhoneFieldText, .x96, .AFPostalCodeFieldText, .x98, .AFAddressFieldText, .x9a, .PortletSubHeaderText, .xbz, .PortletText1, .xc0, .PortletText2, .xc1, .PortletText3, .xc2, .PortletText4, .xc3, .portlet-font, .xc4, .portlet-msg-info, .xc6, .portlet-form-input-field, .xcn, .portlet-form-field, .xcs {
color:#000000;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:normal;
}
.AFInstructionTextDisabled, .x1, .AFFieldTextDisabled, .x7, .x1u.p_AFDisabled.x2p .x25, .x1u.p_AFDisabled.x2q .x25, .x1u.p_AFDisabled.x2r .x25, .x1u.p_AFDisabled.x2s .x25, .x22.p_AFDisabled.x2p .x24, .x22.p_AFDisabled.x2q .x24, .x22.p_AFDisabled.x2r .x24, .x22.p_AFDisabled.x2s .x24, .x1t.p_AFDisabled.x2p .x26, .x61, .p_InContextBrandingText, .x8r, .AFFieldTextLTRDisabled, .x95, .AFPhoneFieldTextDisabled, .x97, .AFPostalCodeFieldTextDisabled, .x99, .AFAddressFieldTextDisabled, .x9b, .OraHGridNavRowInactiveLink, .xa5, .OraNavBarInactiveLink, .xac, .portlet-font-dim, .xc5 {
color:#7E807A;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:normal;
}
.AFDataText, .x2, .PortletHeaderText, .xbs {
color:#000000;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:bold;
}

Leider werden so einige zusammenhänge ebenfalls verschleiert. Unter JD10.1.3 konnte diese Komprimierung durch einen Eintrag in der web.xml abgeschaltet werden:


<context-param>

<paramname>oracle.adfinternal.view.faces.DISABLE_CONTENT_COMPRESSION</param-name>
<param-value>true</param-value>

</context-param>

Unter JD11 hat sich der Syntax leicht geändert (siehe forums.oracle.com/forums/thread.jspa?messageID=2432817&tstart=0#2432817) und lautet nun


<context-param>

<param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION</param-name>
<param-value>true</param-value>

</context-param>

Hier das Resultat (wie oben mit der neuen Einstellung):

.AFInstructionText, .AFFieldText, .af_outputText, .af_outputFormatted, .af_outputDocument, .af_inputChoice_content, .af_inputChoice_content-input, .af_selectManyCheckbox_content, .af_selectOneChoice_content, .af_selectOneRadio_content, .af_inputText.AFFieldTextMarker .af_inputText_content, .af_inputText.p_AFDisabled.AFFieldTextMarker .af_inputText_content, .af_inputText.AFFieldTextLTRMarker .af_inputText_content, .af_inputText.AFPhoneFieldTextMarker .af_inputText_content, .af_inputText.AFPostalCodeFieldTextMarker .af_inputText_content, .af_inputText.AFAddressFieldTextMarker .af_inputText_content, .af_inputChoice.AFFieldTextMarker .af_inputChoice_content-input, .af_inputChoice.p_AFDisabled.AFFieldTextMarker .af_inputChoice_content-input, .af_inputChoice.AFFieldTextLTRMarker .af_inputChoice_content-input, .af_inputChoice.AFPhoneFieldTextMarker .af_inputChoice_content-input, .af_inputChoice.AFPostalCodeFieldTextMarker .af_inputChoice_content-input, .af_inputChoice.AFAddressFieldTextMarker .af_inputChoice_content-input, .af_inputNumberSpinbox.AFFieldTextMarker .af_inputNumberSpinbox_content, .af_inputNumberSpinbox.p_AFDisabled.AFFieldTextMarker .af_inputNumberSpinbox_content, .af_inputNumberSpinbox.AFFieldTextLTRMarker .af_inputNumberSpinbox_content, .AFFieldTextLTR, .AFPhoneFieldText, .AFPostalCodeFieldText, .AFAddressFieldText, .PortletSubHeaderText, .PortletText1, .PortletText2, .PortletText3, .PortletText4, .portlet-font, .portlet-msg-info, .portlet-form-input-field, .portlet-form-field {
color:#000000;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:normal;
}
.AFInstructionTextDisabled, .AFFieldTextDisabled, .af_inputText.p_AFDisabled.AFFieldTextLTRMarker .af_inputText_content, .af_inputText.p_AFDisabled.AFPhoneFieldTextMarker .af_inputText_content, .af_inputText.p_AFDisabled.AFPostalCodeFieldTextMarker .af_inputText_content, .af_inputText.p_AFDisabled.AFAddressFieldTextMarker .af_inputText_content, .af_inputChoice.p_AFDisabled.AFFieldTextLTRMarker .af_inputChoice_content-input, .af_inputChoice.p_AFDisabled.AFPhoneFieldTextMarker .af_inputChoice_content-input, .af_inputChoice.p_AFDisabled.AFPostalCodeFieldTextMarker .af_inputChoice_content-input, .af_inputChoice.p_AFDisabled.AFAddressFieldTextMarker .af_inputChoice_content-input, .af_inputNumberSpinbox.p_AFDisabled.AFFieldTextLTRMarker .af_inputNumberSpinbox_content, .af_menuButtons_text-disabled, .p_InContextBrandingText, .AFFieldTextLTRDisabled, .AFPhoneFieldTextDisabled, .AFPostalCodeFieldTextDisabled, .AFAddressFieldTextDisabled, .OraHGridNavRowInactiveLink, .OraNavBarInactiveLink, .portlet-font-dim {
color:#7E807A;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:normal;
}
.AFDataText, .PortletHeaderText {
color:#000000;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:bold;
}

Danke an Frank Nimphius für diese Info!

Damit gestaltet sich die Suche etwas einfacher.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s