{"action":"closed","issue":{"url":"https://api.github.com/repos/TheCoder4eu/BootsFaces-OSP/issues/439","repository_url":"https://api.github.com/repos/TheCoder4eu/BootsFaces-OSP","labels_url":"https://api.github.com/repos/TheCoder4eu/BootsFaces-OSP/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/TheCoder4eu/BootsFaces-OSP/issues/439/comments","events_url":"https://api.github.com/repos/TheCoder4eu/BootsFaces-OSP/issues/439/events","html_url":"https://github.com/TheCoder4eu/BootsFaces-OSP/issues/439","id":162515971,"number":439,"title":"CRUD Datatable","user":{"login":"michaelende","id":18427459,"avatar_url":"https://avatars.githubusercontent.com/u/18427459?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelende","html_url":"https://github.com/michaelende","followers_url":"https://api.github.com/users/michaelende/followers","following_url":"https://api.github.com/users/michaelende/following{/other_user}","gists_url":"https://api.github.com/users/michaelende/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelende/subscriptions","organizations_url":"https://api.github.com/users/michaelende/orgs","repos_url":"https://api.github.com/users/michaelende/repos","events_url":"https://api.github.com/users/michaelende/events{/privacy}","received_events_url":"https://api.github.com/users/michaelende/received_events","type":"User","site_admin":false},"labels":[{"id":178582261,"url":"https://api.github.com/repos/TheCoder4eu/BootsFaces-OSP/labels/User%20support","name":"User support","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-06-27T18:24:02Z","updated_at":"2017-01-25T23:13:04Z","closed_at":"2017-01-25T23:13:04Z","body":"Hello,\n\nthis is a question and not a Bug.\nit is possible to add a Button in a table which call a modal form with the selected object of the table row?\n\ni missing a action attribute in the b:button tag.\n\nmany thanks\nMichael\n\n```\n    <b:dataTable value=\"#{masterdataManager.listAllAccounts()}\" var=\"acc\"\n                 styleClass=\"table table-striped table-bordered\"\n                 style=\"width:100%\" fixedHeader=\"true\" responsive=\"true\">\n\n        <h:column>\n            <f:facet name=\"header\">\n                <h:outputText value=\"ID\"/>\n            </f:facet>\n            <h:outputLabel value=\"#{acc.id}\"/>\n        </h:column>\n        <h:column>\n            <f:facet name=\"header\">\n                <h:outputText value=\"Username\"/>\n            </f:facet>\n            <h:outputLabel value=\"#{acc.name}\"/>\n        </h:column>\n        <h:column>\n            <f:facet name=\"header\">\n                <h:outputText value=\"Password\"/>\n            </f:facet>\n            <h:outputLabel value=\"#{acc.password}\"/>\n        </h:column>\n        <h:column>\n            <f:facet name=\"header\">\n                <h:outputText value=\"Role\"/>\n            </f:facet>\n            <h:outputLabel value=\"#{acc.role}\"/>\n        </h:column>\n        <h:column>\n            <f:facet name=\"header\">\n                <h:outputText value=\"Action\"/>\n            </f:facet>\n\n            <h:form>\n                <b:button look=\"warning\" pt:data-target=\"#amodal\" pt:data-toggle=\"modal\"\n                          onclick=\"return false;\" iconAwesome=\"pencil\"  />\n                <b:commandButton iconAwesome=\"trash\" action=\"#{masterdataManager.deleteAccount(acc)}\"/>\n            </h:form>\n        </h:column>\n    </b:dataTable>\n\n    <b:modal id=\"amodal\" title=\"Edit Account\" styleClass=\"modalPseudoClass\" >\n        <p>Modal body</p>\n        <f:facet id=\"footer\" name=\"footer\">\n            <b:button id=\"close\" value=\"close\" dismiss=\"modal\" onclick=\"return false;\"/>\n            <b:button id=\"ok\" value=\"Ok\" look=\"primary\" dismiss=\"modal\" onclick=\"return false;\" />\n        </f:facet>\n    </b:modal>\n```\n"}}
{"actor":{"display_login":"stephanrauh"}}