working version, without exceptions

This commit is contained in:
Johannes Theiner 2019-05-17 10:14:07 +02:00
parent 32896e0cc3
commit 68a66d2067

View File

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