[gatein-issues] [JBoss JIRA] Updated: (GTNPORTAL-1752) "Preferences" tab is only showing up if portlet has been customized (Only possible though portal.xml)

Thomas Heute (JIRA) jira-events at lists.jboss.org
Thu Jan 13 12:32:49 EST 2011


     [ https://issues.jboss.org/browse/GTNPORTAL-1752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Heute updated GTNPORTAL-1752:
------------------------------------

    Summary: "Preferences" tab is only showing up if portlet has been customized (Only possible though portal.xml)  (was: The changes in the portal.xml don't take effect unless the database is cleaned up and the server is restart.)


I renamed the Jira to be more accurate. 
The issue is that for portlets that don't have an EDIT mode, there is an autogenerated form which doesn't take into account preferences that haven't been overridden (only possible from portal.xml as they don't have an EDIT mode).

The "preferences" tab looks into the portlet state that doesn't take into account the default preference set in portlet.xml and then consider that it doesn't have any preference.

In fact the auto-generated form is wrong, it will also always display: 
"UIPortletForm.tab.label.Template" as label

Overall I don't really like this auto-generated form or it should be configurable. We will have situations where we want to have portlet preferences but not necessarily have a form for it.

On the other end, for the portlets we provide such as the banner portlet, we should provide a way to modify the preference from the portal.


> "Preferences" tab is only showing up if portlet has been customized (Only possible though portal.xml)
> -----------------------------------------------------------------------------------------------------
>
>                 Key: GTNPORTAL-1752
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-1752
>             Project: GateIn Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Gary Hu
>
> The default site classic includes the following in the gatein.ear/02portal.war/WEB-INF/conf/portal/portal/classic/portal.xml:
>   <portlet-application>
>       <portlet>
>         <application-ref>web</application-ref>
>         <portlet-ref>BannerPortlet</portlet-ref>
>         <preferences>
>           <preference>
>             <name>template</name>
>             <value>par:/groovy/groovy/webui/component/UIBannerPortlet.gtmpl</value>
>             <read-only>false</read-only>
>           </preference>
>         </preferences>
>       </portlet>
>       <access-permissions>Everyone</access-permissions>
> 	    <show-info-bar>false</show-info-bar>
>   </portlet-application>
>   <portlet-application>
>       <portlet>
>         <application-ref>web</application-ref>
>         <portlet-ref>BreadcumbsPortlet</portlet-ref>        
>       </portlet>
>       <access-permissions>Everyone</access-permissions>
> 	    <show-info-bar>false</show-info-bar>
>  </portlet-application>
> Please note that the BannerPortlet contains "preferences" property but the BreadcumbsPortlet doesn't.
> To reproduce the issue,
>  1)  log on the EPP 5 as root. 
>  2) go to the classic site
>  3) under the "Site Editor"  click "Edit Layout". 
>  4) click the "Edit Portlet" icon on Banner Portlet, it shows a tab "Preferences". If clicking the "Edit Portlet" icon on Breadcumbs Portlet, it doesn't show the "Preferences" tab.   
> If you modify the portal.xml to add the "preferences" element it won't take effect until the database is cleaned up and the server is restarted.
>     <portlet-application>
>       <portlet>
>         <application-ref>web</application-ref>
>         <portlet-ref>BreadcumbsPortlet</portlet-ref>      
>         <preferences>
>             <preference>
>                <name>template</name>
>               <value>system:/groovy/webui/core/UIBreadcumbs.gtmpl</value>
>               <read-only>false</read-only>
>             </preference>
>         </preferences>   
>       </portlet>
>       <access-permissions>Everyone</access-permissions>
> 	    <show-info-bar>false</show-info-bar>
>  </portlet-application>

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list