Modified:
/prettyfaces/trunk/docs/src/main/docbook/en-US/Rewriting_outbound.xml
=======================================
--- /prettyfaces/trunk/docs/src/main/docbook/en-US/Rewriting_outbound.xml
Wed Oct 6 07:50:31 2010
+++ /prettyfaces/trunk/docs/src/main/docbook/en-US/Rewriting_outbound.xml
Thu Nov 11 07:17:25 2010
@@ -39,7 +39,8 @@
Notice that even though we did not define a <link
linkend="config.queryparams">managed
query-parameter</link>, the resulting URL still contains the 'lang'
parameter. This is
because PrettyFaces only rewrites the <link
linkend="config.pathparams.named">named
- path-parameters</link> defined in the URL-pattern; all other
query-parameters are ignored.
+ path-parameters</link> defined in the URL-pattern; all other
query-parameters are simply
+ left unchanged.
</para>
</section>
@@ -76,8 +77,25 @@
Notice that even though we did not define a <link
linkend="config.queryparams">managed
query-parameter</link>, the resulting URL still contains the 'lang'
parameter. This is
because PrettyFaces only rewrites the <link
linkend="config.pathparams.named">named
- path-parameters</link> defined in the URL-pattern; all other
query-parameters are ignored.
+ path-parameters</link> defined in the URL-pattern; all other
query-parameters are simply
+ left unchanged.
</para>
+
+ <tip>
+ <para>
+ Notice that all <code><f:param name="" value=""></code>
elements contain
+ both a name and a value attribute. These are required, since
(unlike the <code>
+ <pretty:link></code> component,)
<code><h:link></code> does not
+ accept un-named parameters, even when passing a
<code>"pretty:mappingId"</code>
+ as the outcome.
+ </para>
+ <para>
+ This is due to the fact that PrettyFaces integration occurs
**after** the
+ original URL has already been rendered by the
<code><h:link></code>
+ component, intercepting the URL at the <link
linkend="java">externalContext.encodeRedirectURL</link>
+ step, explained above (in the section "<link
linkend="java">Rewriting URLs in Java</link>".)
+ </para>
+ </tip>
</section>
<section id="disabling">