Bug 989610

Summary: Navigation API portlet is not rendered correctly after first adding to the page
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Filip Kiss <fkiss>
Component: QuickstartsAssignee: Peter Palaga <ppalaga>
Status: VERIFIED --- QA Contact: Tomas Kyjovsky <tkyjovsk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bdawidow
Target Milestone: ER05   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Flags
portlet is not displayed correctly none

Description Filip Kiss 2013-07-29 16:18:17 UTC
Description of problem:
Navigation API portlet is not rendered correctly after first adding to the page. When you refresh the page, portlet is rendered correctly.

Comment 1 Filip Kiss 2013-07-29 16:19:39 UTC
Created attachment 780013 [details]
portlet is not displayed correctly

Comment 4 Viliam Rockai 2013-08-07 10:14:56 UTC
The problem is caused by missing portlet-skin definition in the gatein-reources.xml of the navigation API portlet. While the GateIn uses the skin named "Default", the JPP uses the skin named "JppSkin". 

If you want portlets to use correct CSS files, you have to specify it for each skin used. For default portlets used in GateIn/JPP this (additional definition for JppSkin) is done within the gatein-resources.xml of the branding skin:

https://github.com/gatein-prod/gatein-portal/blob/3.6.x-prod/packaging/jpp-branding/branding-skin/src/main/webapp/WEB-INF/gatein-resources.xml#L39

We're missing this for the QS portlet. 

The solution would be pasting this code:
<portlet-skin>
    <application-name>navigation-api-portlet</application-name>
    <portlet-name>QuickstartNavigationPortlet</portlet-name>
    <skin-name>JppSkin</skin-name>
    <css-path>/css/QuickstartStylesheet.css</css-path>
</portlet-skin>

on this place:
https://github.com/gatein/gatein-portal-quickstart/blob/master/navigation-api-portlet/src/main/webapp/WEB-INF/gatein-resources.xml#L57

in the productized QS repo.

Comment 5 Boleslaw Dawidowicz 2013-08-07 10:16:20 UTC
Peter, maybe we could do this as part of QS productization