Package javax.faces.application

Examples of javax.faces.application.StateManager.writeState()


   
    writer.write("<state>");
    writer.startCDATA();
   
    StateManager stateManager = facesContext.getApplication().getStateManager();
    stateManager.writeState(facesContext, stateManager.saveView(facesContext));
   
    writer.endCDATA();
    writer.write("</state>");
  }
View Full Code Here


   
    //State
    writer.write("<state>");
    writer.startCDATA();
      StateManager stateManager = facesContext.getApplication().getStateManager();
      stateManager.writeState(facesContext, stateManager.saveView(facesContext));
    writer.endCDATA();
    writer.write("</state>");

    writer.write("</data-response>");
  }
View Full Code Here

      //State
      writer.write("<state>");
      writer.startCDATA();
     
      StateManager stateManager = facesContext.getApplication().getStateManager();
      stateManager.writeState(facesContext, stateManager.saveView(facesContext));
     
      writer.endCDATA();
      writer.write("</state>");
     
      writer.write("</partial-response>");
View Full Code Here

      //State
      writer.write("<state>");
      writer.startCDATA();
     
      StateManager stateManager = facesContext.getApplication().getStateManager();
      stateManager.writeState(facesContext, stateManager.saveView(facesContext));
     
      writer.endCDATA();
      writer.write("</state>");
     
      writer.write("</partial-response>");
View Full Code Here

      writer.write("</current-step>");
     
      writer.write("<state>");
      writer.startCDATA();
      StateManager stateManager = facesContext.getApplication().getStateManager();
      stateManager.writeState(facesContext, stateManager.saveView(facesContext));
      writer.endCDATA();
      writer.write("</state>");
     
    writer.write("</wizard-response>");
  }
View Full Code Here

                context.getResponseWriter().write(FORM_STATE_MARKER);
            }
        }
        else
        {
            stateManager.writeState(context, new Object[2]);
        }
    }
   
    private Map<String, List<String>> getViewParameterList(FacesContext context,
            String viewId, Map<String, List<String>> parametersFromArg)
View Full Code Here

            facesContext.getResponseWriter().write(FORM_STATE_MARKER);
        }
        }
        else
        {
            stateManager.writeState(facesContext, new Object[2]);
        }
    }

    /**
     * Writes the response and replaces the state marker tags with the state information for the current context
View Full Code Here

            ResponseWriter realWriter = facesContext.getResponseWriter();
            facesContext.setResponseWriter(realWriter.cloneWithWriter(stateWriter));

            Object serializedView = stateManager.saveView(facesContext);

            stateManager.writeState(facesContext, serializedView);
            facesContext.setResponseWriter(realWriter);

            StringBuilder contentBuffer = getStringBuilder();
            String state = stateWriter.getBuffer().toString();
View Full Code Here

                            {
                                stateStr = null;
                            }
                            else
                            {
                                stateMgr.writeState(context, stateObj);
                                stateStr = stateWriter.getAndResetBuffer();
                            }

                            int start = 0;
View Full Code Here

                    {
                        stateStr = null;
                    }
                    else
                    {
                        stateMgr.writeState(context, (StateManager.SerializedView) stateObj);
                        stateStr = stateWriter.getAndResetBuffer();
                    }

                    int start = 0;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.