diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-12-13 22:07:46 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-12-13 23:35:23 +0100 |
| commit | 5f30a827fc84af1e54f0716a49995e98a044ebd6 (patch) | |
| tree | 27a68fbd5640c445f549e696af8141aeba6e9769 /WebContent/pages/categories.xhtml | |
| parent | a14734c965fd7aaf6485bb2bb2a72a68bdb5d14d (diff) | |
| download | JCatalog-5f30a827fc84af1e54f0716a49995e98a044ebd6.tar.gz JCatalog-5f30a827fc84af1e54f0716a49995e98a044ebd6.zip | |
Add editing capabilities
Diffstat (limited to 'WebContent/pages/categories.xhtml')
| -rw-r--r-- | WebContent/pages/categories.xhtml | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/WebContent/pages/categories.xhtml b/WebContent/pages/categories.xhtml index cb6ef27..7c3ecac 100644 --- a/WebContent/pages/categories.xhtml +++ b/WebContent/pages/categories.xhtml @@ -43,17 +43,19 @@ <f:param name="selectedId" value="#{category.id}" /> </h:commandLink> </h:column> - <c:if test="#{UserManager.loggedIn}"> - <h:column> - <f:facet name="header"> - <h:outputText value="" /> - </f:facet> - <h:commandLink value="Edit Details ..." immediate="true" action="category"> - <f:param name="selectedId" value="#{category.id}" /> - </h:commandLink> - </h:column> - </c:if> + <h:column rendered="#{UserManager.loggedIn}"> + <f:facet name="header"> + <h:outputText value="" /> + </f:facet> + <h:commandLink value="Edit" immediate="true" + actionListener="#{CategoryManager.edit}" action="edit"> + <f:param name="selectedId" value="#{category.id}" /> + </h:commandLink> + </h:column> </h:dataTable> + <h:commandLink rendered="#{UserManager.loggedIn}" disabled="#{not UserManager.loggedIn}" value="New Category" immediate="true" + actionListener="#{CategoryManager.createCategory}" action="createCategory"> + </h:commandLink> </h:form> </ui:define> |
