• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Unable to fetch session attribute value in ApplicationObject for Visibility Rule.

 
Greenhorn
Posts: 6
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have 3 portal pages with different JSF portlets on them. I am trying to hide 2 of them and show it only when the first portlet's form is submitted. I am using Visibility Rule to do it and have created an Application Object for the same. To achieve this, I am trying to set a value in session in my PageCodeBase extension (child, 1st portlet) class and trying to fetch it in the ApplicationObject that I have created for the visibility rule. This is how I am setting it in session:


and this is how I am trying to fetch it in my TestApplicationObject:

The printed value when the ApplicationObject is executed by the rules is always null.

Please advice.
 
S Bhaskar
Greenhorn
Posts: 6
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help much appreciated.

Thanks
 
Don't touch me. And dont' touch this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic