show paper list

This commit is contained in:
Anton Romanov 2019-11-21 10:18:39 +04:00
parent 746f443931
commit 04f545db1c
3 changed files with 26 additions and 1 deletions

View File

@ -9,7 +9,7 @@
style="text-align:center">
<p:panel id="pnl" header="#{section.title}" style="text-align:center;">
<h:panelGrid columns="1" style="width:100%;">
<h:outputLink value="/papers.xhtml">
<h:outputLink value="/paper/papers.xhtml">
<p:graphicImage style="width:100%" name="img/main/#{section.image}"/>
</h:outputLink>
</h:panelGrid>

View File

@ -0,0 +1,5 @@
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<h:outputText value="#{paper.status}"/>
</ui:composition>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:p="http://primefaces.org/ui"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<ui:composition template="/basicTemplate.xhtml">
<ui:define name="content">
<p:dataTable value="#{paperView.papers}" var="paper" paginator="true" rows="10">
<p:column headerText="Статус">
<ui:include src="paperStatusFragment.xhtml">
<ui:param name="paper" value="#{paper}"/>
</ui:include>
</p:column>
<p:column headerText="Название">
<h:outputText value="#{paper.title}"/>
</p:column>
</p:dataTable>
</ui:define>
</ui:composition>
</html>