Spring Framework AbstractUrlBasedView - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AbstractUrlBasedView class.

This code example shows how to use the following methods:setUrl, setContentType, setAttributesMap, setExposeContextBeansAsAttributes, setExposePathVariables

8
CodeRank
This code example shows how to use the following methods:setUrl, setContentType, setAttributesMap, setExposeContextBeansAsAttributes, setExposePathVariables

8
CodeRank
This code example shows how to use the following methods:setUrl, setContentType, setAttributesMap, setExposeContextBeansAsAttributes, setExposePathVariables

7
CodeRank
This code example shows how to use the following methods:setUrl, setContentType, setAttributesMap, setExposeContextBeansAsAttributes, setExposePathVariables

7
CodeRank
This code example shows how to use the following methods:getUrl, exposeModelAsRequestAttributes, getBeanName, getServletContext
	/** 
	 * Renders output using Tiles. 
	 */ 
	protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception { 
 
		ServletContext servletContext = getServletContext(); 
		@SuppressWarnings("deprecation") 
		TilesContainer container = TilesAccess.getContainer(servletContext); 
		if (container == null) { 
			throw new ServletException("Tiles container is not initialized. " + "Have you added a TilesConfigurer to your web application context?"); 
		} 
 
		exposeModelAsRequestAttributes(model, request); 
 
		dynamicTilesViewProcessor.renderMergedOutputModel(getBeanName(), getUrl(), servletContext, request, response, container); 
	} 
 
} 
6
CodeRank
This code example shows how to use the following methods:setUrl
	public FacesView() { 
		super(); 
	} 
 
	public FacesView(String url) { 
		super(); 
		setUrl(url); 
	} 
 
	public FacesView(ViewArtifact viewArtifact) { 
		super(); 
		Assert.notNull(viewArtifact, "ViewArtifact must not be null"); 
		setUrl(viewArtifact.toString()); 
	} 
 
	@Override 
	protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, 
			HttpServletResponse response) throws Exception { 
		SpringFacesContext.getCurrentInstance(true).render(this, removeBindingResults(model)); 
 

5
CodeRank
This code example shows how to use the following methods:getUrl, exposeModelAsRequestAttributes
     */ 
    protected void renderMergedOutputModel( 
            Map model, HttpServletRequest request, HttpServletResponse response) throws Exception  
    { 
        // the web script url 
        String uri = this.getUrl(); 
         
        // Expose the model object as request attributes. 
        exposeModelAsRequestAttributes(model, request); 
         
        if (logger.isDebugEnabled()) 
            logger.debug("Processing request ("  + request.getMethod() + ") " + request.getRequestURL() + (request.getQueryString() != null ? "?" + request.getQueryString() : "")); 
         
        // character encoding may have been set by the Spring MVC dispatcher 
        if (request.getCharacterEncoding() == null) 
        { 
            request.setCharacterEncoding("UTF-8"); 
        } 
         
        // locale may have been resolved by the Spring MVC dispatcher 

5
CodeRank
This code example shows how to use the following methods:
 * JSF View that renders a transient (stateless) JSF view template. The UIViewRoot will not be saved and thus the JSF 
 * lifecycle will not be able to be invoked on postback. 
 *  
 * @author Jeremy Grelle 
 */ 
public class JsfView extends AbstractUrlBasedView { 
 
	private Lifecycle facesLifecycle; 
 
	public void afterPropertiesSet() throws Exception { 
		super.afterPropertiesSet(); 
		this.facesLifecycle = createFacesLifecycle(); 
	} 
 
	protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, 
			HttpServletResponse response) throws Exception { 
 
		FacesContextHelper facesContextHelper = new FacesContextHelper(); 
		FacesContext facesContext = facesContextHelper.getFacesContext(getServletContext(), request, response); 
 
5
CodeRank
This code example shows how to use the following methods:
	private boolean http10Compatible = true; 
 
	/** 
	 * Constructor for use as a bean. 
	 */ 
	public FlashScopeView() { 
	} 
 
	/** 
	 * Create a new FlashRedirectView with the given URL. 
	 * <p>The given URL will be considered as relative to the web server, 
	 * not as relative to the current ServletContext. 
	 * @param url the URL to redirect to 
	 * @see #FlashRedirectView(String, boolean) 
	 */ 
	public FlashScopeView(String url) { 
		super(url); 
	} 
 
	/** 
4
CodeRank
This code example shows how to use the following methods:
     
    private Asset asset; 
    private boolean attach; 
    private String renditionName;  
 
    public StreamedAssetView(Asset asset, String renditionName, boolean attach) 
    { 
        this.asset = asset; 
        this.attach = attach; 
        this.renditionName = renditionName; 
    } 
     
    public StreamedAssetView(Asset asset) 
    { 
        this(asset, null, false); 
    } 
     
    public StreamedAssetView(Asset asset, String renditionName) 
    { 
        this(asset, renditionName, false); 
4
CodeRank
See Code Examples for Spring Framework AbstractUrlBasedView Methods: