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

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

Introduction

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

Prototype

@Override
    public String getSessionId() 

Source Link

Usage

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();
}

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();
}