Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 152 lines (148 sloc) 6.925 kb
c6d5605 Neil Griffin Initial checkin
ngriffin7a authored
1 <?xml version="1.0" encoding="UTF-8"?>
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
2 <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:alloy="http://liferay.com/faces/alloy"
944060f Neil Griffin FACES-1918 Enable fix-versions.pl script to fix xmlns of composite compo...
ngriffin7a authored
3 xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" xmlns:f="http://xmlns.jcp.org/jsf/core"
4 xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:bridge="http://liferay.com/faces/bridge"
5 xmlns:example-cc="http://xmlns.jcp.org/jsf/composite/example-cc" xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
c6d5605 Neil Griffin Initial checkin
ngriffin7a authored
6
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
7
8 <example-cc:clipboard label="#{i18n['job-application']}" />
9 <example-cc:sponsorButton />
10 <example-cc:divider />
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
11 <alloy:row>
12 <alloy:column id="c1" width="66">
c6d5605 Neil Griffin Initial checkin
ngriffin7a authored
13 <h:form id="f1">
01ab2c5 Neil Griffin source formatting
ngriffin7a authored
14 <h:messages globalOnly="true" layout="table" />
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
15 <alloy:fieldset id="fs1">
16 <alloy:row>
17 <alloy:column id="c1a" width="50">
18 <alloy:field id="firstNameField" label="#{i18n['first-name']}">
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
19 <h:inputText id="firstName" required="true" value="#{applicantModelBean.firstName}">
20 <f:ajax render="firstNameField" />
21 </h:inputText>
22 <h:message for="firstName" />
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
23 </alloy:field>
24 <alloy:field id="lastNameField" label="#{i18n['last-name']}">
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
25 <h:inputText id="lastName" required="true" value="#{applicantModelBean.lastName}">
26 <f:ajax render="lastNameField" />
27 </h:inputText>
28 <h:message for="lastName" />
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
29 </alloy:field>
30 <alloy:field id="emailAddressField" label="#{i18n['email-address']}">
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
31 <h:inputText id="emailAddress" required="true" validatorMessage="#{i18n['invalid-email-address']}"
32 value="#{applicantModelBean.emailAddress}">
33 <f:validateRegex pattern=".+[@].+[.].+" />
34 <f:ajax render="emailAddressField" />
35 </h:inputText>
36 <h:message for="emailAddress" />
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
37 </alloy:field>
38 <alloy:field id="phoneNumberField" label="#{i18n['phone-number']}">
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
39 <h:inputText id="phoneNumber" required="true" value="#{applicantModelBean.phoneNumber}">
40 <f:ajax render="phoneNumberField" />
41 </h:inputText>
42 <h:message for="phoneNumber" />
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
43 </alloy:field>
44 </alloy:column>
45 <alloy:column id="c1b" width="50">
46 <alloy:field id="dateOfBirthField" label="#{i18n['birthday']}">
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
47 <h:inputText id="dateOfBirth" required="true" value="#{applicantModelBean.dateOfBirth}">
48 <f:convertDateTime pattern="#{portletPreferencesValues['datePattern'][0]}" />
49 <f:ajax render="dateOfBirthField" />
50 </h:inputText>
51 <h:message for="dateOfBirth" />
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
52 </alloy:field>
53 <alloy:field id="cityField" label="#{i18n['city']}">
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
54 <h:inputText id="city" required="true" value="#{applicantModelBean.city}">
55 <f:ajax render="cityField" />
56 </h:inputText>
57 <h:message id="cityMessage" for="city" />
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
58 </alloy:field>
59 <alloy:field id="provinceIdField" label="#{i18n['state-province']}">
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
60 <h:selectOneMenu id="provinceId" required="true" value="#{applicantModelBean.provinceId}">
61 <f:selectItem itemLabel="#{i18n['select']}" itemValue="" />
62 <f:selectItems itemValue="#{province.provinceId}" itemLabel="#{province.provinceName}"
63 value="#{listModelBean.provinces}" var="province" />
64 <f:ajax render="provinceIdField" />
65 </h:selectOneMenu>
66 <h:message id="provinceIdMessage" for="provinceId" />
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
67 </alloy:field>
68 <alloy:field id="postalCodeField" label="#{i18n['zip-postal']}">
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
69 <h:inputText id="postalCode" required="true" style="width: 100px;" value="#{applicantModelBean.postalCode}"
70 valueChangeListener="#{applicantBackingBean.postalCodeListener}">
71 <f:ajax render="cityField provinceIdField postalCodeField" />
72 </h:inputText>
73 <img src="#{resource['example:icon-help.png']}" title="#{i18n['postal-code-hint']}" />
74 <h:message id="postalCodeMessage" for="postalCode" />
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
75 </alloy:field>
76 </alloy:column>
77 </alloy:row>
78 </alloy:fieldset>
79 <alloy:fieldset>
80 <alloy:row>
81 <alloy:column>
82 <alloy:field id="commentsField" label="#{i18n['comments']}">
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
83 <h:panelGroup id="showHide" layout="block">
84 <f:ajax render="commentsField">
85 <h:commandLink actionListener="#{applicantViewBean.toggleComments}"
86 rendered="#{!applicantViewBean.commentsRendered}" value="#{i18n['show']} #{i18n['comments']}" />
87 <h:commandLink actionListener="#{applicantViewBean.toggleComments}"
88 rendered="#{applicantViewBean.commentsRendered}" value="#{i18n['hide']} #{i18n['comments']}" />
89 </f:ajax>
90 </h:panelGroup>
91 <h:inputTextarea id="comments" cols="50" rows="10" rendered="#{applicantViewBean.commentsRendered}"
92 value="#{applicantModelBean.comments}">
93 <f:ajax />
94 </h:inputTextarea>
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
95 </alloy:field>
96 </alloy:column>
97 </alloy:row>
98 </alloy:fieldset>
01ab2c5 Neil Griffin source formatting
ngriffin7a authored
99 <hr />
c6d5605 Neil Griffin Initial checkin
ngriffin7a authored
100 <h:commandButton action="#{applicantBackingBean.submit}" value="#{i18n['submit']}">
01ab2c5 Neil Griffin source formatting
ngriffin7a authored
101 <f:ajax execute="@form" render="@form" />
c6d5605 Neil Griffin Initial checkin
ngriffin7a authored
102 </h:commandButton>
103 <!-- Test 5.4.2 Encoding PortletMode changes in Faces navigation -->
104 <h:commandButton
105 action="/views/portletEditMode.xhtml?javax.portlet.faces.PortletMode=edit&amp;javax.portlet.faces.WindowState=maximized"
01ab2c5 Neil Griffin source formatting
ngriffin7a authored
106 immediate="true" value="#{i18n['edit-preferences']}" />
c6d5605 Neil Griffin Initial checkin
ngriffin7a authored
107 </h:form>
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
108 </alloy:column>
109 <alloy:column id="c2" width="33">
110 <alloy:row>
111 <alloy:column id="c2a" styleClass="uploaded-files">
e3c0148 Neil Griffin FACES-1837 Develop new 4.2.x branch with compatibility for JSF 2.2 + Lif...
ngriffin7a authored
112 <h:form id="f2">
113 <h3>#{i18n['attachments']}</h3>
114 <h:dataTable headerClass="portlet-section-header results-header"
115 rowClasses="portlet-section-body results-row, portlet-section-alternate results-row alt"
116 value="#{applicantModelBean.uploadedFiles}" var="uploadedFile">
117 <h:column>
118 <h:commandButton actionListener="#{applicantBackingBean.deleteUploadedFile}"
119 image="#{resource['example:icon-delete.png']}"
120 onclick="if (! confirm('#{i18n['are-you-sure-you-want-to-delete-this']}')) {return false;}"
121 value="#{uploadedFile.id}">
122 <f:ajax render="@form" />
123 </h:commandButton>
124 </h:column>
125 <h:column>
126 <f:facet name="header">
127 <h:outputText value="#{i18n['file-name']}" />
128 </f:facet>
129 <h:outputText value="#{uploadedFile.name}" />
130 </h:column>
131 <h:column>
132 <f:facet name="header">
133 <h:outputText value="#{i18n['size']}" />
134 </f:facet>
135 <h:outputText value="#{uploadedFile.size}" />
136 </h:column>
137 </h:dataTable>
138 </h:form>
139 <hr />
140 <h:form id="f3" enctype="multipart/form-data">
141 <h:panelGrid columns="1">
142 <bridge:inputFile fileUploadListener="#{applicantBackingBean.handleFileUpload}" multiple="multiple" />
143 </h:panelGrid>
144 <h:commandButton value="#{i18n['submit']}" />
145 </h:form>
9a39eeb Juan G. FACES-1979 Replace aui with alloy in tags and other minor fixes
juangon authored
146 </alloy:column>
147 </alloy:row>
148 </alloy:column>
149 </alloy:row>
c6d5605 Neil Griffin Initial checkin
ngriffin7a authored
150
151 </ui:composition>
Something went wrong with that request. Please try again.