Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!