Thanks for your help, David.  

I finally got this working right now, but it seemed a bit of a kludge. I
found that the ones that were public-view worked as you mentioned below.
However, for portlets that had a specific security-constraint-ref, I had
to modify that security-constraint-ref in page.security such that the
roles that could view the portlet would have permission to see the help.


I wouldn't think you would ever want to make the help non-visible to a
user of the portlet, but, hey, just glad it's all working!

Thanks again!
Jennifer

-----Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 11, 2007 7:56 PM
To: Jetspeed Users List
Subject: Re: Print Mode + Help Mode

If you run the demo, you will see the Pick A Number portlet with 4
actions:

Help
Print
Max
Min

After logging on as admin, you get five:

Help
Print
Max
Min
Edit

The visibility of the actions is dependent on:

1. the deployment descriptor (portlet.xml). You need to specify which
modes you support
     here is the definition for the Pick A Number portlet:

         <supports>
             <mime-type>text/html</mime-type>
             <portlet-mode>VIEW</portlet-mode>
             <portlet-mode>HELP</portlet-mode>
             <portlet-mode>EDIT</portlet-mode>
             <!--  support custom print mode -->
             <portlet-mode>print</portlet-mode>
         </supports>

and also in the security constraints or security permissions defined for
your page, or fragment on a page Taking the demo page example has:

   <security-constraints>
     <security-constraints-ref>public-view</security-constraints-ref>
   </security-constraints>

which is defined as:

   <security-constraints-def name="public-view">
     <security-constraint>
       <users>*</users>
       <permissions>view</permissions>
     </security-constraint>
     <security-constraint>
       <roles>admin</roles>
       <permissions>view, edit</permissions>
     </security-constraint>
   </security-constraints-def>



On Sep 7, 2007, at 8:42 AM, Ford, Jennifer M. wrote:

> I had two basic theories on this:
>
> 1- That the number of action icons was limited to 4
> 2- That there was a bug in the Jetspeed code that was preventing the 
> display of the help icon when print is enabled.
>
> I have removed the edit icon from some of my portlets and left the 
> print icon, and the help button did not reappear, so I guess it is 
> indeed a bug.
>
> What I see in the jetspeed-macros.vm, the actions come from the 
> layoutDecoration, which is loaded via the theme parameter in the 
> request.  And apparently, that theme parameter isn't getting set with 
> the HELP action.
>
> Now, does anyone know a quick workaround for this?  My users will be 
> very disappointed if they gain reporting functionality only to lose 
> their contextual help.
>
> Thanks,
> Jennifer
>
>
> -----Original Message-----
> From: Mohan K [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 07, 2007 10:36 AM
> To: 'Jetspeed Users List'
> Subject: RE: Print Mode + Help Mode
>
> If you use velocity then it is generated by the macro PortletActionBar

> for each portlet decoration (e.g. decorations/portlet/decorator.vm).
> The macro definition resided in WEB-INF/jetspeed-macros.vm
>
> Cheers
> mohan
> -----Original Message-----
> From: Ford, Jennifer M. [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 07, 2007 11:15 AM
> To: Jetspeed Users List
> Subject: RE: Print Mode + Help Mode
>
> Can anyone tell me where the portlet icons get drawn?  I have looked 
> around but didn't see anything in the velocity templates.
>
>
> -----Original Message-----
> From: Ford, Jennifer M.
> Sent: Thursday, September 06, 2007 10:59 PM
> To: [email protected]
> Subject: Print Mode + Edit Mode
>
> I have several portlet windows that are supposed to support modes:  
> VIEW,
> EDIT, HELP as well as PRINT.  The print mode works great, but now I 
> don't get a help icon anymore.  Anyone else seen this issue?
>
> Thanks,
> Jennifer
>
> ---------------------------------------------------------------------
> 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]
>
>
> ---------------------------------------------------------------------
> 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]
>
>

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to