By default, NetBeans Visual Web Pack uses Server Side State Saving. To configure the IDE for Client side state saving do the following:
- In the Files window, Expand the project's Web > WEB–INF node.
- Right click web.xml and select Open.
- Expand the Context Parameters
- The first parameter should be javax.faces.STATE_SAVING_METHOD with a param value of server.
- Select the parameter, and press the Edit button.
- Change the param value from server to client and press OK. The changes should update
- Press Ctrl–S to save the changes.
Now when you redeploy the application it will use Client site state saving.