Package org.jboss.seam.ui

Examples of org.jboss.seam.ui.RenderStampStore


         if (!requestedViewSig.equals(generateViewSignature(context, form, !token.isAllowMultiplePosts(), token.isRequireSession(), clientToken)))
         {
            throw new UnauthorizedCommandException(viewId, "Form signature invalid");
         }
         RenderStampStore store = RenderStampStore.instance();
         if (store != null)
         {
            // remove the key from the store if we are using it
            store.removeStamp(String.valueOf(form.getAttributes().get(RENDER_STAMP_ATTR)));
         }
         form.getAttributes().remove(RENDER_STAMP_ATTR);
      }
   }
View Full Code Here


      {
         throw new IllegalStateException("UIToken must be inside a UIForm.");
      }

      String renderStamp = RandomStringUtils.randomAlphanumeric(50);
      RenderStampStore store = RenderStampStore.instance();
      if (store != null)
      {
         // if the store is not null we store the key
         // instead of the actual stamp; this puts the
         // server in control of this value rather than
         // the component tree, which is owned by the client
         // when using client-side state saving
         renderStamp = store.storeStamp(renderStamp);
      }

      writeCookieCheckScript(context, writer, token);

      token.getClientUidSelector().seed();
View Full Code Here

   {
      String rawViewSignature = context.getExternalContext().getRequestContextPath() + "," + context.getViewRoot().getViewId() + "," + form.getClientId(context);
      if (useRenderStamp)
      {
         String renderStamp = form.getAttributes().get(RENDER_STAMP_ATTR).toString();
         RenderStampStore store = RenderStampStore.instance();
         if (store != null)
         {
            // if we are using the RenderStampStore the key to access the render
            // stamp
            // is stored in the view root instead of the actual render stamp
            renderStamp = store.getStamp(renderStamp);
         }
         rawViewSignature += "," + renderStamp;
      }
      if (useSessionId)
      {
View Full Code Here

TOP

Related Classes of org.jboss.seam.ui.RenderStampStore

Copyright © 2018 www.massapicom. 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.