summaryrefslogtreecommitdiffstats
path: root/WebContent/pages/categories.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'WebContent/pages/categories.xhtml')
-rw-r--r--WebContent/pages/categories.xhtml22
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>