users@glassfish.java.net

Re: JSF bug in Glassfish 3.1?

From: <glassfish_at_javadesktop.org>
Date: Thu, 21 Oct 2010 07:11:29 PDT

Yes I am seeing the same type of issue on the page itself on a simple page.

<?xml version="1.0" encoding="UTF-8"?>
<!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">
   <f:metadata>
      <f:viewParam name="q" value="#{quizBean.currentProblem}"/>
   </f:metadata>
   <h:head>
      <title>#{msgs.title}</title>
   </h:head>
   <h:body>
      <h:form>
         <p>#{quizBean.question}</p>
         <p><h:inputText value="#{quizBean.response}"/></p>
         <p><h:commandButton value="#{msgs.checkAnswer}"
         action="#{quizBean.answerAction}"/></p>
         <p><h:link outcome="#{quizBean.skipOutcome}" value="Skip">
            <f:param name="q" value="#{quizBean.currentProblem + 1}"/>
         </h:link>
         </p>
      </h:form>
   </h:body>
</html>

"The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form>"

The page renders, but the message appears incorrectly.

I attached a WAR the clearly demonstrates the issue.

I have also filed a bug.
[Message sent by forum member 'russwyte']

http://forums.java.net/jive/thread.jspa?messageID=485857