Re: how to custom portlet action bar in jetspeed 2.2.1

Woonsan Ko <[email protected]>
Newsgroups gmane.comp.jakarta.jetspeed.user
Message-ID <[email protected]>
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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.