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

Commit 21057a1

Browse files
fix table format
1 parent 3dad30d commit 21057a1

File tree

7 files changed

+66
-79
lines changed

7 files changed

+66
-79
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Value and Method Expressions
44
next=jsf-el004.html
55
prev=jsf-el002.html
66
~~~~~~
7-
Value and Method Expressions
8-
============================
7+
= Value and Method Expressions
8+
99

1010
[[BNAHU]]
1111

@@ -415,7 +415,7 @@ For basic information on lambda expressions, see
415415
[width="100%",cols="100%",]
416416
|=======================================================================
417417
a|
418-
Note:
418+
*Note*:
419419

420420
Lambda expressions are part of Java SE 8, but you can use them in EL
421421
expressions with Java SE 7, the Java version associated with the Java EE
@@ -458,5 +458,3 @@ v = (x, y) -> x + y; v(3, 4)
458458
A lambda expression can also be passed as an argument to a method and be
459459
invoked in the method. It can also be nested in another lambda
460460
expression.
461-
462-

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Examples of EL Expressions
44
next=jsf-el008.html
55
prev=jsf-el006.html
66
~~~~~~
7-
Examples of EL Expressions
8-
==========================
7+
= Examples of EL Expressions
8+
99

1010
[[BNAIM]]
1111

@@ -18,11 +18,11 @@ evaluating them.
1818

1919
[[sthref39]][[BNAIN]]
2020

21-
Table 9-1 Example Expressions
21+
*Table 9-1 Example Expressions*
2222

23-
[width="45%",cols=",100%",options="header",]
23+
[width="80%",cols="40%,40%"]
2424
|=======================================================================
25-
|EL Expression |Result
25+
|*EL Expression*|*Result*
2626
|`${1> (4/2)}` |`false`
2727

2828
|`${4.0>= 3}` |`true`
@@ -81,6 +81,3 @@ during a postback
8181
|`#{customer.calcTotal}` |The return value of the method `calcTotal` of
8282
the `customer` bean
8383
|=======================================================================
84-
85-
86-

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Further Information about the Expression Language
44
next=jsf-page.html
55
prev=jsf-el007.html
66
~~~~~~
7-
Further Information about the Expression Language
8-
=================================================
7+
= Further Information about the Expression Language
8+
99

1010
[[CIHGBBHA]]
1111

@@ -20,6 +20,4 @@ For more information about the EL, see
2020
`http://www.jcp.org/en/jsr/detail?id=341`
2121
* The EL specification website:
2222
+
23-
`https://java.net/projects/el-spec/`
24-
25-
23+
`https://github.com/javaee/el-spec`

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

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Using Facelets Templates
44
next=jsf-facelets005.html
55
prev=jsf-facelets003.html
66
~~~~~~
7-
Using Facelets Templates
8-
========================
7+
= Using Facelets Templates
8+
99

1010
[[GIQXP]]
1111

@@ -26,11 +26,11 @@ and their respective functionality.
2626

2727
[[sthref30]][[GJBFP]]
2828

29-
Table 8-2 Facelets Templating Tags
29+
*Table 8-2 Facelets Templating Tags*
3030

31-
[width="22%",cols="100%,",options="header",]
31+
[width="99%",cols="20%,80%"]
3232
|=======================================================================
33-
|Tag |Function
33+
|*Tag*|*Function*
3434
|`ui:component` |Defines a component that is created and added to the
3535
component tree.
3636

@@ -74,20 +74,20 @@ Here is an example of a template saved as `template.xhtml`:
7474

7575
[source,oac_no_warn]
7676
----
77-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
77+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
7878
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7979
<html xmlns="http://www.w3.org/1999/xhtml"
8080
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
8181
xmlns:h="http://xmlns.jcp.org/jsf/html">
82-
82+
8383
<h:head>
84-
<meta http-equiv="Content-Type"
84+
<meta http-equiv="Content-Type"
8585
content="text/html; charset=UTF-8" />
8686
<h:outputStylesheet library="css" name="default.css"/>
8787
<h:outputStylesheet library="css" name="cssLayout.css"/>
8888
<title>Facelets Template</title>
8989
</h:head>
90-
90+
9191
<h:body>
9292
<div id="top" class="top">
9393
<ui:insert name="top">Top Section</ui:insert>
@@ -117,12 +117,12 @@ the `ui:define` tag.
117117

118118
[source,oac_no_warn]
119119
----
120-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
120+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
121121
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
122122
<html xmlns="http://www.w3.org/1999/xhtml"
123123
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
124124
xmlns:h="http://xmlns.jcp.org/jsf/html">
125-
125+
126126
<h:body>
127127
<ui:composition template="./template.xhtml">
128128
<ui:define name="top">
@@ -145,5 +145,3 @@ the `ui:define` tag.
145145
You can use NetBeans IDE to create Facelets template and client pages.
146146
For more information on creating these pages, see
147147
`https://netbeans.org/kb/docs/web/jsf20-intro.html`.
148-
149-

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Composite Components
44
next=jsf-facelets006.html
55
prev=jsf-facelets004.html
66
~~~~~~
7-
Composite Components
8-
====================
7+
= Composite Components
8+
99

1010
[[GIQZR]]
1111

@@ -38,11 +38,11 @@ their functions.
3838

3939
[[sthref31]][[GJCWC]]
4040

41-
Table 8-3 Composite Component Tags
41+
*Table 8-3 Composite Component Tags*
4242

43-
[width="39%",cols="100%,",options="header",]
43+
[width="99%",cols="20%,80%"]
4444
|=======================================================================
45-
|Tag |Function
45+
|*Tag*|*Function*
4646
|`composite:interface` |Declares the usage contract for a composite
4747
component. The composite component can be used as a single component
4848
whose feature set is the union of the features declared in the usage
@@ -159,5 +159,3 @@ http://localhost:8080/application-name/emuserpage.xhtml
159159

160160
See link:jsf-advanced-cc.html#GKHXA[Chapter 14, "Composite Components:
161161
Advanced Topics and an Example,"] for more information and an example.
162-
163-

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

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=HTML5-Friendly Markup
44
next=jsf-el.html
55
prev=jsf-facelets008.html
66
~~~~~~
7-
HTML5-Friendly Markup
8-
=====================
7+
= HTML5-Friendly Markup
8+
99

1010
[[BABGECCJ]]
1111

@@ -73,11 +73,11 @@ interprets the markup that the page author has written.
7373

7474
[[sthref34]][[BABJADGH]]
7575

76-
Table 8-4 How Facelets Renders HTML5 Elements
76+
*Table 8-4 How Facelets Renders HTML5 Elements*
7777

78-
[width="66%",cols=",50%,50%",options="header",]
78+
[width="90%",cols="30%,30%,30%" ]
7979
|=======================================================
80-
|HTML5 Element Name |Identifying Attribute |Facelets Tag
80+
|*HTML5 Element Name*|*Identifying Attribute*|*Facelets Tag*
8181
|`a` |`jsf:action` |`h:commandLink`
8282
|`a` |`jsf:actionListener` |`h:commandLink`
8383
|`a` |`jsf:value` |`h:outputLink`
@@ -141,10 +141,10 @@ attributes through to the HTML5 `input` component:
141141
----
142142
<html ... xmlns:p="http://xmlns.jcp.org/jsf/passthrough"
143143
...
144-
144+
145145
<h:form prependId="false">
146-
<h:inputText id="nights" p:type="number" value="#{bean.nights}"
147-
p:min="1" p:max="30" p:required="required"
146+
<h:inputText id="nights" p:type="number" value="#{bean.nights}"
147+
p:min="1" p:max="30" p:required="required"
148148
p:title="Enter a number between 1 and 30 inclusive.">
149149
...
150150
----
@@ -155,7 +155,7 @@ This will cause the following markup to be rendered (assuming that
155155
[source,oac_no_warn]
156156
----
157157
<input id="nights" type="number" value="1" min="1" max="30"
158-
required="required"
158+
required="required"
159159
title="Enter a number between 1 and 30 inclusive.">
160160
----
161161
* To pass a single attribute, nest the `f:passThroughAttribute` tag
@@ -199,7 +199,7 @@ public Bean() {
199199
this.nameValuePairs.put("min", "1");
200200
this.nameValuePairs.put("max", "30");
201201
this.nameValuePairs.put("required", "required");
202-
this.nameValuePairs.put("title",
202+
this.nameValuePairs.put("title",
203203
"Enter a number between 1 and 4 inclusive.");
204204
}
205205
----
@@ -279,7 +279,7 @@ element a pass-through one:
279279

280280
[source,oac_no_warn]
281281
----
282-
<input type="date" jsf:id="date" name="date"
282+
<input type="date" jsf:id="date" name="date"
283283
value="#{reservationBean.date}" required="required"
284284
title="Enter or choose a date."/>
285285
----
@@ -293,7 +293,7 @@ field:
293293
----
294294
<h:inputText id="tickets" value="#{reservationBean.tickets}">
295295
<f:passThroughAttributes value="#{reservationBean.ticketAttrs}"/>
296-
<f:ajax event="change" render="total"
296+
<f:ajax event="change" render="total"
297297
listener="#{reservationBean.calculateTotal}"/>
298298
</h:inputText>
299299
----
@@ -305,12 +305,12 @@ to the browser uninterpreted by the JavaServer Faces input component:
305305

306306
[source,oac_no_warn]
307307
----
308-
<h:inputText id="price" p:type="number"
309-
value="#{reservationBean.price}"
308+
<h:inputText id="price" p:type="number"
309+
value="#{reservationBean.price}"
310310
p:min="80" p:max="120"
311-
p:step="20" p:required="required"
311+
p:step="20" p:required="required"
312312
p:title="Enter a price: 80, 100, 120, or 140.">
313-
<f:ajax event="change" render="total"
313+
<f:ajax event="change" render="total"
314314
listener="#{reservationBean.calculateTotal}"/>
315315
</h:inputText>
316316
----
@@ -423,5 +423,3 @@ restore the fields to their default values.
423423
appears, displaying the submitted values.
424424
+
425425
Click Back to return to the `reservation.xhtml` page.
426-
427-

0 commit comments

Comments
 (0)