Skip to content

Commit 162b77f

Browse files
committed
Added documentation for new JSF converter support
1 parent 09ebf42 commit 162b77f

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

‎docs/src/main/docbook/en-US/config/Path_parameters.xml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@ public class CategoryBean {
113113
}</programlisting>
114114

115115
</para>
116+
117+
<para>
118+
Please note that PrettyFaces will automatically use the JSF converter registered for the type of
119+
the referenced bean property to convert the path parameter. This means that
120+
PrettyFaces supports all JSF standard converters and converters that have been manually registered
121+
to be used for a specific type using the <code>converter-for-class</code> element in the
122+
<code>faces-config.xml</code> (or the <code>forClass</code> attribute of the
123+
<code>@FacesConverter</code> annotation).
124+
</para>
116125

117126
<tip>
118127
<para>
@@ -122,9 +131,6 @@ public class CategoryBean {
122131
</para>
123132
</tip>
124133

125-
<para>
126-
127-
</para>
128134
</section>
129135

130136
<section id="config.pathparams.regex">

‎docs/src/main/docbook/en-US/config/Query_parameters.xml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ public class LanguageBean {
4444
/* Getters + Setters */
4545
}</programlisting>
4646
</para>
47+
<para>
48+
Please note that PrettyFaces will automatically use the JSF converter registered for the type of
49+
the referenced bean property to convert the query parameter. This means that
50+
PrettyFaces supports all JSF standard converters and converters that have been manually registered
51+
to be used for a specific type using the <code>converter-for-class</code> element in the
52+
<code>faces-config.xml</code> (or the <code>forClass</code> attribute of the
53+
<code>@FacesConverter</code> annotation).
54+
</para>
4755
<tip>
4856
<para>
4957
By default, query-parameters are URL-decoded. If this is not desired, URL-decoding may be

0 commit comments

Comments
 (0)