Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portlet "global session scope" is unaccessible from JSF views [SWF-195] #1109

Closed
spring-operator opened this issue Oct 12, 2006 · 4 comments
Closed

Comments

@spring-operator
Copy link
Contributor

Keith Garry Boyce opened SWF-195 and commented

Currently JSF provides support for accessing sessionScope and applicationScope natively, but provides no support for globalSessionScope applicable in a Portlet environment. Spring Web Flow provides this access through its ExternalContext abstraction, however, as of SWF 1.0.4 there is no way to access this data structure from a JSF view.

A workaround here would be to use Spring 2.0's custom bean scoping features to configure a bean sourced from global session scope. This ticket should investigate providing uniform access to the global session scope structure from a JSF view...


Original report:

Access could be provided like ${externalContext.sessionMap.foo} with an enhancement to FlowExecutionVariableResolver and FlowExecutionPropertyResolver.

However, is JSF's default support for resolving session and request scope variables is good enough? With Spring 2.0 as the managed bean provider and its custom scopes feature this might not be necessary as well. (Though this has the benefit of an explict prefix to reduce the likeihood of name clashes)


Affects: 1.0.4

Attachments:

@spring-operator
Copy link
Contributor Author

Jeremy Grelle commented

"However, is JSF's default support for resolving session and request scope variables is good enough?"

I believe the answer is probably yes. You can already do this via JSF/EL's implicit objects. In other words, #{sessionScope.foo} and #{requestScope.foo} are already required to be supported in the JSF implementation.

@spring-operator
Copy link
Contributor Author

Keith Garry Boyce commented

Where jsf falls short is to provide access to portlet session APPLICATION_SCOPE. There is no jsf mechanism to do this in a portlet agnostic way. This is why i'm asking for it. externalContext.globalSessionMap is the main driver.

@spring-operator
Copy link
Contributor Author

Keith Donald commented

Reopening with a clarification.

@spring-operator
Copy link
Contributor Author

Keith Donald commented

Possible now with #{externalContext.globalSessionMap.foo}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant