Package org.apache.wicket.request.handler

Examples of org.apache.wicket.request.handler.PageAndComponentProvider


    if (wantOnSelectionChangedNotifications())
    {
      // we do not want relative URL here, because it will be used by
      // Form#dispatchEvent
      CharSequence url = urlFor(new ListenerInterfaceRequestHandler(
        new PageAndComponentProvider(getPage(), this), IOnChangeListener.INTERFACE));

      Form<?> form = findParent(Form.class);
      if (form != null)
      {
        tag.put("onchange", form.getJsForInterfaceUrl(url.toString()));
View Full Code Here


   * @return The URL
   */
  public final CharSequence urlFor(final IBehavior behaviour,
    final RequestListenerInterface listener)
  {
    PageAndComponentProvider provider = new PageAndComponentProvider(getPage(), this);
    int id = getBehaviorId(behaviour);
    IRequestHandler handler;
    if (getPage().isPageStateless())
    {
      handler = new BookmarkableListenerInterfaceRequestHandler(provider, listener, id);
View Full Code Here

   *            The listener interface that the URL should call
   * @return The URL
   */
  public final CharSequence urlFor(final RequestListenerInterface listener)
  {
    PageAndComponentProvider provider = new PageAndComponentProvider(getPage(), this);
    IRequestHandler handler;
    if (getPage().isPageStateless())
    {
      handler = new BookmarkableListenerInterfaceRequestHandler(provider, listener);
    }
View Full Code Here

  private String urlForBehavior(IBehavior behaviorUnderTest)
  {
    int index = page.container.getBehaviorId(behaviorUnderTest);
    String enabledBehaviorUrl = tester.urlFor(
      new ListenerInterfaceRequestHandler(new PageAndComponentProvider(page, page.container),
        IBehaviorListener.INTERFACE, index)).toString();
    return enabledBehaviorUrl;
  }
View Full Code Here

    // 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);

    Url url = encoder.mapHandler(handler);
View Full Code Here

    // 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);

    Url url = encoder.mapHandler(handler);
View Full Code Here

    // 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);

    Url url = encoder.mapHandler(handler);
View Full Code Here

    // 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);

    Url url = encoder.mapHandler(handler);
View Full Code Here

    // 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);

    Url url = encoder.mapHandler(handler);
View Full Code Here

    // 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);

    Url url = encoder.mapHandler(handler);
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.handler.PageAndComponentProvider

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.