My favorites
▼
|
Sign in
primefaces
Next Generation Component Suite
Project Home
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
examples
/
trunk
/
showcase
/
src
/
main
/
webapp
/
mobile
/
news.xhtml
‹r5976
r7521
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<f:view xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:pm="http://primefaces.org/mobile"
contentType="text/html">
<pm:page title="PrimeFaces News">
<!-- Groups -->
<pm:view id="groups" swatch="c">
<pm:header title="News" />
<pm:content>
<h:form id="groupsForm">
<p:dataList value="#{newsController.groups}" var="group">
<p:column>
<p:commandLink value="#{group.title}" update=":entriesForm:entries" action="pm:summaries">
<f:setPropertyActionListener value="#{group}" target="#{newsController.selectedGroup}" />
</p:commandLink>
</p:column>
</p:dataList>
</h:form>
</pm:content>
</pm:view>
<!-- Summaries -->
<pm:view id="summaries" swatch="c">
<pm:header title="News">
<f:facet name="left"><p:button value="Back" icon="back" href="#groups?reverse=true"/></f:facet>
</pm:header>
<pm:content>
<h:form id="entriesForm">
<p:dataList id="entries" value="#{newsController.selectedGroup.entries}" var="entry">
<p:column>
<p:commandLink value="#{entry.title}" update=":content" action="pm:details">
<f:setPropertyActionListener value="#{entry}" target="#{newsController.selectedEntry}" />
</p:commandLink>
</p:column>
</p:dataList>
</h:form>
</pm:content>
</pm:view>
<!-- Details -->
<pm:view id="details" swatch="c">
<pm:header title="News">
<f:facet name="left"><p:button value="Back" icon="back" href="#summaries?reverse=true"/></f:facet>
</pm:header>
<pm:content>
<h:outputText id="content" value="#{newsController.selectedEntry.content}" escape="false" />
</pm:content>
</pm:view>
</pm:page>
</f:view>
Show details
Hide details
Change log
r6583
by cagatay.civici on Jan 19, 2012
Diff
Sample fixes
Go to:
...ain/webapp/mobile/contacts.xhtml
...rc/main/webapp/mobile/news.xhtml
...c/main/webapp/mobile/notes.xhtml
...n/webapp/ui/tabviewEffects.xhtml
Project members,
sign in
to write a code review
Older revisions
r5976
by cagatay.civici on Nov 22, 2011
Diff
Sample update
r5923
by cagatay.civici on Nov 17, 2011
Diff
Sample update
r5900
by cagatay.civici on Nov 16, 2011
Diff
Sample update
All revisions of this file
File info
Size: 2323 bytes, 63 lines
View raw file
Powered by
Google Project Hosting