{"action":"created","issue":{"url":"https://api.github.com/repos/apache/tiles/issues/4","labels_url":"https://api.github.com/repos/apache/tiles/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/apache/tiles/issues/4/comments","events_url":"https://api.github.com/repos/apache/tiles/issues/4/events","html_url":"https://github.com/apache/tiles/pull/4","id":88314649,"number":4,"title":"Object-Type Attribute Value Evaluation","user":{"login":"brettryan","id":32154,"avatar_url":"https://avatars.githubusercontent.com/u/32154?v=3","gravatar_id":"","url":"https://api.github.com/users/brettryan","html_url":"https://github.com/brettryan","followers_url":"https://api.github.com/users/brettryan/followers","following_url":"https://api.github.com/users/brettryan/following{/other_user}","gists_url":"https://api.github.com/users/brettryan/gists{/gist_id}","starred_url":"https://api.github.com/users/brettryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettryan/subscriptions","organizations_url":"https://api.github.com/users/brettryan/orgs","repos_url":"https://api.github.com/users/brettryan/repos","events_url":"https://api.github.com/users/brettryan/events{/privacy}","received_events_url":"https://api.github.com/users/brettryan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-15T04:44:08Z","updated_at":"2015-07-08T11:25:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/tiles/pulls/4","html_url":"https://github.com/apache/tiles/pull/4","diff_url":"https://github.com/apache/tiles/pull/4.diff","patch_url":"https://github.com/apache/tiles/pull/4.patch"},"body":"Object type attributes such as the `<menu />` implementation may now implement `o.a.t.awareness.ExpressionAware` which causes `#evaluateExpressions(AttributeEvaluator,Request)` to be called during attribute evaluation.\r\n\r\nIt is up to the implementation to handle evaluation using the supplied evaluator.\r\n\r\nImplementors may return any object type or a duplicated of itself with expressions replaced which will be used for rendering within the view model."},"comment":{"url":"https://api.github.com/repos/apache/tiles/issues/comments/119545478","html_url":"https://github.com/apache/tiles/pull/4#issuecomment-119545478","issue_url":"https://api.github.com/repos/apache/tiles/issues/4","id":119545478,"user":{"login":"michaelsembwever","id":559444,"avatar_url":"https://avatars.githubusercontent.com/u/559444?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelsembwever","html_url":"https://github.com/michaelsembwever","followers_url":"https://api.github.com/users/michaelsembwever/followers","following_url":"https://api.github.com/users/michaelsembwever/following{/other_user}","gists_url":"https://api.github.com/users/michaelsembwever/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelsembwever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelsembwever/subscriptions","organizations_url":"https://api.github.com/users/michaelsembwever/orgs","repos_url":"https://api.github.com/users/michaelsembwever/repos","events_url":"https://api.github.com/users/michaelsembwever/events{/privacy}","received_events_url":"https://api.github.com/users/michaelsembwever/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T11:25:46Z","updated_at":"2015-07-08T11:25:46Z","body":"> Interestingly though I did ask on the users mailing list before I\nsubmitted my solution if there was a way to get <item> to evaluate\nexpressions, I requested if there was a newer alternative, the response was\nactually from yourself to look at the code as it's fairly simple :)\n\n\nYeah my apologies for that Brett. I didn't catch it, at least too late once\nNick raised concerns about the improvements you need (in the PR) changing\ncode beyond tiles-compat.\n\n\n\n> It does seem to not work however, when I add use an expression, i.e.\n<add-attribute expression=\"${customer.id}\"/> attempts to render the\nattribute fail with a NPE, however if I use value it renders, but\nunevaluated.\n\n\nIf this is a bug then a pull request there will of course be of great\nvalue. Things would be more on the tiles-3.0 way of doing things :-)\n\n\n~mck\n"}}