Questions tagged [state-saving]

57 questions
112
votes
1 answer

Why JSF saves the state of UI components on server?

Until what point in time does JSF save the state of UI components on the server side & when exactly is the UI component's state information removed from the server memory? As a logged-in user on the application navigates though pages, will the…
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
23
votes
2 answers

Why does JSF save component tree state?

There appears to be a difference between managed bean state and component tree state. You can control managed bean state by using annotations like @RequestScoped and @SessionScoped, but it seems you don't have a choice in whether the component tree…
Ryan
  • 7,499
  • 9
  • 52
  • 61
10
votes
1 answer

com.sun.faces.ClientStateSavingPassword - recommendations for actual password?

In all of the reference pages I've found with regards to encrypting the ViewState, the only comment on the password is "your password here". Are there any recommendations regarding the length / complexity of the password that we should use?
Evan Knowles
  • 7,426
  • 2
  • 37
  • 71
9
votes
1 answer

Intermittent java.lang.IndexOutOfBoundsException at javax.faces.component.AttachedObjectListHolder.restoreState

I have a JSF 2.1.21 application with client state saving method. I'm also using PrimeFaces 3.5 + Tomcat 7.0.37. I use OmniFaces full ajax exception handler to display a custom error page and email me with the stacktrace when a problem happens.…
FkJ
  • 1,609
  • 1
  • 19
  • 29
8
votes
1 answer

JSF 2.0 partial state saving does not seem to work

I am evaluating the possibility of using JSF in a high-traffic website. I am told that in JSF 2.0 the component tree is not stored in the session, and that only deltas are stored once the component tree is modified. Here is the page I am…
SamBeran
  • 1,944
  • 2
  • 17
  • 24
6
votes
1 answer

How to save state when extending UIComponentBase

I'm creating a composite component that will wrap a datatable to implement very simple paging. I need to save state (the current page number) between ajax requests. I tried creating fields in my FacesComponent, but I discovered they are wiped out…
Jonathan S. Fisher
  • 8,189
  • 6
  • 46
  • 84
6
votes
1 answer

A program resistent to power/hardware/OS failures

I need to write a program that performs a parallel search in a large space of possible states, with new areas being discovered (and their exploration started) in the process, and exploration of some areas being terminated early as intermediate…
X.C.
  • 391
  • 1
  • 5
5
votes
1 answer

JQuery1.8 Datatables saving state on click of a button

I have a jsp with a table and two buttons "home" and "back" in it and have imported jquery.datatable.js in it. On click of "home" the page should load without any pagination or filter saved. and on click of "back" the table should have all the…
5
votes
1 answer

JSF State Saving initially to server & on session timeout transfer to client?

Are there any state saving method that would allow JSF application to intially save state data on server but after the session expire time interval , that state is transferred to client so that app is always responsive even after the session timeout…
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
4
votes
0 answers

How to avoid sharing of values stored in StateHelper of composite components placed inside PrimeFaces datatable?

My composite components share values stored in StateHelper when placed inside PrimeFaces DataTable. The most of examples about keeping component state that I've seen suggest to use getStateHelper().put()/eval() methods of UINamingContainer. I do use…
toxich
  • 41
  • 5
3
votes
3 answers

Does constructor call also go on the stack?

I understand that in Java all method calls go on a stack. Take the following class for instance: Class Demo { // Some instance variables public Demo() { initialize(); } public void initialize() { // Start…
Chiseled
  • 2,280
  • 8
  • 33
  • 59
3
votes
2 answers

Saving and Restoring Application State on iOS 6 without Storyboards

I have done test app following this tutorial I try to do the same without using Storyboards and it isn't work. I have enabled state preservation and restoration in AppDelegate. I have assigned restorationIdentifier to all my controllers and their…
Numeral
  • 1,405
  • 12
  • 24
2
votes
2 answers

Angularjs dataTable stateSave not woking on change routes

I'm using AngularJS datatable and enable save state with .withOption('stateSave', true). when I refresh the page, everything works fine But when I change routes, and came back, stateSave not working. I found that, At each route change, datatable…
2
votes
2 answers

React.js, correct way to iterate inside DOM

Im new in ReactJS... I have a project with the following class components structure: index.js --app --chat --header --left --right In the chat.js component, I make a google search with the api to retrieve images based on specific…
JuliSmz
  • 996
  • 1
  • 12
  • 26
2
votes
2 answers

iOS Autosaved object

In my app I have Singleton object, which should save its state through app launches. So I need to save it somehow. I see only two options: 1) save it on app termination (plus, maybe, going background); 2) save it each time any property…
kpower
  • 3,871
  • 4
  • 42
  • 62
1
2 3 4