Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 0d6d95b

Browse files
fix table formats
1 parent 0072c3d commit 0d6d95b

File tree

6 files changed

+34
-45
lines changed

6 files changed

+34
-45
lines changed

src/main/jbake/content/jsf-advanced-cc004.adoc

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=The compositecomponentexample Example Application
44
next=jsf-custom.html
55
prev=jsf-advanced-cc003.html
66
~~~~~~
7-
The compositecomponentexample Example Application
8-
=================================================
7+
= The compositecomponentexample Example Application
8+
99

1010
[[GKHVN]]
1111

@@ -47,7 +47,7 @@ also declares a managed bean, which defines properties for the name.
4747
[source,oac_no_warn]
4848
----
4949
<composite:interface>
50-
<composite:attribute name="namePrompt"
50+
<composite:attribute name="namePrompt"
5151
default="Name, word, or phrase: "/>
5252
<composite:attribute name="calcButtonText" default="Calculate"/>
5353
<composite:attribute name="calcAction"
@@ -69,24 +69,24 @@ prime or not is rendered only if the input value is validated.
6969
----
7070
<composite:implementation>
7171
<h:form id="form">
72-
<h:outputStylesheet library="css" name="default.css"
72+
<h:outputStylesheet library="css" name="default.css"
7373
target="head"/>
7474
<h:panelGrid columns="2" role="presentation">
7575
<h:outputLabel for="name"
7676
value="#{cc.attrs.namePrompt}"/>
7777
<h:inputText id="name"
7878
size="45"
79-
value="#{cc.attrs.primeBean.name}"
79+
value="#{cc.attrs.primeBean.name}"
8080
required="true"/>
81-
</h:panelGrid>
81+
</h:panelGrid>
8282
<p>
83-
<h:commandButton id="calcButton"
83+
<h:commandButton id="calcButton"
8484
value="#{cc.attrs.calcButtonText}"
8585
action="#{cc.attrs.calcAction}">
8686
<f:ajax execute="name" render="outputGroup"/>
8787
</h:commandButton>
8888
</p>
89-
89+
9090
<h:panelGroup id="outputGroup" layout="block">
9191
<p>
9292
<h:outputText id="result" style="color:blue"
@@ -97,13 +97,13 @@ prime or not is rendered only if the input value is validated.
9797
<h:outputText id="response" style="color:blue"
9898
value="#{cc.attrs.primeBean.response}"
9999
rendered="#{!facesContext.validationFailed}"/>
100-
<h:message id="errors1"
101-
showSummary="true"
100+
<h:message id="errors1"
101+
showSummary="true"
102102
showDetail="false"
103103
style="color: #d20005;
104104
font-family: 'New Century Schoolbook', serif;
105105
font-style: oblique;
106-
text-decoration: overline"
106+
text-decoration: overline"
107107
for="name"/>
108108
</p>
109109
</h:panelGroup>
@@ -124,7 +124,7 @@ along with the managed bean. It validates the user's input.
124124
[source,oac_no_warn]
125125
----
126126
<div id="compositecomponent">
127-
<ez:PrimePanel primeBean="#{primeBean}"
127+
<ez:PrimePanel primeBean="#{primeBean}"
128128
calcAction="#{primeBean.calculate}">
129129
</ez:PrimePanel>
130130
</div>
@@ -186,8 +186,7 @@ compositecomponentexample Example Using Maven]
186186
[[GKHVC]]
187187

188188
[[to-build-package-and-deploy-the-compositecomponentexample-example-using-netbeans-ide]]
189-
To Build, Package, and Deploy the compositecomponentexample Example
190-
Using NetBeans IDE
189+
To Build, Package, and Deploy the compositecomponentexample Example Using NetBeans IDE
191190
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
192191

193192
1. Make sure that GlassFish Server has been started (see
@@ -210,8 +209,7 @@ This command builds and deploys the application.
210209
[[GLEAE]]
211210

212211
[[to-build-package-and-deploy-the-compositecomponentexample-example-using-maven]]
213-
To Build, Package, and Deploy the compositecomponentexample Example
214-
Using Maven
212+
To Build, Package, and Deploy the compositecomponentexample Example Using Maven
215213
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
216214

217215
1. Make sure that GlassFish Server has been started (see
@@ -248,5 +246,3 @@ phrase field, then click Calculate.
248246
The page reports the sum of the letters and whether the sum is prime. A
249247
validation error is reported if no value is entered or if the string
250248
contains more than 45 characters.
251-
252-

src/main/jbake/content/jsf-ajax004.adoc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ request using some of these attributes.
2626
[width="100%",cols="100%",]
2727
|=======================================================================
2828
a|
29-
Note:
29+
*Note*:
3030

3131
Behind the scenes, the `jsf.ajax.request()` method of the JavaScript
3232
resource library collects the data provided by the `f:ajax` tag and
@@ -63,7 +63,7 @@ mouse click:
6363

6464
[source,oac_no_warn]
6565
----
66-
<h:commandButton id="submit" value="Submit">
66+
<h:commandButton id="submit" value="Submit">
6767
<f:ajax event="click" />
6868
</h:commandButton>
6969
<h:outputText id="result" value="#{userNumberBean.response}" />
@@ -109,12 +109,12 @@ The following code specifies that the `h:inputText` component with the
109109

110110
[source,oac_no_warn]
111111
----
112-
<h:inputText id="userNo"
112+
<h:inputText id="userNo"
113113
title="Type a number from 0 to 10:"
114114
value="#{userNumberBean.userNumber}">
115115
...
116116
</h:inputText>
117-
<h:commandButton id="submit" value="Submit">
117+
<h:commandButton id="submit" value="Submit">
118118
<f:ajax event="click" execute="userNo" />
119119
</h:commandButton>
120120
----
@@ -150,12 +150,10 @@ tag, which refers to a method from the bean:
150150

151151
[source,oac_no_warn]
152152
----
153-
<f:ajax event="change" render="total"
153+
<f:ajax event="change" render="total"
154154
listener="#{reservationBean.calculateTotal}"/>
155155
----
156156

157157
Whenever either the price or the number of tickets ordered changes, the
158158
`calculateTotal` method of `ReservationBean` recalculates the total cost
159159
of the tickets and displays it in the output component named `total`.
160-
161-

src/main/jbake/content/jsf-ajax011.adoc

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=The ajaxguessnumber Example Application
44
next=jsf-ajax012.html
55
prev=jsf-ajax010.html
66
~~~~~~
7-
The ajaxguessnumber Example Application
8-
=======================================
7+
= The ajaxguessnumber Example Application
8+
99

1010
[[GKOKB]]
1111

@@ -68,7 +68,7 @@ the same as the `greeting.xhtml` page for the `guessnumber` application:
6868
Can you guess it?
6969
</h2>
7070
<p>
71-
<h:inputText id="userNo"
71+
<h:inputText id="userNo"
7272
title="Enter a number from 0 to 10:"
7373
value="#{userNumberBean.userNumber}">
7474
<f:validateLongRange minimum="#{dukesNumberBean.minimum}"
@@ -84,13 +84,13 @@ the same as the `greeting.xhtml` page for the `guessnumber` application:
8484
<h:outputText id="result" style="color:blue"
8585
value="#{userNumberBean.response}"
8686
rendered="#{!facesContext.validationFailed}"/>
87-
<h:message id="errors1"
88-
showSummary="true"
87+
<h:message id="errors1"
88+
showSummary="true"
8989
showDetail="false"
9090
style="color: #d20005;
9191
font-family: 'New Century Schoolbook', serif;
9292
font-style: oblique;
93-
text-decoration: overline"
93+
text-decoration: overline"
9494
for="userNo"/>
9595
</h:panelGroup>
9696
</p>
@@ -174,8 +174,7 @@ Using Maven]
174174
[[GLHVU]]
175175

176176
[[to-build-package-and-deploy-the-ajaxguessnumber-example-using-netbeans-ide]]
177-
To Build, Package, and Deploy the ajaxguessnumber Example Using NetBeans
178-
IDE
177+
To Build, Package, and Deploy the ajaxguessnumber Example Using NetBeans IDE
179178
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
180179

181180
1. Make sure that GlassFish Server has been started (see
@@ -238,5 +237,3 @@ http://localhost:8080/ajaxguessnumber
238237
If the value is in the range of 0 to 10, a message states whether the
239238
guess is correct or incorrect. If the value is outside that range or if
240239
the value is not a number, an error message appears in red.
241-
242-

src/main/jbake/content/jsf-develop001.adoc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Managed Beans in JavaServer Faces Technology
44
next=jsf-develop002.html
55
prev=jsf-develop.html
66
~~~~~~
7-
Managed Beans in JavaServer Faces Technology
8-
============================================
7+
= Managed Beans in JavaServer Faces Technology
8+
99

1010
[[BNAQM]]
1111

@@ -22,7 +22,7 @@ configuring, and using managed beans in an application.
2222
[width="100%",cols="100%",]
2323
|=======================================================================
2424
a|
25-
Note:
25+
*Note*:
2626

2727
link:jsf-page.html#BNAQZ[Chapter 10, "Using JavaServer Faces Technology
2828
in Web Pages"] and link:jsf-page-core.html#GJCUT[Chapter 11, "Using
@@ -139,9 +139,9 @@ references a method that validates user input:
139139

140140
[source,oac_no_warn]
141141
----
142-
<h:inputText id="inputGuess"
143-
value="#{userNumberBean.userNumber}"
144-
required="true" size="3"
142+
<h:inputText id="inputGuess"
143+
value="#{userNumberBean.userNumber}"
144+
required="true" size="3"
145145
disabled="#{userNumberBean.number eq userNumberBean.userNumber ...}"
146146
validator="#{userNumberBean.validateNumberRange}">
147147
</h:inputText>
@@ -182,5 +182,3 @@ For information on the EL, see link:jsf-el.html#GJDDD[Chapter 9,
182182

183183
For information on referencing managed bean methods from component tags,
184184
see link:jsf-page-core004.html#BNATN[Referencing a Managed Bean Method].
185-
186-

src/main/jbake/content/jsf-develop002.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public void setTitle(String title) {
248248
}
249249
----
250250

251-
The UIData component (and UIRepeat) supports the Map and Iterable
251+
The UIData component (and UIRepeat) supports the `Map` and `Iterable`
252252
interfaces, as well as custom types.
253253

254254
For UIData and UIRepeat, the supported types are:

src/main/jbake/content/jsf-el003.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ lifecycle, method expressions must always use the deferred evaluation
366366
syntax.
367367

368368
Like lvalue expressions, method expressions can use the `.` and the `[]`
369-
operators. For example, #`{object.method}` is equivalent to
369+
operators. For example, `#{object.method}` is equivalent to
370370
#`{object["method"]}`. The literal inside the `[]` is converted to
371371
`String` and is used to find the name of the method that matches it.
372372

0 commit comments

Comments
 (0)