portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Boss" <baron.muenhau...@googlemail.com>
Subject Re: Multiple different config of the same portlet
Date Tue, 22 Aug 2006 23:59:14 GMT
I still have a question.
To each group of user are appropriated the groups of portlets, which user can
see and them menegen. How can i make so, in order to user could solve
itself: he wants to see this portlet or not.
Since everyone portlet is registered in PSML page, it will show in any cases.

Many thanks

02.08.06, Aaron Evans<aaronmevans@gmail.com> написал(а):
> I don't think there is a limit. Just use an unique fragment id in the
> PSML if you want their prefs stored separately.
>
> On 8/2/06, Michael Boss <baron.muenhausen@googlemail.com> wrote:
> >  How many instances of the same portal it is possible to make?
> >  Whether there are restrictions on quantity of instances?
> >
> > To edit PSML in any case it is necessary, without a difference I want many
> > instances for the
> > same portlet or each time the same portlet to deploy.
> > Therefore I'll make many instances for the same portlet.
> >
> > Many thanks Aaron :)
> >
> >
> > 31.07.06, Aaron Evans <aaronmevans@gmail.com> написал(а):
> > >
> > > On 7/30/06, Michael Boss <baron.muenhausen@googlemail.com > wrote:
> > > > In the specification of portlets it is written
> > > > (http://wiki.java.net/bin/view/Portlet/JSR168FAQ
> > > > ):
> > > > "Multiple instances of a single portlet can be placed onto the same
> > > page.
> > > > ...
> > > > The portlet spec does not mandate any order in which the doView() (or
> > > for
> > > > that matter doEdit() or doHelp()) be called for multiple portlets on the
> > > > same portal page. This means if you were to set an attribute in the
> > > > doView()method of
> > > > CityPortlet you may or may not get the attribute in the doView() of
> > > > WeatherPortlet (depending on the portal server and perhaps the layout
> > > that
> > > > you are using). The spec, however, does mandates that the
> > > processAction() be
> > > > called before any rendering method is called. Therefore you need to
> > > ensure
> > > > that any state change that needs to be propagated across multiple
> > > portlets
> > > > in the same portlet application is confined to the processAction()
> > > method."
> > > >
> > > > Hence it follows that with the multiple instances of the same portlet
> > > there
> > > > will be the problems. I do not know, is it possible to bypass t hem.
> > >
> > > No, no problems really.  Two instances of the same portlet on a page
> > > can act independently of each other.  The point above is just that if
> > > you need two instances of a portlet on the same page to both reflect a
> > > change to say a user session attribute in the PORTLET_APPLICATION
> > > scope, then you need to take care of that in the action phase.
> > >
> > > > I want to make as follows:
> > > > I`ll extend administrative portlet so, that it will copy a portlet
> > > > war-file (that portlet which should have "many instances") to diploy
> > > > directory of Jetspeed2. The portal will automatically deploy this
> > > portlet.
> > > > Administrative portlet shows me all deployed portlets. I choose that,
> > > > which has just deployed and edit its preferences.
> > > > Thus I have one portlet and its one instance, and not as earlier I
> > > > wanted there are multiple instances of the same portlet.
> > > > I am right?  What do you think of it?
> > > >
> > >
> > > If you go into the Portal Site Manager and create a new page.  Then
> > > browse to that page, use the page edit mode and add your portlet to
> > > it.  You now have a separate instance of the portlet on a new page.
> > >
> > > Unfortunately, it looks as though you can't edit its preferences in
> > > this way so unless your portlet has an edit mode for editing the
> > > preferences, the alternative is to make the PSML pages by hand in an
> > > editor and deploy them to jetspeed/WEB-INF/pages.
> > >
> > > n each PSML page, include your portlet as a portlet fragment and make
> > > sure you use distinct fragment IDs and then customize the preferences
> > > as necessary.  Example of a portlet fragment:
> > >
> > > <fragment id="my-portlet-2" type="portlet"
> > > name="my-portlet-app::MyPortletName">
> > >                <title>Welcome</title>
> > >                <preference name="contentPrference" readOnly="true">
> > >                <value>/WEB-INF/content/welcome.html</value>
> > >                </preference>
> > >        </fragment>
> > >
> > > > Many thanks
> > > >
> > > >
> > > > 29.07.06, Michael Boss <baron.muenhausen@googlemail.com > написал(а):
> > > > >
> > > > > > I think what you could do is make PSML pages that are
> > > > > > editable by the admin, and viewable but not editable by all
other
> > > > > > roles.
> > > > > I dont absolutely know how it to make.
> > > > >
> > > > > In a Jetspeed2-Portal is a "Portlet Application Manager" (Admin >>
> > > > > Jetspeed Administrative Portlets >> Portlet Application Manager)
which
> > > > > allows to chosen portlet with "Portlet Entity Browser" to add an
new
> > > > > entity. What means entity in this case? Is meant an instance of a
> > > > > portlet?
> > > > >
> > > > >
> > > > > 28.07.06, Aaron Evans< aaronmevans@gmail.com > написал(а):
> > > > > > I do all my stuff by editing PSML by hand.  However, if I'm
not
> > > > > > mistaken, I think what you could do is make PSML pages that
are
> > > > > > editable by the admin, and viewable but not editable by all
other
> > > > > > roles.
> > > > > >
> > > > > > In that way, the admin should be able to set the preference
that
> > > > > > controls what content is sucked into your iframe portlet  by
editing
> > > a
> > > > > > preference, but your users should not be able to change that.
> > > > > >
> > > > > > Perhaps someone else will chime in that has more expertise in
this
> > > > > area...
> > > > > >
> > > > > > On 7/27/06, Michael Boss < baron.muenhausen@googlemail.com
> wrote:
> > > > > > > In have a portlet like IFRAME-portlet. Portal-Administrator
> > > creates it
> > > > > > > and configures
> > > > > > > each instance of portlet, i.e. a quantity od instances
of the same
> > > > > Portlet
> > > > > > > can be infinite. I want to set the preferences for each
instance
> > > > > through
> > > > > > > some administrative interface. I don't want users to be
able to
> > > change
> > > > > the
> > > > > > > preferences. And the user has an opportunity these instances
to
> > > use.
> > > > > > >
> > > > > > > If I am not mistaken, the first way (multiple portlet entries
in
> > > > > portlet.xml)
> > > > > > > it to make it will not turn out. And the second I not absolutely
> > > know
> > > > > as.
> > > > > > > Сould you me help and give me pair examples?
> > > > > > >
> > > > > > > Many thanks
> > > > > > >
> > > > > > > 2006/7/25, Aaron Evans < aaronmevans@gmail.com >:
> > > > > > > >
> > > > > > > > There are a few of ways to accomplish this.
> > > > > > > >
> > > > > > > > Firstly, you can have multiple portlet entries in
your
> > > portlet.xml
> > > > > > > > that all use the same Portlet Class but have different
> > > init-param
> > > > > > > > and/or preference values.
> > > > > > > >
> > > > > > > > Secondly, if all of your portlets config was via preferences,
> > > then
> > > > > you
> > > > > > > > could have a single entry in your portlet.xml but
do the
> > > preference
> > > > > > > > configuration in PSML pages.
> > > > > > > >
> > > > > > > > HTH,
> > > > > > > > aaron
> > > > > > > >
> > > > > > > > On 7/24/06, Michael Boss < baron.muenhausen@googlemail.com>
> > > wrote:
> > > > > > > > > Hi I have developed a Portlet and sucessfully
deployed this as
> > > its
> > > > > own
> > > > > > > > web
> > > > > > > > > app.
> > > > > > > > >
> > > > > > > > > I know that can be configured differently on
instanciation.
> > > What I
> > > > > want
> > > > > > > > to
> > > > > > > > > do is boot up multiple instances of this portlet
(all
> > > configured
> > > > > > > > > differently) without having to create them as
seperate web
> > > apps
> > > > > > > > >
> > > > > > > > > Is this possible?
> > > > > > > > >
> > > > > > > > > Many thanks
> > > > > > > > >
> > > > > > > > > Baron
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail:
> > > jetspeed-dev-unsubscribe@portals.apache.org
> > > > > > > > For additional commands, e-mail:
> > > jetspeed-dev-help@portals.apache.org
> > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Mime
View raw message