Bug 813751
| Summary: | Portlet Bridge - NPE when loading styles via link element | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Portal Platform 5 | Reporter: | Miroslav Cupák <mcupak> | ||||
| Component: | PortletBridge | Assignee: | Ken Finnigan <kfinniga> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 5.2.1.CR02 | CC: | epp-bugs, hfnukal, tkyjovsk | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 5.2.2.ER01 | ||||||
| Hardware: | i686 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | PBR 2.3.1.EPP522 | Doc Type: | Bug Fix | ||||
| Doc Text: |
Documentation quoted that the <link> element could be used to import Rich Faces XCSS scripts and stylesheets using the following syntax:</para><programlisting><link type="text/css" rel="stylesheet" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/></programlisting><para>This syntax is no longer correct, and results in a NPE. To correct the issue, use a4j:loadstyle to import the scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:</para><programlisting><a4j:loadScript src="resource:////org/ajax4jsf/framework.pack.js" type="text/javascript"/>
<a4j:loadScript src="resource:////org/richfaces/ui.pack.js" type="text/javascript"/>
<a4j:loadStyle src="resource:////org/richfaces/skin.xcss"/></programlisting>
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-02-19 13:33:17 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Miroslav Cupák
2012-04-18 11:13:40 UTC
Created attachment 578316 [details]
NPE caused by <link rel="stylesheet" type="text/css" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/>.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Documentation needs to be updated for Portlet Bridge to recommend following for including RichFaces scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:
<a4j:loadScript src="resource:////org/ajax4jsf/framework.pack.js" type="text/javascript" />
<a4j:loadScript src="resource:////org/richfaces/ui.pack.js" type="text/javascript" />
<a4j:loadStyle src="resource:////org/richfaces/skin.xcss" />
Ken Finnigan <ken> updated the status of jira PBR-325 to Closed
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1,6 +1,6 @@
-Documentation needs to be updated for Portlet Bridge to recommend following for including RichFaces scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:
+Documentation quoted that the <link> element could be used to import Rich Faces XCSS scripts and stylesheets using the following syntax <link rel="stylesheet" type="text/css" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/>. This syntax is no longer correct, and results in a NPE. To correct the issue, use a4j:loadstyle to import the scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:
-
- <a4j:loadScript src="resource:////org/ajax4jsf/framework.pack.js" type="text/javascript" />
+<programlisting>[CDATA[
+<a4j:loadScript src="resource:////org/ajax4jsf/framework.pack.js" type="text/javascript" />
<a4j:loadScript src="resource:////org/richfaces/ui.pack.js" type="text/javascript" />
- <a4j:loadStyle src="resource:////org/richfaces/skin.xcss" />+ <a4j:loadStyle src="resource:////org/richfaces/skin.xcss" />]]</programlisting>
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1,6 +1,10 @@
-Documentation quoted that the <link> element could be used to import Rich Faces XCSS scripts and stylesheets using the following syntax <link rel="stylesheet" type="text/css" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/>. This syntax is no longer correct, and results in a NPE. To correct the issue, use a4j:loadstyle to import the scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:
+Documentation quoted that the <link> element could be used to import Rich Faces XCSS scripts and stylesheets using the following syntax:</para>
-<programlisting>[CDATA[
+<programlisting>&[CDATA[<link rel="stylesheet" type="text/css" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/>]];</programlisting>.
+
+<para>This syntax is no longer correct, and results in a NPE. To correct the issue, use a4j:loadstyle to import the scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:
+
+<programlisting>&[CDATA[
<a4j:loadScript src="resource:////org/ajax4jsf/framework.pack.js" type="text/javascript" />
<a4j:loadScript src="resource:////org/richfaces/ui.pack.js" type="text/javascript" />
- <a4j:loadStyle src="resource:////org/richfaces/skin.xcss" />]]</programlisting>+ <a4j:loadStyle src="resource:////org/richfaces/skin.xcss" />]];</programlisting>
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1,10 +1,10 @@
Documentation quoted that the <link> element could be used to import Rich Faces XCSS scripts and stylesheets using the following syntax:</para>
-<programlisting>&[CDATA[<link rel="stylesheet" type="text/css" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/>]];</programlisting>.
+<programlisting><![CDATA[<link rel="stylesheet" type="text/css" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/>]]></programlisting>.
<para>This syntax is no longer correct, and results in a NPE. To correct the issue, use a4j:loadstyle to import the scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:
-<programlisting>&[CDATA[
+<programlisting><![CDATA[
<a4j:loadScript src="resource:////org/ajax4jsf/framework.pack.js" type="text/javascript" />
<a4j:loadScript src="resource:////org/richfaces/ui.pack.js" type="text/javascript" />
- <a4j:loadStyle src="resource:////org/richfaces/skin.xcss" />]];</programlisting>+ <a4j:loadStyle src="resource:////org/richfaces/skin.xcss" />]]></programlisting>
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1,10 +1,10 @@
Documentation quoted that the <link> element could be used to import Rich Faces XCSS scripts and stylesheets using the following syntax:</para>
-<programlisting><![CDATA[<link rel="stylesheet" type="text/css" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/>]]></programlisting>.
+<programlisting><link rel="stylesheet" type="text/css" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/></programlisting>
-<para>This syntax is no longer correct, and results in a NPE. To correct the issue, use a4j:loadstyle to import the scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:
+<para>This syntax is no longer correct, and results in a NPE. To correct the issue, use a4j:loadstyle to import the scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:</para>
-<programlisting><![CDATA[
+<programlisting>
<a4j:loadScript src="resource:////org/ajax4jsf/framework.pack.js" type="text/javascript" />
<a4j:loadScript src="resource:////org/richfaces/ui.pack.js" type="text/javascript" />
- <a4j:loadStyle src="resource:////org/richfaces/skin.xcss" />]]></programlisting>+ <a4j:loadStyle src="resource:////org/richfaces/skin.xcss" /></programlisting>
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1,10 +1,3 @@
-Documentation quoted that the <link> element could be used to import Rich Faces XCSS scripts and stylesheets using the following syntax:</para>
+Documentation quoted that the <link> element could be used to import Rich Faces XCSS scripts and stylesheets using the following syntax:</para><programlisting><link type="text/css" rel="stylesheet" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/></programlisting><para>This syntax is no longer correct, and results in a NPE. To correct the issue, use a4j:loadstyle to import the scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:</para><programlisting><a4j:loadScript src="resource:////org/ajax4jsf/framework.pack.js" type="text/javascript"/>
-
+ <a4j:loadScript src="resource:////org/richfaces/ui.pack.js" type="text/javascript"/>
-<programlisting><link rel="stylesheet" type="text/css" href="/richFacesPortlet/faces/rfRes/org/richfaces/skin.xcss"/></programlisting>
+ <a4j:loadStyle src="resource:////org/richfaces/skin.xcss"/></programlisting>-
-<para>This syntax is no longer correct, and results in a NPE. To correct the issue, use a4j:loadstyle to import the scripts and stylesheets when using LoadStyleStrategy and LoadScriptStrategy of NONE:</para>
-
-<programlisting>
-<a4j:loadScript src="resource:////org/ajax4jsf/framework.pack.js" type="text/javascript" />
- <a4j:loadScript src="resource:////org/richfaces/ui.pack.js" type="text/javascript" />
- <a4j:loadStyle src="resource:////org/richfaces/skin.xcss" /></programlisting>
|