• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Managed bean property gets displayed on a page, but then becomes null

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have encountered a problem that is a mystery to me. I have a JSP page that prints out a property (payerAccountId) of a managed bean and then passes the same property to an EJB methodd. The property gets displayed without problems. Then I want to call a method from the same managed bean (whose only purpose is to call the EJB method and pass it the property payerAccountId as one if its parameters). The problem is that the property payerAccountId is null at the point when I need to pass it as a parameter to the EJB method.

The JSP page:


The method transfer() that gets called from the commandButton:


Faces-config.xml entry for this managed bean:


Does anyone have any idea why the property prints out, but becomes null after that?
I'm using JSF 1.2, JDK 1.6 and Glassfish V2.
BTW: is there any way how to debug the servlets that are created from JSPs?

Thank you for any input.
Vladimir
 
Vladimir Kroupa
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've found out where the problem was. The scope of the managed bean was request.
 
Seriously Rick? Seriously? You might as well just read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic