congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BookmarkablePageRequestTarget.getPageParameters
Code IndexAdd Tabnine to your IDE (free)

How to use
getPageParameters
method
in
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget

Best Java code snippets using org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPageParameters (Showing top 3 results out of 315)

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

/**
 * Extracts the PageParameters from given request target
 *
 * @param requestTarget
 * @return
 */
private PageParameters getPageParameters(IRequestTarget requestTarget)
{
  if (requestTarget instanceof BookmarkablePageRequestTarget)
  {
    BookmarkablePageRequestTarget target = (BookmarkablePageRequestTarget)requestTarget;
    return target.getPageParameters();
  }
  else if (requestTarget instanceof ListenerInterfaceRequestTarget)
  {
    ListenerInterfaceRequestTarget target = (ListenerInterfaceRequestTarget)requestTarget;
    Page page = target.getPage();
    return getInitialPagePageParameters(page);
  }
  else
  {
    return null;
  }
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Extracts the PageParameters from given request target
 * 
 * @param requestTarget
 * @return page parameters
 */
private PageParameters getPageParameters(final IRequestTarget requestTarget)
{
  if (requestTarget instanceof BookmarkablePageRequestTarget)
  {
    BookmarkablePageRequestTarget target = (BookmarkablePageRequestTarget)requestTarget;
    return target.getPageParameters();
  }
  else if (requestTarget instanceof ListenerInterfaceRequestTarget)
  {
    ListenerInterfaceRequestTarget target = (ListenerInterfaceRequestTarget)requestTarget;
    Page page = target.getPage();
    return getInitialPagePageParameters(page);
  }
  else
  {
    return null;
  }
}
origin: org.wicketstuff/spring-webflow

/** {@inheritDoc} */
@Override
protected IRequestTarget resolveHomePageTarget(RequestCycle requestCycle, RequestParameters requestParameters)
{
  
  //Grab the target as Wicket would normally calculate it
  BookmarkablePageRequestTarget classicTarget =(BookmarkablePageRequestTarget) super.resolveHomePageTarget(requestCycle, requestParameters);
  BookmarkablePageRequestTarget newTarget =  resolvePageFlowTargets(classicTarget,requestCycle,requestParameters);
  
  //If the target that PageFlow is returning isn't the real home page we need to redirect to it.
  if(!classicTarget.getPageClass().equals(newTarget.getPageClass())){
    
    //Redirect to the homepage if session is trying to go to the end of the flow since we are restarting it
    String currentStateFromSession = PageFlowSession.get().getFlowState().getCurrentViewState();
    if(PageFlowConstants.PAGE_FLOW_FINAL_STATE_DONE.equals(currentStateFromSession)){
      //Reset the whole flow state in preparation for a new flow
      PageFlowSession.get().resetFlowState();
      
      // This line is to reset the target because the flowstate was just reset so the url needs to be regenerated
      classicTarget =(BookmarkablePageRequestTarget) super.resolveHomePageTarget(requestCycle, requestParameters);
      
      return classicTarget;
    }
    
    throw new RestartResponseException(newTarget.getPageClass(), newTarget.getPageParameters());
  }
  
  return resolvePageFlowTargets(classicTarget,requestCycle,requestParameters); 
}

org.apache.wicket.request.target.componentBookmarkablePageRequestTargetgetPageParameters

Popular methods of BookmarkablePageRequestTarget

  • <init>
    Construct.
  • getPageClass
  • 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

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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