{"action":"closed","issue":{"url":"https://api.github.com/repos/thymeleaf/thymeleaf-spring/issues/102","repository_url":"https://api.github.com/repos/thymeleaf/thymeleaf-spring","labels_url":"https://api.github.com/repos/thymeleaf/thymeleaf-spring/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/thymeleaf/thymeleaf-spring/issues/102/comments","events_url":"https://api.github.com/repos/thymeleaf/thymeleaf-spring/issues/102/events","html_url":"https://github.com/thymeleaf/thymeleaf-spring/issues/102","id":140492457,"number":102,"title":"Existing view beans are never picked up.","user":{"login":"mmoayyed","id":1205228,"avatar_url":"https://avatars.githubusercontent.com/u/1205228?v=3","gravatar_id":"","url":"https://api.github.com/users/mmoayyed","html_url":"https://github.com/mmoayyed","followers_url":"https://api.github.com/users/mmoayyed/followers","following_url":"https://api.github.com/users/mmoayyed/following{/other_user}","gists_url":"https://api.github.com/users/mmoayyed/gists{/gist_id}","starred_url":"https://api.github.com/users/mmoayyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmoayyed/subscriptions","organizations_url":"https://api.github.com/users/mmoayyed/orgs","repos_url":"https://api.github.com/users/mmoayyed/repos","events_url":"https://api.github.com/users/mmoayyed/events{/privacy}","received_events_url":"https://api.github.com/users/mmoayyed/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thymeleaf/thymeleaf-spring/labels/tracker:question","name":"tracker:question","color":"9b7a04"}],"state":"closed","locked":false,"assignee":{"login":"danielfernandez","id":1492299,"avatar_url":"https://avatars.githubusercontent.com/u/1492299?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfernandez","html_url":"https://github.com/danielfernandez","followers_url":"https://api.github.com/users/danielfernandez/followers","following_url":"https://api.github.com/users/danielfernandez/following{/other_user}","gists_url":"https://api.github.com/users/danielfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfernandez/subscriptions","organizations_url":"https://api.github.com/users/danielfernandez/orgs","repos_url":"https://api.github.com/users/danielfernandez/repos","events_url":"https://api.github.com/users/danielfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/danielfernandez/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/thymeleaf/thymeleaf-spring/milestones/16","html_url":"https://github.com/thymeleaf/thymeleaf-spring/milestones/Thymeleaf%202.1","labels_url":"https://api.github.com/repos/thymeleaf/thymeleaf-spring/milestones/16/labels","id":520879,"number":16,"title":"Thymeleaf 2.1","description":null,"creator":{"login":"danielfernandez","id":1492299,"avatar_url":"https://avatars.githubusercontent.com/u/1492299?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfernandez","html_url":"https://github.com/danielfernandez","followers_url":"https://api.github.com/users/danielfernandez/followers","following_url":"https://api.github.com/users/danielfernandez/following{/other_user}","gists_url":"https://api.github.com/users/danielfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfernandez/subscriptions","organizations_url":"https://api.github.com/users/danielfernandez/orgs","repos_url":"https://api.github.com/users/danielfernandez/repos","events_url":"https://api.github.com/users/danielfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/danielfernandez/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":59,"state":"open","created_at":"2013-12-25T00:57:21Z","updated_at":"2016-04-17T00:40:54Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-03-13T14:55:14Z","updated_at":"2016-04-17T00:40:54Z","closed_at":"2016-04-17T00:40:54Z","body":"I have the following:\r\n\r\n```\r\n    @Bean(name=\"responseView\")\r\n    public ThymeleafView responseView() {\r\n        final ProtocolView view = new ProtocolView (\"/protocol/responseView\");\r\n        view.setBeanName(\"responseView\");\r\n        return view;\r\n    }\r\n    \r\n    public static class ProtocolView extends ThymeleafView {\r\n        ProtocolView(final String templateName) {\r\n            super(templateName);\r\n        }\r\n    }\r\n```\r\n\r\nIf I attempt to route the flow to `responseView`, the resolver never picks up my existing bean. It always wants to set the template name to the view name passed which is `responseView`, rather than using the existing bean to pick up the configured template name. \r\n\r\nThis is in 2.1.4, latest of Spring 4. "}}