Followups from Ed.<br><br>NG> Hi there again Guys,<br>NG> Section 7.43 of the Spec has an example navigation-handler, which<br>NG> shows how to use the include-view-params feature:<br><br>NG> <redirect><br>
NG> <view-param><br>NG> <name>userId</name><value>someValue</value><br>NG> </view-param><br>NG> <include-view-params>true</include-view-params><br>
NG> </redirect><br><br>NG> However, using <include-view-params> as an XML element is invalid<br>NG> according to web-facesconfig_2_0.xsd<br><br>NG> But then, in section 7.4.2, the Spec talks about the "include-view-<br>
NG> params" attribute on the <redirect /> element, like this:<br><br>NG> <redirect include-view-params="true" /><br><br>NG> The attribute syntax is what the XSD wants, and what Ryan's blog [1])<br>
NG> claims as well.<br><br>I fixed the example to have tha attribute syntax. Thanks.<br><br>NG> Having said that, if the attribute way is the right syntax, then I<br>NG> think there are two problems with it:<br>
<br>NG> 1. Although I prefer attribute-syntax for XML, the faces-config.xml<br>NG> file doesn't use XML attributes anywhere. Instead, it uses the verbose<br>NG> <element>#PCDATA</element> syntax. So having an attribute on<br>
NG> <redirect /> is really inconsistent with the rest of the file.<br><br>NG> 2. it's really inconsistent and weird to have dashes-in-the-name-of-an-<br>NG> xml-attribute. For example, we use camelCase for actionListener:<br>
<br>Your points are well taken, but we did decide on this syntax.<br><br>NG> <h:commandButton actionListener="#{myBean.actionListener}" /><br><br>NG> 3. The functionality/purpose of this include-view-parameters feature<br>
NG> is really confusing. Does it mean:<br>><br>NG> A Include/exclude the f:viewParam stuff found in f:metaData of the<br>NG> from-view-id?<br>NG> B. Include/exclude the <view-param> children of the <redirect> element?<br>
NG> C. Both A & B?<br><br>This is covered in the section 7.5.2 where we talk about getBookmarkableURL().<br><br>Ed<br><br>--<br>| <a href="mailto:ed.burns@sun.com">ed.burns@sun.com</a> | office: 408 884 9519 OR x31640<br>
| homepage: | <a href="http://ridingthecrest.com/">http://ridingthecrest.com/</a><br>