Richard - Velocity seems to be pretty unpopular lately on the mailing list, but this seems like exactly the kind of thing it is set up to do. Velocity is a templating service, where you write a template that contains HTML and references to Java objects. The objects that the template references must be put into the Velocity Context, and this is done by Action classes in code in your portal.
I recently finished a workaround that allows you to group portlets in the Context. So, if you have for example one weather portlet and two user information portlets on the page, they will have their own group assignments already by configuration in the Registry. Then when you submit a form for one portlet in the group, all others in that group on the page are updated with the new information. Josh Hone >From: Chris Widhelm <[EMAIL PROTECTED]> >Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]> >To: 'Jetspeed Users List' <[EMAIL PROTECTED]> >Subject: RE: Two portlets communicting together >Date: Thu, 1 Aug 2002 16:08:24 -0500 > >If you are extending AbstractPortlet then your getContent method expects >RunData. You can use the RunData to get information from the request. > > String parameterValue = runData.getRequest().getAttribute( >"parameterName" ); > >Just make sure that your links just use >href="?param1=param1value¶m2=param2value". This will cause the link to >post to the same page while putting param1 and param2 onto the request. > >Hope this helps. > > > -----Original Message----- > > From: Richard Greenane [SMTP:[EMAIL PROTECTED]] > > Sent: Thursday, August 01, 2002 4:04 PM > > To: [EMAIL PROTECTED] > > Subject: Two portlets communicting together > > > > Hi there, > > > > I have written two portlets derived from AbstractPortlet. One portlet > > makes calls to a backend architecture where it retrieves and displays > > information. I would like the first portlet to have links around > > particular pieces of data (i.e a persons name) and then when that link > > is hit, the second portlet uses that name to get more information (i.e. > > the persons address) and displays it in the second portlet. > > > > I guess what I really want is a way to send a POST request to the second > > portlet, containing a parameter that can then be used to get the right > > information from my backend. How do I find out what the correct link is > > for the second portlet, and what happens if that second portlet is not > > assigned to the pane, does the portlet display itself automatically? > > > > Has anyone done this before? I have read similar posts in the archive > > but none solve my problem correctly. > > > > Sorry..lots of question I know :-) > > > > Many thanks in advance > > > > Richard > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
