Win a copy of Head First Android this week in the Android 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Dealing with backing bean on request scope ?

Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody
I just have little issue, I have a JSF page with its backing bean on request scope.
the page has a form which is filled up dynamically from an attribut on request scope also, now once the page is displayed the page is completely dead with its contents, I mean that if I modified the form and want to submit I get nothing but NullPointer, because it all disappeared with the request end. And I just want the form to submit its input texts' values normally.
I can't assign this page on the session scope, which would solve the lines up, but in my program this page could be requested more than once during the user session, and that will make the form values change to one value at any refresh.
I hope you got what am in.
thanks in advance...
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just preserve it for the next request, exactly as you did for the first request. If this is based on certain request parameters, then use h:inputHidden or t:saveState to pass them to the subsequent request.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic