{"action":"opened","issue":{"url":"https://api.github.com/repos/fmcarvalho/HtmlFlow/issues/8","labels_url":"https://api.github.com/repos/fmcarvalho/HtmlFlow/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/fmcarvalho/HtmlFlow/issues/8/comments","events_url":"https://api.github.com/repos/fmcarvalho/HtmlFlow/issues/8/events","html_url":"https://github.com/fmcarvalho/HtmlFlow/issues/8","id":112314077,"number":8,"title":"Could Taskview return always the same HtmlBody instead of creating?","user":{"login":"kenji-getpowered","id":5321000,"avatar_url":"https://avatars.githubusercontent.com/u/5321000?v=3","gravatar_id":"","url":"https://api.github.com/users/kenji-getpowered","html_url":"https://github.com/kenji-getpowered","followers_url":"https://api.github.com/users/kenji-getpowered/followers","following_url":"https://api.github.com/users/kenji-getpowered/following{/other_user}","gists_url":"https://api.github.com/users/kenji-getpowered/gists{/gist_id}","starred_url":"https://api.github.com/users/kenji-getpowered/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenji-getpowered/subscriptions","organizations_url":"https://api.github.com/users/kenji-getpowered/orgs","repos_url":"https://api.github.com/users/kenji-getpowered/repos","events_url":"https://api.github.com/users/kenji-getpowered/events{/privacy}","received_events_url":"https://api.github.com/users/kenji-getpowered/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-20T08:33:17Z","updated_at":"2015-10-20T08:33:17Z","closed_at":null,"body":"use case:\r\n```\r\n    taskView.body()\r\n    .div()\r\n      .classAttr(divClass)\r\n      .idAttr(divId)\r\n      .addAttr(\"toto\", \"tutu\").form(\"/action.do\");\r\n\r\n     taskView.body()\r\n      .div()\r\n      .idAttr(\"id2\")\r\n      .addAttr(\"toto\", \"tutu\").form(\"/action2.do\");\r\n```\r\n\r\nProposition \r\n````java\r\npublic class HtmlView<T> extends HtmlWriterComposite<T, HtmlView<T>>{\r\n\t\r\n     public HtmlHead<T> head(){return addChild(new HtmlHead<T>());}\r\n\r\n    private HtmlBody body = null;\r\n    public HtmlBody<T> body() {\r\n        if (body == null) {\r\n            body = addChild(new HtmlBody<T>());\r\n\r\n        }\r\n        return body;\r\n    }\r\n```\r\n\r\n"}}