You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Sugarman, Duke" <Du...@FMR.COM> on 2007/07/05 16:21:58 UTC
Adding custom links to the decorations/controls of a portlet window title bar
Hi,
We have a requirement to display a custom Edit button among the
decorations/controls of the portlet window title bar. This Edit button
will be a link to a page on our server.
Does JetSpeed 2.0 (or 2.1) support adding custom links/images to the
controls of a portlet window?
Thanks
Duke Sugarman
Fidelity Retail Brokerage Development
617.563.0789
Re: Adding custom links to the decorations/controls of a portlet window title bar
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Jul 5, 2007, at 7:21 AM, Sugarman, Duke wrote:
> Hi,
>
> We have a requirement to display a custom Edit button among the
> decorations/controls of the portlet window title bar. This Edit
> button
> will be a link to a page on our server.
>
> Does JetSpeed 2.0 (or 2.1) support adding custom links/images to the
> controls of a portlet window?
>
You will need to create your own custom portlet decorator
Take a look at one of the examples that comes with the installer or
source code
Under the Jetspeed webapp, see decorations/portlet/tigris/, and make
an entire copy of this directory, renaming the directory to say "demo"
edit the decorator.properties:
id=demo
name=demo
Then you can copy in the decorator.vm from the parent directory, and
customize that file
Here is the general loop used to create the action buttons:
#PortletActionBar($decoration)
This file exists in shared Velocity macro, you can replace that with
your own code, something like:
#set($_actions = $_decoration.actions)
<div class="PActionBar">
## build the standard actions
#foreach ($_action in $_actions)
<a href="${_action.Action}" title="${_action.Name}"
class="action portlet-action" #if($_action.target)
target="$_action.target"#end><img src="$request.contextPath/$
{_action.link}" alt="${_action.Alt}" border="0" /></a>
#end
## here we add our custom action :
<a href="http://linktospecial.com" title="Special"
class="action portlet-action" #if($_action.target)
target="$_action.target"#end><img src="$request.contextPath/$
{_action.link}" alt="${_action.Alt}" border="0" /></a>
</div>
Re: java.lang.NoClassDefFoundError: org/apache/jetspeed/components/portletregistry/RegistryEventListener
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Jul 9, 2007, at 8:31 AM, Sugarman, Duke wrote:
> Hi,
>
> I am trying to run the JetExpress Tutorial Portal (JetSpeed-2)
>
> When I start up the portal (in Tomcat, using "catdebug") I am
> getting a
> NoClassDefFoundError on class
> org.apache.jetspeed.components.portletregistry.RegistryEventListener :
>
>
> org.springframework.beans.factory.CannotLoadBeanClassException: Error
> loading class
> [org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl]
> for bean with name 'PortletWindowAccessor' defined in ServletContext
> resource [/WEB-INF/assembly/jetspeed-spring.xml]: problem with class
> file or dependent class; nested exception is
> java.lang.NoClassDefFoundError:
> org/apache/jetspeed/components/portletregistry/RegistryEventListener
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/jetspeed/components/portletregistry/RegistryEventListener
>
>
> Can anyone tell me what Jetspeed JAR file this class is supposed to be
> in?
>
sounds like the jetspeed-api jar is missing from shared/lib
this usually happens when your build.properties is not pointing at
the right place
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
java.lang.NoClassDefFoundError: org/apache/jetspeed/components/portletregistry/RegistryEventListener
Posted by "Sugarman, Duke" <Du...@FMR.COM>.
Hi,
I am trying to run the JetExpress Tutorial Portal (JetSpeed-2)
When I start up the portal (in Tomcat, using "catdebug") I am getting a
NoClassDefFoundError on class
org.apache.jetspeed.components.portletregistry.RegistryEventListener :
org.springframework.beans.factory.CannotLoadBeanClassException: Error
loading class
[org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl]
for bean with name 'PortletWindowAccessor' defined in ServletContext
resource [/WEB-INF/assembly/jetspeed-spring.xml]: problem with class
file or dependent class; nested exception is
java.lang.NoClassDefFoundError:
org/apache/jetspeed/components/portletregistry/RegistryEventListener
Caused by: java.lang.NoClassDefFoundError:
org/apache/jetspeed/components/portletregistry/RegistryEventListener
Can anyone tell me what Jetspeed JAR file this class is supposed to be
in?
Thank you.