Skip to main content
summaryrefslogtreecommitdiffstats
blob: aed958f9636c85e9bc37d552f710b1477b998bb3 (plain) (blame)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<?xml version="1.0" encoding="UTF-8" ?>
<cheatsheet title="Faces Configuration Editor">

	<intro
		href="/org.eclipse.platform.doc.user/reference/ref-cheatsheets.htm">
		<description>
			This cheat sheet will demonstrate how to edit a JSF
			configuration file with Faces Config Editor.
			<br />
			<br />
			To learn more about using cheat sheets, click the help
			button in the top right corner (?).
		</description>
	</intro>

	<!-- Item -->

	<item title="Open the J2EE perspective"
		href="/org.eclipse.jst.j2ee.doc.user/topics/cjpers.html"
		dialog="false" skip="true">
		<description>
			To open the J2EE perspective, select
			<b>Window-&gt;Open Perspective-&gt;Other...</b>
			and choose
			<b>J2EE</b>
			.
			<br />
			<br />
			Alternatively, click the following button to perform the
			task.
		</description>
		<command
			serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.jst.j2ee.J2EEPerspective)" />
	</item>

	<!-- Item -->

	<item title="Create the JSF web project"
		href="/org.eclipse.jst.jsf.doc.user/html/tasks/create_jsf_app.html"
		dialog="true" skip="false">
		<description>
			To create the JSF web application perform the following
			steps
		</description>
		<subitem
			label="Select &quot;File-&gt;New-&gt;Project...&quot; from the main menu and choose &quot;Dynamic Web Project&quot; from the resulting &quot;New Project&quot; dialog box"
			skip="false">
			<command
				serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard)" />
		</subitem>
		<subitem
			label="Input &quot;JSFApplication&quot; into the &quot;Project Name&quot; text box"
			skip="false" />
		<subitem
			label="Select &quot;JavaServer Faces v1.1 Project&quot; in the &quot;Configurations&quot; dropdown box"
			skip="false" />
		<subitem
			label="Accept the rest of the default preloaded values on the &quot;Dynamic Web Project&quot; page and click &quot;Next&quot;"
			skip="false" />
		<subitem
			label="Accept the rest of the default preloaded values on the &quot;Project Facets&quot; page and click &quot;Next&quot;"
			skip="false" />
		<subitem
			label="Accept the rest of the default preloaded values on the &quot;Web Module&quot; page and click &quot;Next&quot;"
			skip="false" />
		<subitem
			label="Specify JSF Facet Settings on the &quot;JSF Capabilities&quot; page and click &quot;Finish&quot;"
			skip="false" />
	</item>

	<item title="Open the JSF configuration file"
		href="/org.eclipse.jst.jsf.doc.user/html/tasks/use_facesconfig_editor.html"
		dialog="true" skip="false">
		<description>
			To open the JSF configuration file, Expand the
			WebContent/WEB-INF/ folder in the &quot;Project
			Explorer&quot; view; Double click on the
			&quot;faces-config.xml&quot; file to open it. Or right click
			on it then select &quot;Open With&quot; -> &quot;FacesConfig
			Editor&quot;
		</description>
		<subitem
			label="Expand the /JSFApplication/WebContent/WEB-INF/ folder in the &quot;Project Explorer&quot; view; "
			skip="true">
		</subitem>
		<subitem
			label="Double click on the &quot;faces-config.xml&quot; file to open it.
			Or right click on it then select &quot;Open With&quot; -> &quot;FacesConfig Editor&quot;"
			skip="false">
			<command
				serialization="org.eclipse.ui.navigate.openResource(filePath=JSFApplication/WebContent/WEB-INF/faces-config.xml)" />
		</subitem>
	</item>


	<item href=" " title="Get an introduction on the FacesConfig Editor"
		dialog="false" skip="true">
		<description>
			On the &quot;Introduction &quot; page, there are some
			introductions about the FacesConfig Editor, and some links
			to start work with it, or show user the tutorial and help
			documentation.
		</description>
	</item>


	<item href=" " title="Get an overview of the content" dialog="false"
		skip="true">
		<description>
			On the &quot;Overview &quot; page, there are several tables
			that list the main elements defined in the current faces
			config file. By double-clicking on an element, user could be
			guided to the corresponding page to edit it.
		</description>
	</item>

	<item
		href="/org.eclipse.jst.jsf.doc.user/html/tasks/define_navigations.html"
		title="Create a Navigation Rule">
		<description>
			To create a navigation rule perform the following steps
		</description>
		<subitem
			label="Use the JSP Page wizard to create a page called &quot; login.jsp &quot; in the Web Content folder of the new application. 
			In the Select Templates page of the wizard, select the &quot;New JSP(html) &quot; template. Click Finish."
			skip="false">
			<command
				serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.jst.jsp.ui.internal.wizard.NewJSPWizard)" />
		</subitem>
		<subitem
			label="In the same way, create a page called &quot;welcome.jsp &quot; ."
			skip="false">
			<command
				serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.jst.jsp.ui.internal.wizard.NewJSPWizard)" />
		</subitem>
		<subitem
			label="Select the &quot;Page&quot; control from the &quot;Palette&quot; and drop it on the &quot;Navigation&quot; tab. 
			Choose the page in the resulting &quot;Select JSP File&quot; dialog. "
			skip="false" />
		<subitem
			label="Connect the two pages. Click on the &quot;Link&quot; control in the &quot;Palette&quot;, select the &quot;login&quot; page and draw a line to the &quot;welcome&quot; page. 
			Select the line in the &quot;Navigation&quot; tab and in the property view, set the value of the &quot;from-outcome&quot; to &quot;login&quot; . "
			skip="false" />
		<subitem
			label="Swith to the &quot;Source&quot; page, will find that there is a navigation-rule element created."
			skip="false" />
	</item>

	<item
		href="/org.eclipse.jst.jsf.doc.user/html/tasks/create_managedbean.html"
		title="Create a Managed Bean">
		<description>
			To create a managed bean perform the following steps
		</description>
		<subitem
			label="Switch to the &quot;ManagedBean&quot; page; click the &quot;New&quot; button, the new managed bean wizard pops up."
			skip="false" />
		<subitem
			label="On the &quot;Java Class Selection&quot; page, choose &quot;Create a new Java class&quot;, then click &quot;Next&quot;."
			skip="false" />
		<subitem
			label="On the &quot;Java Class&quot; page, input &quot;com.tutorial&quot; into the &quot;Package&quot; field and input &quot;LoginBean&quot; into the &quot;Name&quot; field, 
			then click &quot;Next&quot; to the next page."
			skip="false" />
		<subitem
			label="On the &quot;Managed Bean Configuration&quot; page, accept the default values and click &quot;Finish&quot; to finish this wizard."
			skip="false" />
		<subitem
			label="Swith to the &quot;Source&quot; page, will find that there is a managed-bean element created."
			skip="true" />
	</item>

	<item
		href="/org.eclipse.jst.jsf.doc.user/html/tasks/facesconfig_ui/add_component.html"
		title="Create a Component">
		<description>
			To create a component perform the following steps
		</description>
		<subitem
			label="Switch to the &quot;Component&quot; page; expand the &quot;Components&quot; section; "
			skip="false" />
		<subitem
			label="Click the &quot;New&quot; button, a new empty component element is created."
			skip="false" />
		<subitem
			label="On the right part, fill in the essential fields for this component, for example &quot;Component Type&quot;, &quot;Component Class&quot;."
			skip="false" />
		<subitem
			label="Swith to the &quot;Source&quot; page, will find that there is a component element created."
			skip="false" />
	</item>


	<item
		href="/org.eclipse.jst.jsf.doc.user/html/tasks/facesconfig_ui/add_converter.html"
		title="Create a Converter">
		<description>
			To create a converter perform the following steps
		</description>
		<subitem
			label="Switch to the &quot;Component&quot; page; expand the &quot;Converters&quot; section; "
			skip="false" />
		<subitem
			label="Click the &quot;New&quot; button, a new empty converter element is created."
			skip="false" />
		<subitem
			label="On the right part, fill in the essential fields for this converter, for example &quot;Converter ID&quot;, &quot;Converter Class&quot;."
			skip="false" />
		<subitem
			label="Swith to the &quot;Source&quot; page, will find that there is a converter element created."
			skip="false" />
	</item>

	<item
		href="/org.eclipse.jst.jsf.doc.user/html/tasks/facesconfig_ui/add_renderkit.html"
		title="Create a Render Kit">
		<description>
			To create a render-kit perform the following steps
		</description>
		<subitem
			label="Switch to the &quot;Component&quot; page; expand the &quot;RenderKits&quot; section; "
			skip="false" />
		<subitem
			label="Click the &quot;New&quot; button, a new empty render-kit element is created."
			skip="false" />
		<subitem
			label="On the right part, fill in the essential fields for this converter, for example &quot;Renderkit ID&quot;, &quot;Renderkit Class&quot;."
			skip="false" />
		<subitem
			label="Swith to the &quot;Source&quot; page, will find that there is a render-kit element created."
			skip="false" />
	</item>

	<item
		href="/org.eclipse.jst.jsf.doc.user/html/tasks/facesconfig_ui/add_validator.html"
		title="Create a Validator">
		<description>
			To create a validator perform the following steps
		</description>
		<subitem
			label="Switch to the &quot;Component&quot; page; expand the &quot;Validators&quot; section; "
			skip="false" />
		<subitem
			label="Click the &quot;New&quot; button, a new empty validator element is created."
			skip="false" />
		<subitem
			label="On the right part, fill in the essential fields for this converter, for example &quot;Validator ID&quot;, &quot;Validator Class&quot;."
			skip="false" />
		<subitem
			label="Swith to the &quot;Source&quot; page, will find that there is a validator element created."
			skip="false" />
	</item>

	<item
		href="/org.eclipse.jst.jsf.doc.user/html/tasks/use_facesconfig_editor.html"
		title="Editing other elements on the Others Page">
		<description>
			On the &quot;Others&quot; page, there are several sections
			for editing the elements such as
			&quot;action-listener&quot;, &quot;locale-config&quot;, and
			so on.
		</description>
	</item>

	<item title="Source Page">
		<description>
		   The &quot;Source&quot; page is a embeded XML editor, user can edit the xml source of faces config directly here.
		</description>
	</item>

	<item title="Completion">
		<description>
			Congratulations, you should now be able to use this editor fluently.
		</description>
	</item>
</cheatsheet>

Back to the top