Re: how to custom portlet action bar in jetspeed 2.2.1

"robin" <[email protected]> Tue, 19 Jun 2012 14:36:11 +0800
Newsgroups gmane.comp.jakarta.jetspeed.user
Message-ID <[email protected]>
Hi Woonsan

 yes, i did config item as your guide. i want to use portlet config mode in my portal application.  l login portal as admin. the "config" icon doesnot display on portlet action bar. 

i checked code in decorator.vm as following

<div class="PActionBar">
    #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
         </div>

  
it seems "config" does'nt included in $_actions list.

thanks

2012-06-19 



 
Hi Robin,
Did you set the followings in /WEB-INF/conf/jetspeed.properties?
# switch config mode to built-in custom config mode portlet
supported.portletmode.autoswitch.config=true
# auto-switching surrogate portlet for config mode
supported.portletmode.autoswitch.config.surrogate.portlet = j2-admin::CustomConfigModePortlet
Also, did you have the following in the portlet decorator configuration file (/decorations/portlet/<the portlet decorator name>/decorator.properties) ?
actions.factory=org.apache.jetspeed.decoration.CustomDecoratorActionsFactory
Of course, as you did, the portlet.xml should define the custom-portlet-mode.
Finally, are you authorized to edit the page where you want to configure the portlet fragment?
The config mode tries to add constraints into the page, so you should be allowed to do that.
Regards,
Woonsan
----- Original Message -----
> From: robin <[email protected]>
> To: Jetspeed Users List <[email protected]>
> Cc: 
> Sent: Monday, December 19, 2011 3:45 AM
> Subject: Re: how to custom portlet action bar in jetspeed 2.2.1
> 
> 
> Again, how can i add config action button for our portlets, i see some portlet 
> such as SSO change password portlet has config button, but my portlets does not 
> show it.  
> 
> i has added following code
> 
>   <custom-portlet-mode>
>     <description>Custom Config Mode</description>
>     <portlet-mode>config</portlet-mode>
>   </custom-portlet-mode>
> 
> into my portlet.xml
> 
> 2011-12-19 
> 
> 
> 
> Best Regards
> Robin Xie
> 
> 
> 
> robin 
> 2011-12-14  18:10:24 
> jetspeed-user 
> 
> how to custom portlet action bar in jetspeed 2.2.1 
> 
> i want to add a refresh action buttion into portlet action bar, how can i 
> complete it
> 2011-12-14 
> Best Regards
> Robin Xie
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]