Hi Mansour
A bit of experimentation and a careful read of JSR 168 and JSR 286 lead me
to believe that this is not a standard thing to do.
- NORMAL, MAXIMIZED and MINIMIZED are <window-state> values, not
<portlet-mode> values.
- JSR 168 is a bit ambiguous about window states, but JSR 286 states that
all portlets must support NORMAL, MAXIMIZED and MINIMIZED at a minimum, so
they need not be defined. It seems to make no provision for turning off
support for any of these window states.
So for now I am back to the custom decorator...
Regards
Ron
----- Original Message -----
From: "Mansour Al Akeel" <[email protected]>
To: "Jetspeed Users List" <[email protected]>
Sent: Sunday, November 22, 2009 6:17 PM
Subject: Re: Stopping a portlet from maximizing
did you try setting the allowed modes in the portlet.xml ?
For example,
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>MINIMIZE</portlet-mode>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>EDIT</portlet-mode>
</supports>
Let us know if it work ?
On Sat, Nov 21, 2009 at 2:19 AM, Ron McNulty <[email protected]> wrote:
Hi All
I have a requirement where a portlet should not be able to be maximized
(mainly because it looks rather silly when maximized) Currently I have
written a custom portlet decorator (skin?) that filters out the maximize
icon.
Is there a cleaner/simpler way to do this? I have a feeling that I saw a
maximum window size setting somewhere, but I can't track it down.
Regards
Ron
---------------------------------------------------------------------
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]