Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic