burtonator <[EMAIL PROTECTED]> wrote:
> Rapha�l Luta wrote:
> >
> > Herv� Guidetti wrote:
> > >
> > > Hi,
> > >
> > > I want to developp an application (Portlication !!) with JetSpeed. I'm
> > > wondering if I have to write as many porltet as I have actions.
> > >
> > > For example, I have a base object. I'd want to view, edit, delete it. Do
I
> > > have to have one portlet to view it (select), one to edit it (update),
one
> > > to delete it ?
> > >
> > > Do you have any idea about the architecture to follow when we write
quite a
> > > complex application with Jetspeed?
> <snip>
>
> > Example: if you try to pass a "screen" parameter to one of your portlet,
this
> > parameter will be intercepted by the Jetspeed engine because it's part of
the
> > Turbine operational parameters and will most likely cause an error.
>
> Yes. You need to be carefull here. There really is no way around this
> :(
<HACK>
FWIW in the portlet we wrote to display a Turbine screen we just encoded the
parameter so we knew it was for the screen:
--- portletregistry.psml ---
<entry type="abstract" name="TurbineScreen">
<classname>portlets.TurbineScreenPortlet</classname>
</entry>
<entry type="ref" parent="TurbineScreen" name="testPortlet"
application="true">
<parameter name="display.screen" value="testPortlet" />
<parameter name="testPortlet.param.MyParam" value="MyValue" />
</entry>
------------------------------
Then in the portlet we parse the parameters. If there is [portletname].param.
in the parameters we rip off the front and set it in the rundata as a
parameter. The display.screen is used to set the Turbine screen to display.
This is eval'd in the code and the contents are returned from the portlet. So
in the above example: MyParam=MyValue would be sent to the turbine screen
testPortlet and the contents returned by TurbineScreenPortlet.
</HACK>
jb
Jeff Brekke
mailto:[EMAIL PROTECTED]
http://sites.netscape.net/ekkerbj
____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]