rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rest="http://restfaces.dev.java.net">
<body>
<ui:composition template="/template.xhtml">
<ui:define name="head">
<div id="search">
<form method="get" action="#{restFaces.search}">
#{msg['search.text.label']} <input type="text" name="searchText" value="#{booksBean.searchText}" />
<input type="submit" value="#{msg['search.go']}"/>
</form>
<rest:link value="search">PERMLINK</rest:link>
</div>
</ui:define>
<ui:define name="content">
<div id="news">
<h2>#{msg['home.title.mostReadBooks']}</h2>
<ul>
<ui:repeat value="#{booksBean.mostImportantBooks}" var="book">
<li>
<rest:link value="selectBook">
<f:param name="id" value="#{book.id}"/>
#{book.title}, #{book.author.name}
</rest:link>
</li>
</ui:repeat>
</ul>
</div>
<div id="authors">
<h2>#{msg['home.title.searchByAuthors']}</h2>
<ul>
<ui:repeat value="#{authorsBean.authors}" var="author">
<li>
<rest:link value="/author.xhtml">
<f:param name="id" value="#{author.id}"/>
#{author.name}
</rest:link>
</li>
</ui:repeat>
</ul>
</div>
<div id="results">
<h2>#{msg['home.title.searchResults']}</h2>
<ul>
<ui:repeat value="#{booksBean.results}" var="book">
<li>
<rest:link value="selectBook">
<f:param name="id" value="#{book.id}"/>
#{book.title}, #{book.author.name}
</rest:link>
</li>
</ui:repeat>
</ul>
</div>
</ui:define>
</ui:composition>
</body>
</html>