Examples of ExternalContext


Examples of javax.faces.context.ExternalContext

    @Override
    public String getBookmarkableURL(FacesContext context, String viewId,
            Map<String, List<String>> parameters, boolean includeViewParams)
    {
        Map<String, List<String>> viewParameters;
        ExternalContext externalContext = context.getExternalContext();
        if (includeViewParams)
        {
            viewParameters = getViewParameterList(context, viewId, parameters);
        }
        else
        {
            viewParameters = parameters;
        }
       
        String actionEncodedViewId = getActionURL(context, viewId);
        String bookmarkEncodedURL = externalContext.encodeBookmarkableURL(actionEncodedViewId, viewParameters);
        return externalContext.encodeActionURL(bookmarkEncodedURL);
    }
View Full Code Here

Examples of org.springframework.webflow.context.ExternalContext

  protected FlowDefinitionResource getResource(FlowDefinitionResourceFactory resourceFactory) {
    return resourceFactory.createClassPathResource("search-flow.xml", getClass());
  }

  public void testStartFlow() {
    ExternalContext context = new MockExternalContext();
    startFlow(null, context);
    assertCurrentStateEquals("enterCriteria");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.