Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Having problems with the doView() method when having multiple portlets in a page

 
Bhargav N Balasubrahmanya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm working on a JSF portlet project for the past 3 months.

Server - WPS 6.0.1
IDE - RAD 7.0

The design is in such a manner that there are multiple tabs in the application once i log in, like the HomePage, Reports etc;
These tabs contain different portlets in them. for eg, the HomePage contains 2 portlets whose doView() method have been overridden to have some logic before rendering the page.
The Reports page also has portlets of the ContentPage, the LeftNav and a header.
Now, everything works fine but for the fact that even when i click on the Reports tab, apart from the loading of the portlets in the Reports page, the doView() method of the Portlets in the HomePage are also called.
This doesn't really cause me a problem because ultimately i get whatever is required on the screen [but unneccessarily the doView() logic of 2 more portlets are called and executed], but the rendering of the page takes a hit because of unneccesary code being executed.
Is there any way that i specify that these be not executed.

Thanks in advance
Bhargav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic