show paper list
This commit is contained in:
parent
746f443931
commit
04f545db1c
@ -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>
|
||||
|
@ -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>
|
20
src/main/resources/META-INF/resources/paper/papers.xhtml
Normal file
20
src/main/resources/META-INF/resources/paper/papers.xhtml
Normal 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>
|
Loading…
Reference in New Issue
Block a user