working version, without exceptions

This commit is contained in:
Johannes Theiner 2019-05-17 10:14:07 +02:00
parent 32896e0cc3
commit 68a66d2067
1 changed files with 3 additions and 5 deletions

View File

@ -12,11 +12,9 @@
<h:body> <h:body>
<h:form> <ui:repeat value="#{categoryBean.categories}" var="category">
<h:selectOneMenu value="#{categoryBean.category}" onchange="this.form.submit()"> <h:outputText value="#{category.name}"/><br/>
<f:selectItems value="#{categoryBean.categories}" var="category" itemValue="#{category.id}" itemLabel="#{category.name}"/> </ui:repeat>
</h:selectOneMenu>
</h:form>
<ui:repeat value="#{categoryBean.books}" var="book" rendered="not empty #{categoryBean.category}"> <ui:repeat value="#{categoryBean.books}" var="book" rendered="not empty #{categoryBean.category}">