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. 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? Many thanks 29.07.06, Michael Boss <[EMAIL PROTECTED] > написал(а):
> 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< [EMAIL PROTECTED]> написал(а): > 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 < [EMAIL PROTECTED] > 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 < [EMAIL PROTECTED] >: > > > > > > 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 < [EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > >
