List of usage examples for org.springframework.web.context.request FacesRequestAttributes FacesRequestAttributes
public FacesRequestAttributes(FacesContext facesContext)
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(); }