Examples of PageNotFoundException


Examples of org.apache.tapestry.PageNotFoundException

        // Not defined in the specification, so it's time to hunt it down.

        searchForPage(cycle);

        if (getSpecification() == null)
            throw new PageNotFoundException(ResolverMessages.noSuchPage(
                    _simpleName, namespace));
    }
View Full Code Here

Examples of org.apache.tapestry.PageNotFoundException

        // Not defined in the specification, so it's time to hunt it down.

        searchForPage(cycle);

        if (getSpecification() == null)
            throw new PageNotFoundException(ResolverMessages.noSuchPage(_simpleName, namespace));
    }
View Full Code Here

Examples of org.apache.tapestry.PageNotFoundException

        // Not defined in the specification, so it's time to hunt it down.

        searchForPage(cycle);

        if (getSpecification() == null)
            throw new PageNotFoundException(ResolverMessages.noSuchPage(_simpleName, namespace));
    }
View Full Code Here

Examples of org.apache.tapestry.PageNotFoundException

        // Not defined in the specification, so it's time to hunt it down.

        searchForPage(cycle);

        if (getSpecification() == null)
            throw new PageNotFoundException(_simpleName,
                    ResolverMessages.noSuchPage(_simpleName, namespace));
    }
View Full Code Here

Examples of org.apache.tapestry.PageNotFoundException

        l.add(newContribution(null, "edit", "huge", "EditHuge"));

        trainPortletMode(request, "edit");
        trainWindowState(request, "huge");

        expect(cycle.getPage("EditHuge")).andThrow(new PageNotFoundException("missing!"));
       
        trainPortletMode(request, "edit");

        expect(cycle.getPage("EditNormal")).andReturn(page);
       
View Full Code Here

Examples of org.apache.tapestry.PageNotFoundException

        // Not defined in the specification, so it's time to hunt it down.

        searchForPage(cycle);

        if (getSpecification() == null)
            throw new PageNotFoundException(_simpleName,
                    ResolverMessages.noSuchPage(_simpleName, namespace));
    }
View Full Code Here

Examples of org.infoglue.cms.exception.PageNotFoundException

                String extraInformation = "Referer: " + httpRequest.getHeader("Referer") + "\n";
                extraInformation += "UserAgent: " + httpRequest.getHeader("User-Agent") + "\n";
                extraInformation += "User IP: " + httpRequest.getRemoteAddr();
               
                logger.info("Could not map URI " + requestURI + " against any page on this website." + "\n" + extraInformation);
                throw new PageNotFoundException("Could not map URI " + requestURI + " against any page on this website.");                       
                  }
                  else
                      logger.info("Mapped URI " + requestURI + " --> " + siteNodeId + " in " + (end - start) + "ms");
                 
                  Integer contentId = getContentId(httpRequest);
View Full Code Here

Examples of org.jboss.errai.ui.nav.client.local.api.PageNotFoundException

   */
  public <W extends IsWidget> PageNode<W> getPage(String name) {
    @SuppressWarnings("unchecked")
    PageNode<W> page = (PageNode<W>) pagesByName.get(name);
    if (page == null) {
      throw new PageNotFoundException("Page not found: \"" + name + "\"");
    }
    return page;
  }
View Full Code Here

Examples of org.jboss.errai.ui.nav.client.local.api.PageNotFoundException

        @SuppressWarnings({ "unchecked" })
        PageNode<W> page = (PageNode<W>) e.getValue();
        return page;
      }
    }
    throw new PageNotFoundException("No page with a widget type of " + type.getName() + " exists");
  }
View Full Code Here

Examples of org.jboss.errai.ui.nav.client.local.api.PageNotFoundException

    } catch (RedirectLoopException e) {
      throw e;
    } catch (RuntimeException e) {
      if (toPageInstance == null)
        // This is an extremely unlikely case, so throwing an exception is preferable to going through the navigation error handler.
        throw new PageNotFoundException("There is no page of type " + toPage.getName() + " in the navigation graph.");
      else
        navigationErrorHandler.handleInvalidPageNameError(e, toPageInstance.name());
    }
   
  }
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.