2009/12/17 Martin Marinschek <span dir="ltr"><<a href="mailto:mmarinschek@apache.org">mmarinschek@apache.org</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I won't chime in for the distractors, but here my question:<br>
<br>
How can you register a managed bean with JSF2?<br>
<br>
a) Using groovy in the view definition<br>
b) Using XML-code in the faces configuration file<br>
c) Using annotations in the Java-Code of the managed-bean<br>
d) Using other JSF2 compliant bean-containers<br></blockquote><div><br>Both b) and c) are valid answers, aren't they?<br><br><br>david<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
regards,<br>
<br>
Martin<br>
<div><div></div><div class="h5"><br>
On 12/16/09, Ed Burns <<a href="mailto:Ed.Burns@sun.com">Ed.Burns@sun.com</a>> wrote:<br>
>>>>>> On Wed, 16 Dec 2009 09:24:09 -0700, David Geary<br>
>>>>>> <<a href="mailto:clarity.training@gmail.com">clarity.training@gmail.com</a>> said:<br>
><br>
> DG> Okay, Ed, <a href="http://java.net" target="_blank">java.net</a> is still down, so here's a question:<br>
> DG> <h:form><br>
> DG> <h:panelGrid columns="2"><br>
> DG> Name:<br>
> DG> <h:inputText id="name" value="#{..}"/><br>
> DG> <h:message for="name"/><br>
> DG> ...<br>
> DG> </h:panelGrid><br>
> DG> </h:form><br>
><br>
> DG> In the preceeding markup, any error messages for the name input will be<br>
> DG> displayed underneath the Name: prompt. How do you make the error message<br>
> DG> appear to the right of the name input?<br>
><br>
> DG> Answer: Add an h:panelGroup around the h:inputText and h:message.<br>
><br>
> DG> I don't know if that's a good question, or if it's too basic. Let me<br>
> DG> know if it sucks, and I'll come up with another.<br>
><br>
> Thank you, It's very good.<br>
><br>
> It's a multiple choice exam. Can I trouble you to come up with three<br>
> "distractors", that is, other choices that sound correct but are not?<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/" target="_blank">http://ridingthecrest.com/</a><br>
><br>
><br>
<br>
<br>
</div></div>--<br>
<br>
<a href="http://www.irian.at" target="_blank">http://www.irian.at</a><br>
<br>
Your JSF powerhouse -<br>
JSF Consulting, Development and<br>
Courses in English and German<br>
<br>
Professional Support for Apache MyFaces<br>
</blockquote></div><br>