In /WEB-INF/conf/jetspeed.properties, there are properties like the following:

# -------------------------------------------------------------------
#  Portlet Mode Support
# -------------------------------------------------------------------
# standard
supported.portletmode = view
supported.portletmode = edit
supported.portletmode = help
# extended
supported.portletmode = about
supported.portletmode = config
supported.portletmode = edit_defaults
supported.portletmode = preview
supported.portletmode = print
supported.portletmode = secure  #currentlyonlyusedfortestingpurposes
# auto-switching
# switch config mode to built-in custom config mode portlet
supported.portletmode.autoswitch.config=true
# switch edit_defaults mode to edit mode automatically for portlets not 
supporting edit_defaults mode
supported.portletmode.autoswitch.edit_defaults=true
# auto-switching surrogate portlet for config mode
supported.portletmode.autoswitch.config.surrogate.portlet = 
j2-admin::CustomConfigModePortlet
# switch preview mode to built-in custom preview mode portlet unless the 
portlet implements preview mode.
supported.portletmode.autoswitch.preview=true
# auto-switching surrogate portlet for preview mode
supported.portletmode.autoswitch.preview.surrogate.portlet = 
j2-admin::CustomPreviewModePortlet


Do you have the "supported.portletmode = config" line, too?

Regards,

Woonsan


----- Original Message -----
> From: robin <[email protected]>
> To: Jetspeed Users List <[email protected]>
> Cc: 
> Sent: Tuesday, June 19, 2012 2:36 AM
> Subject: Re: how to custom portlet action bar in jetspeed 2.2.1
> 
> 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]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to