working version, without exceptions
This commit is contained in:
parent
32896e0cc3
commit
68a66d2067
|
@ -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}">
|
||||
|
|
Loading…
Reference in New Issue