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 "Jeff P." <ha...@gmail.com> on 2009/11/04 21:37:04 UTC
Re: Default Portlet State
We have a custom built portal built on Jetspeed 2.2. Was there any support
added to this version to allow for the setting of the initial window state
of a portlet? I checked the spec and the PSML doc and didn't see anything.
We'd like to be able to set the initial window state of one or more portlets
on a page to be MINIMIZED. I know others have asked the question but didn't
see any activity on this topic for a while. Thanks so much.
Ate Douma wrote:
>
> Correct, this is a portlet api (1.0) "limitation" and not every easy to
> overcome without some nasty hacking within the
> core of Jetspeed (and Pluto), which of course won't be "portable" at all.
>
> With regards to portlet api 2.0, yes there is potential support for this.
> But it concerns using and handling some of the predefined container events
> (PLT.15.3) which are not required to be
> supported. So, it depends on the container if/how these events are
> fired/delivered.
> Rest assured though, Jetspeed definitely *will* support these events once
> we provide our JSR-286 implementation.
>
> Ate
>
>
--
View this message in context: http://old.nabble.com/Default-Portlet-State-tp16690968p26204161.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Stopping a portlet from maximizing
Posted by David Sean Taylor <d....@onehippo.com>.
On Nov 22, 2009, at 12:43 AM, Ron McNulty wrote:
> 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...
>
I find the whole action processing in Jetspeed annoying. I have
created an issue to re-implement actions in a less complicated, more
easily configurable manner (JS2-1059). The most obvious approach I
took was to comment out the maximize window in jetspeed.properties:
# supported.windowstate = maximized
However doing so has absolutely no effect.
Recommend writing your own custom decorator factory and set it in your
portlet decorator:
actions
.factory=org.apache.jetspeed.decoration.ClearDecoratorActionsFactory
Currently, the factory class is the best place to implement custom
action filtering and behavior
If you working off the trunk, there are a few new features in progress:
# option.actions valid values are: show | hide | dropdown | hover
(default=show)
option.actions=hide
# option.title valid values are: show | hide (default=show)
option.title=show
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Stopping a portlet from maximizing
Posted by Ron McNulty <rm...@xtra.co.nz>.
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" <ma...@gmail.com>
To: "Jetspeed Users List" <je...@portals.apache.org>
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 <rm...@xtra.co.nz> 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: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Stopping a portlet from maximizing
Posted by Mansour Al Akeel <ma...@gmail.com>.
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 <rm...@xtra.co.nz> 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: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Stopping a portlet from maximizing
Posted by Ron McNulty <rm...@xtra.co.nz>.
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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Default Portlet State
Posted by David Sean Taylor <d....@onehippo.com>.
On Nov 19, 2009, at 2:15 PM, Jeff Pierce wrote:
> Thanks. That would be great.
>
> I did find the portlet fragment "state" and tried it with a value of
> "hidden". With Jetspeed 2.2 you only get the portlet action bar but
> you
> can't do anything with it. This would be exactly what we want if
> you could
> then use the actions to display the portlet. If it makes sense, I
> am going
> to pursue that path with the possibility of adding the feature to
> support
> additional values along with hidden. If there is an easier approach,
> let me
> know.
>
Its not clear to me what you are planning to do. Are you saying you
are going to work on contributing this feature back? If yes, we should
discuss in more detail on the other mailing list jetspeed-dev
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Default Portlet State
Posted by Jeff Pierce <ha...@gmail.com>.
Thanks. That would be great.
I did find the portlet fragment "state" and tried it with a value of
"hidden". With Jetspeed 2.2 you only get the portlet action bar but you
can't do anything with it. This would be exactly what we want if you could
then use the actions to display the portlet. If it makes sense, I am going
to pursue that path with the possibility of adding the feature to support
additional values along with hidden. If there is an easier approach, let me
know.
Thanks.
On Thu, Nov 19, 2009 at 3:22 PM, David Sean Taylor <d....@onehippo.com>wrote:
>
> On Nov 4, 2009, at 12:37 PM, Jeff P. wrote:
>
>
>> We have a custom built portal built on Jetspeed 2.2. Was there any support
>> added to this version to allow for the setting of the initial window state
>> of a portlet? I checked the spec and the PSML doc and didn't see anything.
>> We'd like to be able to set the initial window state of one or more
>> portlets
>> on a page to be MINIMIZED. I know others have asked the question but
>> didn't
>> see any activity on this topic for a while. Thanks so much.
>>
>> Not currently. We are discussing adding this feature to the next version
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
Re: Default Portlet State
Posted by David Sean Taylor <d....@onehippo.com>.
On Nov 4, 2009, at 12:37 PM, Jeff P. wrote:
>
> We have a custom built portal built on Jetspeed 2.2. Was there any
> support
> added to this version to allow for the setting of the initial window
> state
> of a portlet? I checked the spec and the PSML doc and didn't see
> anything.
> We'd like to be able to set the initial window state of one or more
> portlets
> on a page to be MINIMIZED. I know others have asked the question
> but didn't
> see any activity on this topic for a while. Thanks so much.
>
Not currently. We are discussing adding this feature to the next version
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org