Examples of StaleSessionException


Examples of org.apache.tapestry.StaleSessionException

        if (stateful.equals(STATEFUL_ON) && action.getRequiresSession())
        {
            HttpSession session = cycle.getRequestContext().getSession();

            if (session == null || session.isNew())
                throw new StaleSessionException();
        }

        cycle.rewindPage(targetActionId, action);

        // During the rewind, a component may change the page.  This will take
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        if (activeSession && stream.isStateful()) {
            WebSession session = webRequest.getSession(false);

            if (session == null || session.isNew())
                throw new StaleSessionException(EngineMessages.requestStateSession(stream),
                        componentPage);
        }

        Object[] parameters = linkFactory.extractListenerParameters(cycle);
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        StaleSessionExceptionPresenterImpl presenter = new StaleSessionExceptionPresenterImpl();

        presenter.setPageName("StaleSession");
        presenter.setResponseRenderer(renderer);

        presenter.presentStaleSessionException(cycle, new StaleSessionException());

        verifyControls();
    }
View Full Code Here

Examples of org.strecks.exceptions.StaleSessionException

    if (attribute == null)
    {
      if (required)
      {
        throw new StaleSessionException("Attribute missing from session: " + attributeName);
      }
      if (autoCreateClass != null)
      {
        attribute = ReflectHelper.createInstance(autoCreateClass, Object.class);
        if (session == null)
View Full Code Here

Examples of org.strecks.exceptions.StaleSessionException

  public String execute()
  {
    if (!isInputError())
    {
      if (holidayBookingId == null) throw new StaleSessionException();
      HolidayBooking holidayBooking = holidayBookingService.getHolidayBooking(holidayBookingId);
      form.setBooking(holidayBooking);

      //add support for selecting a leave type
      form.setLeaveTypes(holidayBookingService.getLeaveTypes());
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.