It might be a bit ambiguous though, no? Another solution would be to set
columns="3" and assume that all input would have a message defined this way. The
resulting look would not be the same however as this solution align the messages rather
than place them right after the input. Maybe by adding "right after the input"
and offer both solution in the choice, making it a trap question.
~ Simon
________________________________
From: jsr-314-open-bounces(a)jcp.org on behalf of David Geary
Sent: Wed 12/16/2009 11:24 AM
To: Ed Burns; jsr-314-open(a)jcp.org
Subject: Re: [jsr-314-open] [ADMIN] Sun Certified JSF Developer ExamQuestions (was:Re:
Where's Ed Burns this week?)
Okay, Ed,
java.net <
http://java.net/> is still down, so here's a question:
<h:form>
<h:panelGrid columns="2">
Name:
<h:inputText id="name" value="#{...}"/>
<h:message for="name"/>
...
</h:panelGrid>
</h:form>
In the preceeding markup, any error messages for the name input will be displayed
underneath the Name: prompt. How do you make the error message appear to the right of the
name input?
Answer: Add an h:panelGroup around the h:inputText and h:message.
I don't know if that's a good question, or if it's too basic. Let me know if
it sucks, and I'll come up with another.
Thanks,
david
2009/12/15 Ed Burns <Ed.Burns(a)sun.com>
>>>> On Tue, 15 Dec 2009 17:47:27 -0500, Dan Allen
<dan.j.allen(a)gmail.com> said:
DA> Ed,
DA> Thanks for the update and good luck!
DA> I encourage all of you on this list to submit at least one question, if you
DA> have time available. The rigorousness and accuracy of the JSF certification
DA> exam reflects on the quality of the JSF specification.
DA> Is there a cut off date, Ed? (I can't see from the post because
java.net
<
http://java.net/> is
DA> currently down).
We're trying to have the bulk of the questions in this week but I'm
quite certain that the merging of the Oracle and Sun certification
organizations (should the merger happen) will delay things. In general,
however, it's best not to rely on such speculation.
Rather than waiting for
java.net <
http://java.net/> to come back, you can just
followup to
this mail. Thanks for the exhortation Dan!
Ed
--
| ed.burns(a)sun.com | office: 408 884 9519 OR x31640
| homepage: |
http://ridingthecrest.com/