You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Andrea Franconi <an...@text-e.com> on 2002/02/20 18:37:49 UTC

writing a PortletController

Hi everybody,
I need to write a custom PortletController. Have you got any suggestions?

Thanks

Andrea Franconi
andrea.franconi@text-e.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: writing a PortletController

Posted by Andrea Franconi <an...@text-e.com>.
Hi,
tks for your help, but now i've got another problem:

I wrote my own class MyCustomPortletController following the existing 
classes, then I registred it in controllers.xreg and modified a psml in order 
to use my controller.

When I run jetspeed i can see the page but i have the portlet displayed 
before the html structure I created in the controller.

In log file I had no exceptions, first MyCustomPortletController is correclty 
added to the registry but then i had the error:

Failed to retrive com.mycompany.portal.controllers.MyCustomController.

I also tried to put the controller in org.apache.jetspeed.portal.controller 
but the result is the same.

Any ideas?

Thanks a lot!

Andrea Franconi
andrea.franconi@text-e.com


On Thursday 21 February 2002 10:01, you wrote:
> PortletController are Portlet subclasses that are specialized to build
> the layout strategy (ie the way portlets are organized on the page).
> Since they are Portlets, they can (and the default ones do) use a
> templating system like Velocity to control the controller view.
> PortletController classes should also provide a customizer suited
> to their layout strategy.
>
> So if you to need to reimplement a completely new layout strategy (ex,
> free-floating stackable portlets with an x,y coordinate and a z-order)
> you'll need to write a brand new PortletController and customizer suited to
> the task.
> If you want to rewrite the customizer for the default multi-column
> controller you can simply change the controller customizer Action class.
> If you just want to customize the screen apperance of the controller or
> customizer, simply edit or copy the vm templates and modify them to suit
> your needs.
>
> Andrea Franconi wrote:
> > Can you explain me the relationship between the .vm controllers in
> > /WEB-INF/templates/controllers and the classes in
> > org.apache.jetspeed.portal.controllers ?
> >
> > Thanks again
> >
> > Andrea Franconi
> > andrea.franconi@text-e.com
> >
> > On Wednesday 20 February 2002 19:05, you wrote:
> >>Just take one of the .vm controllers under
> >>/WEB-INF/templates/controllers as an example, and customize it to your
> >>needs, then add it to the controller registry and start using it in your
> >>psml files

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: writing a PortletController

Posted by ra...@networks.groupvu.com.
PortletController are Portlet subclasses that are specialized to build
the layout strategy (ie the way portlets are organized on the page).
Since they are Portlets, they can (and the default ones do) use a templating
system like Velocity to control the controller view.
PortletController classes should also provide a customizer suited
to their layout strategy.

So if you to need to reimplement a completely new layout strategy (ex, free-floating
stackable portlets with an x,y coordinate and a z-order) you'll need to write a brand
new PortletController and customizer suited to the task.
If you want to rewrite the customizer for the default multi-column controller
you can simply change the controller customizer Action class.
If you just want to customize the screen apperance of the controller or customizer,
simply edit or copy the vm templates and modify them to suit your needs.

Andrea Franconi wrote:

> Can you explain me the relationship between the .vm controllers in 
> /WEB-INF/templates/controllers and the classes in 
> org.apache.jetspeed.portal.controllers ?
> 
> Thanks again
> 
> Andrea Franconi
> andrea.franconi@text-e.com
> 
> 
> On Wednesday 20 February 2002 19:05, you wrote:
> 
>>Just take one of the .vm controllers under
>>/WEB-INF/templates/controllers as an example, and customize it to your
>>needs, then add it to the controller registry and start using it in your
>>psml files
>>
>>



-- 
Raphael Luta - raphael.luta@networks.groupvu.com
Professional Services Manager
Vivendi Universal Networks - Paris


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: writing a PortletController

Posted by Andrea Franconi <an...@text-e.com>.
Can you explain me the relationship between the .vm controllers in 
/WEB-INF/templates/controllers and the classes in 
org.apache.jetspeed.portal.controllers ?

Thanks again

Andrea Franconi
andrea.franconi@text-e.com


On Wednesday 20 February 2002 19:05, you wrote:
> Just take one of the .vm controllers under
> /WEB-INF/templates/controllers as an example, and customize it to your
> needs, then add it to the controller registry and start using it in your
> psml files
>
> > -----Original Message-----
> > From: Andrea Franconi [mailto:andrea.franconi@text-e.com]
> > Sent: Wednesday, February 20, 2002 9:38 AM
> > To: jetspeed-user@jakarta.apache.org
> > Subject: writing a PortletController
> >
> >
> > Hi everybody,
> > I need to write a custom PortletController. Have you got any
> > suggestions?
> >
> > Thanks
> >
> > Andrea Franconi
> > andrea.franconi@text-e.com
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Screens, Layouts & Skins using JSP

Posted by Paul Spencer <pa...@apache.org>.
Rajan,
Samples can be found in the <jetspeed-home>/WEB-INF/templates/jsp
directory tree.

Currently their are problems using the jsp layout engine.  Review the
Jetspeed user mailing list at http://www.mail-archive.com/ for more
information on the problems.  The problems do not prevent you from using
the JSP portlet type.

Paul Spencer

Rajan Gupta wrote:

 > Can somebody provide me with a sample for a screen, Layout & usage of a
 > skin in JSP?
 >
 > Thanks in advance
 > Rajan
 >
 >
 > __________________________________________________
 > Do You Yahoo!?
 > Yahoo! Sports - Coverage of the 2002 Olympic Games
 > http://sports.yahoo.com
 >
 > --
 > To unsubscribe, e-mail: 
<ma...@jakarta.apache.org>
 > For additional commands, e-mail: 
<ma...@jakarta.apache.org>
 >
 >




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Screens, Layouts & Skins using JSP

Posted by David Sean Taylor <da...@bluesunrise.com>.
See /webapp/WEB-INF/templates/jsp....


> -----Original Message-----
> From: Rajan Gupta [mailto:rgupta99_1999@yahoo.com] 
> Sent: Wednesday, February 20, 2002 2:41 PM
> To: Jetspeed Users List
> Subject: Screens, Layouts & Skins using JSP
> 
> 
> Can somebody provide me with a sample for a screen, Layout & 
> usage of a skin in JSP?
> 
> Thanks in advance
> Rajan
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games 
http://sports.yahoo.com

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Screens, Layouts & Skins using JSP

Posted by Rajan Gupta <rg...@yahoo.com>.
Can somebody provide me with a sample for a screen, Layout & usage of a
skin in JSP?

Thanks in advance
Rajan


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: writing a PortletController

Posted by David Sean Taylor <da...@bluesunrise.com>.
Just take one of the .vm controllers under
/WEB-INF/templates/controllers as an example, and customize it to your
needs, then add it to the controller registry and start using it in your
psml files

> -----Original Message-----
> From: Andrea Franconi [mailto:andrea.franconi@text-e.com] 
> Sent: Wednesday, February 20, 2002 9:38 AM
> To: jetspeed-user@jakarta.apache.org
> Subject: writing a PortletController
> 
> 
> Hi everybody,
> I need to write a custom PortletController. Have you got any 
> suggestions?
> 
> Thanks
> 
> Andrea Franconi
> andrea.franconi@text-e.com
> 
> --
> To unsubscribe, e-mail:   
> <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>