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

Investigate how to support more than 1 view resolved through the BeanNameViewResolver [SPR-5646] #10317

Closed
spring-projects-issues opened this issue Apr 1, 2009 · 3 comments
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: declined A suggestion or change that we don't feel we should currently apply type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

Alef Arendsen opened SPR-5646 and commented

As discussed in the blog entry (http://blog.springsource.com/2009/03/16/adding-an-atom-view-to-an-application-using-springs-rest-support/) you can now support more than 1 view by using the ContentNegotiatingViewResolver. Aas Dmitriy and Harald are asking, it's not clear right now how to support more than 1 view through the BeanNameViewResolver.

For more info on the issue, have a look at the comments by Dmitriy and Harald: http://blog.springsource.com/2009/03/16/adding-an-atom-view-to-an-application-using-springs-rest-support/#comments


Affects: 3.0 M2

3 votes, 2 watchers

@spring-projects-issues
Copy link
Collaborator Author

Alex Coles commented

There's are a couple threads on the forums discussing this issue:

http://forum.springsource.org/showthread.php?t=73102
http://forum.springsource.org/showthread.php?t=74600

A couple possible workarounds:

http://forum.springsource.org/showpost.php?p=249805&postcount=2
http://forum.springsource.org/showpost.php?p=250444&postcount=3

(if workaround #1 is correct, then this issue would appear to be invalid).

@spring-projects-issues
Copy link
Collaborator Author

Ryan Stewart commented

I've posted another theoretical solution in this thread:
http://forum.springsource.org/showthread.php?t=74600

The actual post:
http://forum.springsource.org/showpost.php?p=264050&postcount=9

In short, I don't think it's the responsibility of the ViewResolver to participate in the decision of how a View gets rendered. That should be strictly up to the View itself. I think the content negotiation should be done in the View and not in the ViewResolver.

@spring-projects-issues
Copy link
Collaborator Author

Sébastien Deleuze commented

Closing groups of outdated issues. Please reopen if still relevant.

@spring-projects-issues spring-projects-issues added status: declined A suggestion or change that we don't feel we should currently apply type: enhancement A general enhancement in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: declined A suggestion or change that we don't feel we should currently apply type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant