congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BookmarkablePageRequestTarget.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget
constructor

Best Java code snippets using org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.<init> (Showing top 20 results out of 315)

origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Sets the page class with optionally the page parameters and page map name as the render
 * target of this request.
 * 
 * @param pageClass
 *            The page class to render as a response
 * @param pageParameters
 *            The page parameters that gets appended to the bookmarkable url,
 * @param pageMapName
 *            The pagemap in which the response page should be created
 */
public final void setResponsePage(final Class pageClass, final PageParameters pageParameters,
  final String pageMapName)
{
  IRequestTarget target = new BookmarkablePageRequestTarget(pageMapName, pageClass,
    pageParameters);
  setRequestTarget(target);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Sets the page class with optionally the page parameters and page map name as the render
 * target of this request.
 * 
 * @param <C>
 * 
 * @param pageClass
 *            The page class to render as a response
 * @param pageParameters
 *            The page parameters that gets appended to the bookmarkable url,
 * @param pageMapName
 *            The Pagemap in which the response page should be created
 */
public final <C extends Page> void setResponsePage(final Class<C> pageClass,
  final PageParameters pageParameters, final String pageMapName)
{
  IRequestTarget target = new BookmarkablePageRequestTarget(pageMapName, pageClass,
    pageParameters);
  setRequestTarget(target);
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Returns a bookmarkable URL that references a given page class using a given set of page
 * parameters. Since the URL which is returned contains all information necessary to instantiate
 * and render the page, it can be stored in a user's browser as a stable bookmark.
 * 
 * @param pageMap
 *            Pagemap to use. If null is passed the default page map will be used
 * @param pageClass
 *            Class of page
 * @param parameters
 *            Parameters to page
 * @return Bookmarkable URL to page
 */
public final CharSequence urlFor(final IPageMap pageMap, final Class pageClass,
  final PageParameters parameters)
{
  final IRequestTarget target = new BookmarkablePageRequestTarget(pageMap == null
    ? PageMap.DEFAULT_NAME : pageMap.getName(), pageClass, parameters);
  return encodeUrlFor(target);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Returns a bookmarkable URL that references a given page class using a given set of page
 * parameters. Since the URL which is returned contains all information necessary to instantiate
 * and render the page, it can be stored in a user's browser as a stable bookmark.
 * 
 * @param <C>
 * 
 * @param pageMap
 *            Pagemap to use. If null is passed the default page map will be used
 * @param pageClass
 *            Class of page
 * @param parameters
 *            Parameters to page
 * @return Bookmarkable URL to page
 */
public final <C extends Page> CharSequence urlFor(final IPageMap pageMap,
  final Class<C> pageClass, final PageParameters parameters)
{
  final IRequestTarget target = new BookmarkablePageRequestTarget(pageMap == null
    ? PageMap.DEFAULT_NAME : pageMap.getName(), pageClass, parameters);
  return encodeUrlFor(target);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Checks whether the given <code>pageClass</code> is mounted.
 * 
 * @param pageClass
 *            the <code>Class</code> of the <code>Page</code> to be checked
 * @return true if the given <code>pageClass</code> is mounted, false otherwise
 */
private boolean isPageMounted(Class<? extends Page> pageClass)
{
  RequestCycle.get();
  CharSequence path = getRequestCodingStrategy().pathForTarget(
    new BookmarkablePageRequestTarget(pageClass));
  return path != null;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Checks whether the given <code>pageClass</code> is mounted.
 * 
 * @param pageClass
 *            the <code>Class</code> of the <code>Page</code> to be checked
 * @return true if the given <code>pageClass</code> is mounted, false otherwise
 */
private boolean isPageMounted(Class /* <? extends Page> */pageClass)
{
  RequestCycle cycle = RequestCycle.get();
  CharSequence path = getRequestCodingStrategy().pathForTarget(
    new BookmarkablePageRequestTarget(pageClass));
  return path != null;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

@Override
public IRequestTarget decode(RequestParameters requestParameters)
{
  String pageMapName = requestParameters.getPageMapName();
  final PageParameters parameters = new PageParameters(requestParameters.getParameters());
  // This might be a request to a stateless page, so check for an
  // interface name.
  if (requestParameters.getInterfaceName() != null)
  {
    return new BookmarkableListenerInterfaceRequestTarget(pageMapName,
      bookmarkablePageClassRef.get(), parameters, requestParameters.getComponentPath(),
      requestParameters.getInterfaceName(), requestParameters.getVersionNumber());
  }
  else
  {
    return new BookmarkablePageRequestTarget(pageMapName,
      (Class)bookmarkablePageClassRef.get(), parameters);
  }
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

public IRequestTarget decode(RequestParameters requestParameters)
{
  String pageMapName = requestParameters.getPageMapName();
  final PageParameters parameters = new PageParameters(requestParameters.getParameters());
  // This might be a request to a stateless page, so check for an
  // interface name.
  if (requestParameters.getInterfaceName() != null)
  {
    return new BookmarkableListenerInterfaceRequestTarget(pageMapName,
        (Class)bookmarkablePageClassRef.get(), parameters, requestParameters
            .getComponentPath(), requestParameters.getInterfaceName(),
        requestParameters.getVersionNumber());
  }
  else
  {
    return new BookmarkablePageRequestTarget(pageMapName, (Class)bookmarkablePageClassRef
        .get(), parameters);
  }
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Adds components.
 */
private final void initComps()
{
  WebComponent meta = new WebComponent("meta");
  PageParameters parameters = new PageParameters();
  parameters.put("cto", continueTo);
  CharSequence url = urlFor(new BookmarkablePageRequestTarget(BrowserInfoPage.class,
      parameters));
  meta.add(new AttributeModifier("content", true, new Model("0; url=" + url)));
  add(meta);
  WebMarkupContainer link = new WebMarkupContainer("link");
  link.add(new AttributeModifier("href", true, new Model((Serializable)url)));
  add(link);
  add(new BrowserInfoForm("postback")
  {
    private static final long serialVersionUID = 1L;
    /**
     * @see org.apache.wicket.markup.html.pages.BrowserInfoForm#afterSubmit()
     */
    protected void afterSubmit()
    {
      continueToPrevious();
    }
  });
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Adds components.
 */
private final void initComps()
{
  WebComponent meta = new WebComponent("meta");
  PageParameters parameters = new PageParameters();
  parameters.put("cto", continueTo);
  CharSequence url = urlFor(new BookmarkablePageRequestTarget(BrowserInfoPage.class,
    parameters));
  meta.add(new AttributeModifier("content", true, new Model<String>("0; url=" + url)));
  add(meta);
  WebMarkupContainer link = new WebMarkupContainer("link");
  link.add(new AttributeModifier("href", true, new Model<Serializable>((Serializable)url)));
  add(link);
  add(new BrowserInfoForm("postback")
  {
    private static final long serialVersionUID = 1L;
    /**
     * @see org.apache.wicket.markup.html.pages.BrowserInfoForm#afterSubmit()
     */
    @Override
    protected void afterSubmit()
    {
      continueToPrevious();
    }
  });
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

return new BookmarkablePageRequestTarget(pageMapName, bookmarkablePageClass, parameters);
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Initialize a new WebRequestCycle and all its dependent objects
 * 
 * @param pageClass
 * @param params
 */
public void processRequestCycle(final Class pageClass, PageParameters params)
{
  setupRequestAndResponse();
  final WebRequestCycle cycle = createRequestCycle();
  try
  {
    BaseWicketTester.callOnBeginRequest(cycle);
    cycle.request(new BookmarkablePageRequestTarget(pageClass, params));
  }
  finally
  {
    cycle.getResponse().close();
  }
  postProcessRequestCycle(cycle);
}
origin: org.wicketstuff/spring-webflow

  /**
   * <p>buildFromTransition.</p>
   *
   * @param eventId a {@link java.lang.String} object.
   * @param requestCycle a {@link org.apache.wicket.RequestCycle} object.
   * @return a {@link org.apache.wicket.request.target.component.BookmarkablePageRequestTarget} object.
   */
  public static BookmarkablePageRequestTarget buildFromTransition(String eventId,RequestCycle requestCycle){
    FlowState<?> flowState = PageFlowSession.get().getFlowState();
    
    Class<? extends WebPage> nextPage = FlowUtils.getNextPage(eventId);
    
    PageParameters pars = requestCycle.getPageParameters();
    if(pars == null){
      pars = new PageParameters();
    }
    pars.put("flowExecutionKey", flowState.getCurrentViewState());
    
    //TODO Need to determine the last displayed page class when the current view state is DONE and the input
    //flow execution is not valid
    
    //Create a target for the last rendered page
    BookmarkablePageRequestTarget target = new BookmarkablePageRequestTarget((Class<? extends WebPage>)
        nextPage, pars);
    
    return target;
  }
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

return new BookmarkablePageRequestTarget(pageMapName, (Class)bookmarkablePageClassRef
    .get(), parameters);
origin: org.ops4j.pax.wicket/pax-wicket-service

return urlFor(new BookmarkablePageRequestTarget(pageMapName, getPageClass(), parameters));
origin: org.ops4j.pax.wicket/pax-wicket-service

return new BookmarkablePageRequestTarget(requestParameters.getPageMapName(),
  (Class<? extends Page>)bookmarkablePageClassRef.get(), parameters);
origin: org.apache.wicket/com.springsource.org.apache.wicket

BookmarkablePageRequestTarget homepageTarget = new BookmarkablePageRequestTarget(
  homePageClass, parameters);
IRequestCodingStrategy requestCodingStrategy = requestCycle.getProcessor()
origin: org.ops4j.pax.wicket/pax-wicket-service

BookmarkablePageRequestTarget homepageTarget = new BookmarkablePageRequestTarget(
  homePageClass, parameters);
IRequestCodingStrategy requestCodingStrategy = requestCycle.getProcessor()
origin: org.ops4j.pax.wicket/pax-wicket-service

return new BookmarkablePageRequestTarget(requestParameters.getPageMapName(),
  pageClass, params);
origin: org.apache.wicket/com.springsource.org.apache.wicket

return new BookmarkablePageRequestTarget(requestParameters.getPageMapName(),
  pageClass, params);
org.apache.wicket.request.target.componentBookmarkablePageRequestTarget<init>

Javadoc

Construct.

Popular methods of BookmarkablePageRequestTarget

  • getPageClass
  • getPageParameters
  • getPage
    Gets a newly constructed page if we are not in a redirect.
  • getPageMapName
  • hashCode
  • newPage
    Constructs a new instance of a page given its class name
  • respond

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Notification (javax.management)
  • JTextField (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now