• 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

Action vs ActionListener in JSF/IceFaces

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using JSF 1.2 ICEFACES 1.8 for a web app..

I have a created a backing bean with request scope..

When I use Action method in the bean, the bean object dies and creates again from scratch..I have the screen input parms available in the action method only..

WHen I display the JSF lifecycle, It starts the PHASE RESTORE_VIEW again. Please advise if this is normal..

Also How do I handle session timeout to force the user to log in again..

START PHASE RESTORE_VIEW 1
END PHASE RESTORE_VIEW 1
START PHASE APPLY_REQUEST_VALUES 2
END PHASE APPLY_REQUEST_VALUES 2
START PHASE PROCESS_VALIDATIONS 3
END PHASE PROCESS_VALIDATIONS 3
START PHASE UPDATE_MODEL_VALUES 4
END PHASE UPDATE_MODEL_VALUES 4
START PHASE INVOKE_APPLICATION 5
END PHASE INVOKE_APPLICATION 5
START PHASE RESTORE_VIEW 1
END PHASE RESTORE_VIEW 1

START PHASE RENDER_RESPONSE 6
END PHASE RENDER_RESPONSE 6


Thanks
Satya
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSF and request scope beans don't get along very well. JSF uses postbacks, and since request scope objects by definition (JSF or not) are created and destroyed on a per-request basis, they can't carry over data from one request (postback) to the next.

This led to a lot of people getting annoyed because they were being forced to use session scope for relatively short-lived objects. So in JSF2, view scope was added. View scope is a special type of session scope where JSF automatically discards the backing bean when the user switches to a new view.
reply
    Bookmark Topic Watch Topic
  • New Topic