Package javax.faces.application

Examples of javax.faces.application.ViewExpiredException


                viewRoot = viewHandler.restoreView(facesContext, viewId);
                if (viewRoot == null)
                {
                    // If the return from ViewHandler.restoreView() is null, throw a ViewExpiredException with an
                    // appropriate error message.
                    throw new ViewExpiredException("No saved view state could be found for the view identifier: " + viewId,
                        viewId);
                }
               
                // Restore binding
                // This code was already called on UIViewRoot.processRestoreState, or if a StateManagementStrategy
View Full Code Here


                    break;
                }
            }
            if (!isMacEqual)
            {
                throw new ViewExpiredException();
            }
           
            return cipher.doFinal(secure, 0, secure.length-macLenght);
        }
        catch (Exception e)
View Full Code Here

                viewRoot = viewHandler.restoreView(facesContext, viewId);
                if (viewRoot == null)
                {
                    // If the return from ViewHandler.restoreView() is null, throw a ViewExpiredException with an
                    // appropriate error message.
                    throw new ViewExpiredException("No saved view state could be found for the view identifier: "
                                                   + viewId, viewId);
                }
               
                // Store the restored UIViewRoot in the FacesContext.
                facesContext.setViewRoot(viewRoot);
View Full Code Here

                        viewRoot = viewHandler.createView(facesContext, viewId);
                        facesContext.renderResponse();

                    } else {
                        Object[] params = {viewId};
                        throw new ViewExpiredException(
                                MessageUtils.getExceptionMessageString(
                                MessageUtils.RESTORE_VIEW_ERROR_MESSAGE_ID,
                                params),
                                viewId);
                    }
View Full Code Here

                    break;
                }
            }
            if (!isMacEqual)
            {
                throw new ViewExpiredException();
            }
           
            return cipher.doFinal(secure, 0, secure.length-macLenght);
        }
        catch (Exception e)
View Full Code Here

                    //break;
                }
            }
            if (!isMacEqual)
            {
                throw new ViewExpiredException();
            }
           
            return cipher.doFinal(secure, 0, secure.length-macLenght);
        }
        catch (Exception e)
View Full Code Here

                viewRoot = viewHandler.restoreView(facesContext, viewId);
                if (viewRoot == null)
                {
                    // If the return from ViewHandler.restoreView() is null, throw a ViewExpiredException with an
                    // appropriate error message.
                    throw new ViewExpiredException("No saved view state could be found for the view identifier: " + viewId,
                        viewId);
                }
               
                // Store the restored UIViewRoot in the FacesContext.
                facesContext.setViewRoot(viewRoot);
View Full Code Here

  /* (non-Javadoc)
   * @see ErrorGenerator#viewExpired()
   */
  public String viewExpired() {
    throw new ViewExpiredException("Simulated view expiration","/pages/main.xhtml");
  }
View Full Code Here

  /* (non-Javadoc)
   * @see ErrorGenerator#viewExpired()
   */
  public String viewExpired() {
    throw new ViewExpiredException("Simulated view expiration","/pages/main.xhtml");
  }
View Full Code Here

                    //break;
                }
            }
            if (!isMacEqual)
            {
                throw new ViewExpiredException();
            }
           
            return cipher.doFinal(secure, 0, secure.length-macLenght);
        }
        catch (Exception e)
View Full Code Here

TOP

Related Classes of javax.faces.application.ViewExpiredException

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.