My favorites | Sign in
Project Home Wiki Issues Source
Checkout   Browse   Changes    
 
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
<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:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:pm="http://primefaces.org/mobile"
contentType="text/html">

<pm:page title="Notes">

<!-- Main View -->
<pm:view id="main" swatch="e">
<pm:header title="Notes">
<f:facet name="right"><p:button value="New" icon="plus" href="#new" /></f:facet>
</pm:header>

<pm:content>
<h:form id="listNotesForm">
<p:dataList id="notesList" value="#{notesView.notes}" var="note" type="inset">
<p:column>
<p:commandLink value="#{note.shortText}" update=":newNoteForm:noteText" action="pm:new">
<f:setPropertyActionListener value="#{note}" target="#{notesView.note}" />
</p:commandLink>
</p:column>
</p:dataList>
</h:form>
</pm:content>

</pm:view>

<!-- New Notes -->
<pm:view id="new" swatch="e">
<pm:header title="New Note">
<f:facet name="left"><p:button value="Back" icon="back" href="#main?reverse=true" /></f:facet>
</pm:header>

<pm:content>
<h:form id="newNoteForm">
<p:inputTextarea id="noteText" value="#{notesView.note.text}" />

<p:separator />

<p:commandButton value="Save" action="#{notesView.save}" update="noteText :listNotesForm:notesList" icon="check" />

</h:form>
</pm:content>

</pm:view>

</pm:page>

</f:view>

Change log

r6583 by cagatay.civici on Jan 19, 2012   Diff
Sample fixes
Go to: 
Project members, sign in to write a code review

Older revisions

r5979 by cagatay.civici on Nov 22, 2011   Diff
Sample update
r5976 by cagatay.civici on Nov 22, 2011   Diff
Sample update
r5923 by cagatay.civici on Nov 17, 2011   Diff
Sample update
All revisions of this file

File info

Size: 1816 bytes, 52 lines
Powered by Google Project Hosting