did your URL have ?type=mytypevalue
?
What you have looks correct.
2009/12/24 Felipe Gaúcho <fgaucho_at_gmail.com>:
> Typo: metaData -> metadata
>
> it loaded but didn't showed the type:
>
> <!DOCTYPE html
> PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:f="http://java.sun.com/jsf/core"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:ui="http://java.sun.com/jsf/facelets" xml:lang="en" lang="en"
> xmlns:c="http://java.sun.com/jstl/core">
> <head>
> </head>
> <body>
> <ui:composition template="/template/template.xhtml">
> <f:metadata>
> <f:viewParam name="type" value="#{headlines.type}" />
> </f:metadata>
>
> <ui:define name="central-pane">
> <p>#{headlines.type}</p>
> </ui:define>
> </ui:composition>
> </body>
> </html>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>