Example usage for org.springframework.web.context.request FacesRequestAttributes FacesRequestAttributes

List of usage examples for org.springframework.web.context.request FacesRequestAttributes FacesRequestAttributes

Introduction

In this page you can find the example usage for org.springframework.web.context.request FacesRequestAttributes FacesRequestAttributes.

Prototype

public FacesRequestAttributes(FacesContext facesContext) 

Source Link

Document

Create a new FacesRequestAttributes adapter for the given FacesContext.

Usage

From source file:br.com.suricattus.surispring.spring.scope.ViewScope.java

public Object resolveContextualObject(String name) {
    return new FacesRequestAttributes(FacesContext.getCurrentInstance()).resolveReference(name);
}

From source file:de.inetsource.jsfforum.config.ViewScope.java

@Override
public Object resolveContextualObject(String key) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    FacesRequestAttributes facesResquestAttributes = new FacesRequestAttributes(facesContext);
    return facesResquestAttributes.resolveReference(key);
}

From source file:br.com.suricattus.surispring.spring.scope.ViewScope.java

public String getConversationId() {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    FacesRequestAttributes facesRequestAttributes = new FacesRequestAttributes(facesContext);
    return facesRequestAttributes.getSessionId() + "-" + facesContext.getViewRoot().getViewId();
}

From source file:de.inetsource.jsfforum.config.ViewScope.java

@Override
public String getConversationId() {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    FacesRequestAttributes facesResquestAttributes = new FacesRequestAttributes(facesContext);
    return facesResquestAttributes.getSessionId() + "-" + facesContext.getViewRoot().getViewId();
}