congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • 21 Best Atom Packages for 2021
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