webtier@glassfish.java.net

Re: [webtier] how to extract URL parameters?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Thu, 24 Dec 2009 13:18:53 +0100

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>