In case of a portlet, you should not call the template directly. Use $jslink
to provide a parameter to switch your template within the action. Look at
manager-psml.vm to see how the "mode" parameter is set which in turn
triggers template switching.

Best regards,

Mark Orciuch - [EMAIL PROTECTED]
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/

> -----Original Message-----
> From: Youssef Mohammed
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 04, 2003 7:33 AM
> To: Jetspeed Developers List
> Subject: RE: mutiple template in the same portlet
>
>
> Thanks Marc
>       It is a good start . It mainly uses setTemplate method in
> the doXXXXX
> code .
> What if I want to change it directly in the template . That is I went a
> link in template1 to link direclty to template2 ?
> Is is possible ?
>
>
> > -----Original Message-----
> > From: Mark Orciuch [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 04, 2003 3:19 PM
> > To: Jetspeed Developers List
> > Subject: RE: mutiple template in the same portlet
> >
> >
> > Take a look at PsmlManager portlet (admin.xreg) in the 1.4 release. It
> > switches between manager-psml.vm (list view) and
> > psm-detail.vm (detail view)
> > using a single portlet action class.
> >
> >
> > Best regards,
> >
> > Mark Orciuch - [EMAIL PROTECTED]
> > Jakarta Jetspeed - Enterprise Portal in Java
> > http://jakarta.apache.org/jetspeed/
> >
> >   -----Original Message-----
> >   From: Youssef Mohammed
> > [mailto:[EMAIL PROTECTED]
> >   Sent: Thursday, December 04, 2003 6:34 AM
> >   To: Jetspeed Developers List (E-mail)
> >   Subject: mutiple template in the same portlet
> >
> >
> >   Hi ,
> >
> >           I want to have more than one template defined for
> > one portlet and
> > switch between them accroding to user interaciton . Any
> > portler can handle
> > this in J1
> >
> >   thnks
> >
> >
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to