• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

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

Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic