Questions tagged [state-saving]

57 questions
1
vote
1 answer

Extjs Saving Dynamic Tabs and Rendering them back on Page Load, is it possible?

I am adding new tabs dynamically with Extjs.. But is there a way I can save the newly added tabs somewhere(Probably in database), because I have to render all the tabs a user creates dynamically, whenever the user re-visits the page. I can make…
First Blood
  • 235
  • 1
  • 7
  • 21
1
vote
1 answer

Openfaces datatable issue: throwing exception (com.sun.​faces.face​lets.compi​ler.UIInst​ructions)

I am using using myfaces 2.1.10 faces engine along with open faces 3.1 (openfaces-3.1.EA1.1198.jar) in my web application running on weblogic server 12c. The web application is using facelets template to load header/content/footer pages(.xhtml). In…
hookahua
  • 11
  • 1
  • 4
1
vote
0 answers

UIViewController persistence - save state into memory and write it to the disk when the app is terminated

I am using NSCoding to save and restore my view controllers. However I'm saving to disk the navigation stack + view controllers every time a view controller is pushed or popped. This is not energy efficient, and there's a better way. Think of…
Devfly
  • 2,495
  • 5
  • 38
  • 56
1
vote
1 answer

Client side state saving, any way I could see state data sent to client?

In order to decide a better state saving method for my JSF app from amongst server side & client side saving, I wanting to see the saved state data when the state is saved to client. I need to have an idea of how much data is transferred back &…
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
0
votes
1 answer

JSF 2 - Dynamically added component's ids are not retained on postback

I have a facet within a component within which i add components dynamically using UIComponent c = new UICustomComponent(); c.setId("someIdGeneratedDynamically"); facet.getChildren().add(c); But on postback, when i iterate over this…
Abbas Gadhia
  • 14,532
  • 10
  • 61
  • 73
0
votes
0 answers

Saving RecyclerView state in a fragment when exiting it

I am trying to make a app that sends messages to a recyclerView from fragment to another using a navgraph, but whenever I go back to my previous fragment to add a new message I lose the data of my recyclerView, and does not pile up. ---This is the…
0
votes
0 answers

How to save the state of PowerShell in Windows 10 as to continue with it later?

Let's say I'm done for the day and shutting down my laptop. Now, how can I save the PowerShell window shown in the image so that I can continue from the same state of the PowerShell window tomorrow along with all the outputs? Tomorrow when I open…
Kshitij Agarwal
  • 2,060
  • 2
  • 8
  • 16
0
votes
1 answer

Need help making Swift Cookie Clicker Game Automatically Save

I am a 9th grader just learning programming. After I got the basics, I figured I'd make a cookie clicker game in swift. I accomplished that and am still working on it to refine it and make it more playable, but I cannot get it to automatically save.…
0
votes
0 answers

How to save game progress for different devices?

I have a simple word game that I just put up on the App Store. The games progress is saved from session to session on my iPad and iPhone 7 plus but not on iPhone XS Max. So, the code is working for saving game progress except for XS Max. Other XS…
0
votes
2 answers

JSF Servlet Exception: No view save state when application session jumps between servers

I have a web app running on in a CICS environment on Liberty servers. For workload management, the application session is set up to shift between 3 different servers, which occurs randomly during a given session. Implementing this, I am currently…
John W
  • 9
  • 4
0
votes
1 answer

How can I save and load textbox values, checkbox states, dropdown menu selections, etc., into a .txt file?

I am trying to implement a simple save-load function in my application, which would save the states of various GUI elements in my application (textboxes, checkboxes, dropdown menus, and so on) to a custom-named .txt file, and then load them back the…
0
votes
1 answer

Saving Cube like in Minecraft game

I'm trying to build a game for Android just like Minecraft using Unity. How can I save my progress? I'm trying this code but I'm still clueless if I'm on the right track. public class SavePref : MonoBehaviour { GameObject[] objects; float…
0
votes
1 answer

Saving state of application in ios using Swift

I have four viewControllers in my application. Now lets suppose user is currently on the second viewController and He terminates the application. Now how can I save this state, so that when user reopen the application he should be presented with the…
Byte
  • 629
  • 2
  • 11
  • 29
0
votes
1 answer

Submitting form in iframe in IE11 throws java.lang.StringIndexOutOfBoundsException while restoring JSF state

After the user get's redirected from a session bean, the following exception is thrown: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.StringIndexOutOfBoundsException: String index…
0
votes
0 answers

How many state information is saved when client mode

How to define the max number of component trees in client mode? How to prevent calling @PostConstruct method? I'm developing an application by JavaEE7 with glassfish 4.1. If I remember correctly, when javax.faces.STATE_SAVING_METHOD is client, there…
sizer
  • 119
  • 9