-
Notifications
You must be signed in to change notification settings - Fork 2
/
forum.xhtml
35 lines (35 loc) · 1.54 KB
/
forum.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<ui:composition xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:ajax="http://code.google.com/p/ada-asf/ajax"
template="/WEB-INF/layouts/demo.xhtml">
<ui:param name="title" value="#{samplesMsg.sample_ajax_page_title}" />
<ui:param name="tab" value="forum"/>
<ui:param name="source_file" value="forum.xhtml"/>
<!-- Main page body -->
<ui:define name="demoBody">
<div>
<h1>#{samplesMsg.demo_forum_messages}</h1>
<div class="grid_12 ui-widget">
<div id='form-block' class="asf-container ui-widget ui-widget-content ui-corner-all">
<ajax:include src="post.xhtml"/>
</div>
</div>
<div class="grid_12 ui-widget forum">
<div id='forum-posts' class="asf-container ui-widget ui-widget-content ui-corner-all forum">
<h:list value="#{messages}" var="msg" reverse="true">
<div class="message">
<div class="email">
#{msg.email}
</div>
<div class="text">
#{msg.text}
</div>
</div>
</h:list>
</div>
</div>
</div>
</ui:define>
</ui:composition>