Package org.apache.wicket.request.component

Examples of org.apache.wicket.request.component.IRequestableComponent


    // shouldn't make any difference for BookmarkableListenerInterfaceRequestHandler,
    // as this explicitely says the url must be bookmarkable
    page.setCreatedBookmarkable(false);

    IRequestableComponent c = page.get("foo:bar");

    PageAndComponentProvider provider = new PageAndComponentProvider(page, c);
    IRequestHandler handler = new BookmarkableListenerInterfaceRequestHandler(provider,
      ILinkListener.INTERFACE);
View Full Code Here


    // shouldn't make any difference for BookmarkableListenerInterfaceRequestHandler,
    // as this explicitely says the url must be bookmarkable
    page.setCreatedBookmarkable(false);

    IRequestableComponent c = page.get("foo:bar");

    PageAndComponentProvider provider = new PageAndComponentProvider(page, c);
    IRequestHandler handler = new BookmarkableListenerInterfaceRequestHandler(provider,
      ILinkListener.INTERFACE, 4);
View Full Code Here

  {
    final IRequestablePage page = getPage();
    final boolean freshPage = pageComponentProvider.isPageInstanceFresh();
    final boolean isAjax = ((WebRequest)requestCycle.getRequest()).isAjax();

    IRequestableComponent component;
    try
    {
      component = getComponent();
    }
    catch (ComponentNotFoundException e)
    {
      // either the page is stateless and the component we are looking for is not added in the
      // constructor
      // or the page is stateful+stale and a new instances was created by pageprovider
      // we denote this by setting component to null
      component = null;
    }

    if ((component == null && !freshPage) || (component != null && component.getPage() != page))
    {
      throw new ComponentNotFoundException("Component '" + getComponentPath()
          + "' has been removed from page.");
    }

    if (page instanceof Page)
    {
      // initialize the page to be able to check whether it is stateless
      ((Page)page).internalInitialize();
    }
    final boolean isStateless = page.isPageStateless();

    RedirectPolicy policy = isStateless
      ? RedirectPolicy.NEVER_REDIRECT
      : RedirectPolicy.AUTO_REDIRECT;
    final IPageProvider pageProvider = new PageProvider(page);

    final boolean canCallListenerInterfaceAfterExpiry = component != null
        ? component.canCallListenerInterfaceAfterExpiry()
        : false;

    if (!canCallListenerInterfaceAfterExpiry && freshPage && (isStateless == false || component == null))
    {
      // A listener interface is invoked on an expired page.
View Full Code Here

    // shouldn't make any difference for BookmarkableListenerInterfaceRequestHandler,
    // as this explicitely says the url must be bookmarkable
    page.setCreatedBookmarkable(false);

    IRequestableComponent c = page.get("foo:bar");

    PageAndComponentProvider provider = new PageAndComponentProvider(page, c);
    IRequestHandler handler = new BookmarkableListenerInterfaceRequestHandler(provider,
      ILinkListener.INTERFACE);
View Full Code Here

    // shouldn't make any difference for BookmarkableListenerInterfaceRequestHandler,
    // as this explicitely says the url must be bookmarkable
    page.setCreatedBookmarkable(false);

    IRequestableComponent c = page.get("foo:bar");

    PageAndComponentProvider provider = new PageAndComponentProvider(page, c);
    IRequestHandler handler = new BookmarkableListenerInterfaceRequestHandler(provider,
      ILinkListener.INTERFACE, 4);
View Full Code Here

  {
    final IRequestablePage page = getPage();
    final boolean freshPage = pageComponentProvider.isPageInstanceFresh();
    final boolean isAjax = ((WebRequest)requestCycle.getRequest()).isAjax();

    IRequestableComponent component = null;
    try
    {
      component = getComponent();
    }
    catch (ComponentNotFoundException e)
    {
      // either the page is stateless and the component we are looking for is not added in the
      // constructor
      // or the page is stateful+stale and a new instances was created by pageprovider
      // we denote this by setting component to null
      component = null;
    }


    if ((component == null && !freshPage) || (component != null && component.getPage() != page))
    {
      throw new ComponentNotFoundException("Component '" + getComponentPath()
          + "' has been removed from page.");
    }
View Full Code Here

    // shouldn't make any difference for BookmarkableListenerInterfaceRequestHandler,
    // as this explicitely says the url must be bookmarkable
    page.setCreatedBookmarkable(false);

    IRequestableComponent c = page.get("foo:bar");

    PageAndComponentProvider provider = new PageAndComponentProvider(page, c);
    IRequestHandler handler = new BookmarkableListenerInterfaceRequestHandler(provider,
      ILinkListener.INTERFACE);
View Full Code Here

    // shouldn't make any difference for BookmarkableListenerInterfaceRequestHandler,
    // as this explicitely says the url must be bookmarkable
    page.setCreatedBookmarkable(false);

    IRequestableComponent c = page.get("foo:bar");

    PageAndComponentProvider provider = new PageAndComponentProvider(page, c);
    IRequestHandler handler = new BookmarkableListenerInterfaceRequestHandler(provider,
      ILinkListener.INTERFACE, 4);
View Full Code Here

    // shouldn't make any difference for BookmarkableListenerInterfaceRequestHandler,
    // as this explicitely says the url must be bookmarkable
    page.setCreatedBookmarkable(false);

    IRequestableComponent c = page.get("foo:bar");

    PageAndComponentProvider provider = new PageAndComponentProvider(page, c);
    IRequestHandler handler = new BookmarkableListenerInterfaceRequestHandler(provider,
      ILinkListener.INTERFACE);
View Full Code Here

    // shouldn't make any difference for ListenerInterfaceRequestHandler,
    // as this explicitely says the url must be bookmarkable
    page.setCreatedBookmarkable(false);

    IRequestableComponent c = page.get("foo:bar");

    PageAndComponentProvider provider = new PageAndComponentProvider(page, c);
    IRequestHandler handler = new ListenerInterfaceRequestHandler(provider,
      ILinkListener.INTERFACE);
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.component.IRequestableComponent

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.