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 Brad Straw <bk...@netscape.net> on 2003/02/27 19:44:17 UTC
Print-friendly portlet mode
Has anyone been successful in developing a security role that only allowed view and print-friendly portlet modes? I would like to have certain portlets to have the print-friendly option without the customize and info icons as well.
I've been able to develop custom security roles that only allowed view, maximize, and minimize but I have not been successful with this configuration.
Thanks
Brad
__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
JetspeedPortletInstance.getAttributeNames
Posted by Ryan Christianson <ry...@echospace.com>.
Forgive me if this is a known issue. I did a bug search for it, but I
did'nt find it. It seems that PortletInstance.getAttributeNames() takes
a really long time to call, or that it goes into a infinite loop.
I had have this in my code:
log( "getAttributeNames.start" );
portletInstance.getAttributeNames();
log( "getAttributeNames.end" );
After it locks up, I restart tomcat and this is what is in the log (note
there is no "getAttributeNames.end"):
--- snip ---
2003-02-27 13:15:15 getAttributeNames.start
2003-02-27 13:15:49 StandardWrapper[/jetspeed:jetspeed]: Waiting for 1
instance(s) to be deallocated
--- snip ---
I switched to PortletInstance.getAttributes(), and my problems went away.
Platform info:
- Red Hat Linux 8
- Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
- Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
- Apache Jetspeed Portal - Version 1.4-b3
- Tomcat 4.1
Is there something else going on?
Thanks.
Ryan Christianson
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Print-friendly portlet mode
Posted by Werner Ramaekers <we...@shiftat.com>.
adding something like this to the security.xreg should give you what
you're looking for :
<security-entry name="user_print">
<meta-info>
<title>User with Print</title>
<description>Users that can have print friendly
views.</description>
</meta-info>
<access action="*">
<allow-if role="admin"/>
</access>
<access action="view">
<allow-if role="user_print"/>
</access>
<access action="print_friendly">
<allow-if role="user_print"/>
</access>
</security-entry>
Hope this helps
Werner
Brad Straw wrote:
>Has anyone been successful in developing a security role that only allowed view and print-friendly portlet modes? I would like to have certain portlets to have the print-friendly option without the customize and info icons as well.
>
>I've been able to develop custom security roles that only allowed view, maximize, and minimize but I have not been successful with this configuration.
>
>Thanks
>
>Brad
>
>__________________________________________________________________
>The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp
>
>Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
>
>
--
----------------------------------------------------------------------
ir. Werner Ramaekers
Enterprise Java Solutions Architect - Shift@
BeJUG steering committee member
JBoss Certified Services Partner
Read my Blog at http://www.werner.be
"May the source be with you."
----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Custom customizer, setMode not working?
Posted by Ryan Christianson <ry...@echospace.com>.
I have a custom customizer. If the user enters bad data in my customizer
form, I want to set the mode back to customize so the user is sent back
to my customizer form (where I'll show the same form, with error messages).
Right now in my Action class, I call:
jRunData.setMode( JetspeedRunData.CUSTOMIZE );
And it still sends me back to "JetspeedRunData.NORMAL" mode.
Is there something else I have to do to change the mode, in a action?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org