2009/12/17 Martin Marinschek <span dir="ltr">&lt;<a href="mailto:mmarinschek@apache.org">mmarinschek@apache.org</a>&gt;</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&#39;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&#39;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 &lt;<a href="mailto:Ed.Burns@sun.com">Ed.Burns@sun.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt; On Wed, 16 Dec 2009 09:24:09 -0700, David Geary<br>
&gt;&gt;&gt;&gt;&gt;&gt; &lt;<a href="mailto:clarity.training@gmail.com">clarity.training@gmail.com</a>&gt; said:<br>
&gt;<br>
&gt; DG&gt; Okay, Ed, <a href="http://java.net" target="_blank">java.net</a> is still down, so here&#39;s a question:<br>
&gt; DG&gt; &lt;h:form&gt;<br>
&gt; DG&gt;   &lt;h:panelGrid columns=&quot;2&quot;&gt;<br>
&gt; DG&gt;     Name:<br>
&gt; DG&gt;     &lt;h:inputText id=&quot;name&quot; value=&quot;#{..}&quot;/&gt;<br>
&gt; DG&gt;     &lt;h:message for=&quot;name&quot;/&gt;<br>
&gt; DG&gt;     ...<br>
&gt; DG&gt;  &lt;/h:panelGrid&gt;<br>
&gt; DG&gt; &lt;/h:form&gt;<br>
&gt;<br>
&gt; DG&gt; In the preceeding markup, any error messages for the name input will be<br>
&gt; DG&gt; displayed underneath the Name: prompt. How do you make the error message<br>
&gt; DG&gt; appear to the right of the name input?<br>
&gt;<br>
&gt; DG&gt; Answer: Add an h:panelGroup around the h:inputText and h:message.<br>
&gt;<br>
&gt; DG&gt; I don&#39;t know if that&#39;s a good question, or if it&#39;s too basic. Let me<br>
&gt; DG&gt; know if it sucks, and I&#39;ll come up with another.<br>
&gt;<br>
&gt; Thank you, It&#39;s very good.<br>
&gt;<br>
&gt; It&#39;s a multiple choice exam.  Can I trouble you to come up with three<br>
&gt; &quot;distractors&quot;, that is, other choices that sound correct but are not?<br>
&gt;<br>
&gt; Ed<br>
&gt;<br>
&gt; --<br>
&gt; | <a href="mailto:ed.burns@sun.com">ed.burns@sun.com</a>  | office: 408 884 9519 OR x31640<br>
&gt; | homepage:         | <a href="http://ridingthecrest.com/" target="_blank">http://ridingthecrest.com/</a><br>
&gt;<br>
&gt;<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>