{"action":"created","issue":{"url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/121","labels_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/121/comments","events_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/121/events","html_url":"https://github.com/mikeedwards83/Glass.Mapper/issues/121","id":68585788,"number":121,"title":"Glass Model not populated in after Glass Mapper upgrade","user":{"login":"Nickunj","id":5581296,"avatar_url":"https://avatars.githubusercontent.com/u/5581296?v=3","gravatar_id":"","url":"https://api.github.com/users/Nickunj","html_url":"https://github.com/Nickunj","followers_url":"https://api.github.com/users/Nickunj/followers","following_url":"https://api.github.com/users/Nickunj/following{/other_user}","gists_url":"https://api.github.com/users/Nickunj/gists{/gist_id}","starred_url":"https://api.github.com/users/Nickunj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nickunj/subscriptions","organizations_url":"https://api.github.com/users/Nickunj/orgs","repos_url":"https://api.github.com/users/Nickunj/repos","events_url":"https://api.github.com/users/Nickunj/events{/privacy}","received_events_url":"https://api.github.com/users/Nickunj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-15T06:05:51Z","updated_at":"2015-05-19T12:33:42Z","closed_at":null,"body":"HI,\r\n\r\nPreviously we had a working solution using the following Glass packages:\r\n\r\nGlass.Mapper 3.0.4.16\r\nGlass.Mapper.Sc 3.0.5.14\r\nGlass.Mapper.Sc.CastleWindsor 3.0.3.8\r\n\r\nI've just updated to:\r\n\r\nGlass.Mapper 3.0.15.32\r\nGlass.Mapper.Sc 3.3.1.53\r\nGlass.Mapper.Sc.CastleWindsor 3.3.1.26\r\nGlass.Mapper.Sc.Mvc-4 3.3.1.48\r\n\r\nNow I have an issue with certain Glass models not populating the property values.\r\n\r\nModel is as follows:\r\nCallToAction.cs\r\nnamespace IDP.Web.IDP.Models.Base\r\n{\r\n    using System;\r\n    using Base;\r\n    using Glass.Mapper.Sc.Configuration.Attributes;\r\n    using Glass.Mapper.Sc.Fields;\r\n    \r\n    [SitecoreType(AutoMap = true)]\r\n    public class CallToAction : RenderingModel\r\n    {\r\n        public virtual string Title { get; set; }\r\n        public virtual string Text { get; set; }\r\n        public virtual Image Image { get; set; }\r\n        public virtual string LinkText { get; set; }\r\n        public virtual Glass.Mapper.Sc.Fields.Link LinkUrl { get; set; }\r\n    }\r\n}\r\n\r\nRenderingModel.cs\r\nnamespace IDP.Web.IDP.Models.Base\r\n{\r\n    using Glass.Mapper.Sc;\r\n    using Sitecore.Data.Items;\r\n    using Sitecore.Mvc.Presentation;\r\n\r\n    public abstract class RenderingModel : IRenderingModel\r\n    {\r\n        private SitecoreContext _context;\r\n\r\n        private Item _item;\r\n        private Item _pageItem;\r\n\r\n        public void Initialize(Rendering rendering)\r\n        {\r\n            Rendering = rendering;\r\n            InitializeModel();\r\n        }\r\n\r\n        public virtual void InitializeModel()\r\n        {\r\n\r\n        }\r\n\r\n        public SitecoreContext Context\r\n        {\r\n            get\r\n            {\r\n                if (_context == null)\r\n                {\r\n                    _context = new SitecoreContext();\r\n                }\r\n\r\n                return _context;\r\n            }\r\n        }\r\n\r\n        public Item Item \r\n        { \r\n            get\r\n            {\r\n                if (_item == null)\r\n                {\r\n                    _item = Rendering.Item;\r\n                }\r\n\r\n                return _item;\r\n            }\r\n        }\r\n\r\n        public Item PageItem\r\n        {\r\n            get\r\n            {\r\n                if (_pageItem == null)\r\n                {\r\n                    _pageItem = Item;\r\n                }\r\n\r\n                return _item;\r\n            }\r\n        }\r\n\r\n        public Rendering Rendering { get; private set; }\r\n    }\r\n}"},"comment":{"url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/comments/103469903","html_url":"https://github.com/mikeedwards83/Glass.Mapper/issues/121#issuecomment-103469903","issue_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/121","id":103469903,"user":{"login":"mikeedwards83","id":123856,"avatar_url":"https://avatars.githubusercontent.com/u/123856?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeedwards83","html_url":"https://github.com/mikeedwards83","followers_url":"https://api.github.com/users/mikeedwards83/followers","following_url":"https://api.github.com/users/mikeedwards83/following{/other_user}","gists_url":"https://api.github.com/users/mikeedwards83/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeedwards83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeedwards83/subscriptions","organizations_url":"https://api.github.com/users/mikeedwards83/orgs","repos_url":"https://api.github.com/users/mikeedwards83/repos","events_url":"https://api.github.com/users/mikeedwards83/events{/privacy}","received_events_url":"https://api.github.com/users/mikeedwards83/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T12:33:42Z","updated_at":"2015-05-19T12:33:42Z","body":"Hi\r\n\r\nSorry for the slow reply. Are you still experiencing this problem? \r\n\r\nTypically you wouldn't be using the IRenderingModel interface with  a Glass model when working with  a GlassView and MVC.\r\n\r\nMike"}}