[
https://issues.apache.org/jira/browse/JS2-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Woonsan Ko resolved JS2-1120.
-----------------------------
Resolution: Fixed
Fix Version/s: (was: 2.2.2)
2.2.1
I think it's been fixed with two optional metadata.
If a portlet application contains the following optional metadata in
jetspeed-portlet.xml as application-level metadata, then portlet icon resource
paths can be overriden.
<js:metadata name="portlet.icon.holder" xml:lang="en">portlet</js:metadata>
<js:metadata name="portlet.icon.base.path"
xml:lang="en">/images/portlet-icons</js:metadata>
If the first metadata, *portlet.icon.holder*, exists and it has "portlet"
value, then the portlet application's context would be used to load the portlet
icon resource.
If it is not set or if it has a different value from "portlet", then the portal
web app's context would be used to load the porlet icon resource as it has done
so far.
If the second metadata, *portlet.icon.base.path*, is set, then the value would
be used as a context relative portlet icon base path.
If it is not set, then the default context relative base path,
"/images/portlets", would be used.
Regards,
Woonsan
> Portlet icon to be shown on toolbox should be loaded from application context
> -----------------------------------------------------------------------------
>
> Key: JS2-1120
> URL: https://issues.apache.org/jira/browse/JS2-1120
> Project: Jetspeed 2
> Issue Type: Improvement
> Affects Versions: 2.2.1
> Reporter: Gonzalo Aguilar
> Assignee: Woonsan Ko
> Priority: Minor
> Fix For: 2.2.1
>
> Attachments: Prepatch-j2-admin-JS2-1120-20100307.patch,
> Prepatch-jetspeed2-JS2-1120-20100307.patch
>
>
> Portlet icons are currently loaded from Portal context.
> It makes difficult to update individual Portlet icons because they must be
> deployed to the Portal Application.
> Proposed change is to make Portal to lookup the resource on Portlet context
> if the icon is not found in the main Portal location.
> This will help developers update Portlet icons with application.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]