2009/12/17 Martin Marinschek <mmarinschek@apache.org>
I won't chime in for the distractors, but here my question:
How can you register a managed bean with JSF2?
a) Using groovy in the view definition
b) Using XML-code in the faces configuration file
c) Using annotations in the Java-Code of the managed-bean
d) Using other JSF2 compliant bean-containers
regards,
Martin
--
On 12/16/09, Ed Burns <Ed.Burns@sun.com> wrote:
>>>>>> On Wed, 16 Dec 2009 09:24:09 -0700, David Geary
>>>>>> <clarity.training@gmail.com> said:
>
> DG> Okay, Ed, java.net is still down, so here's a question:
> DG> <h:form>
> DG> <h:panelGrid columns="2">
> DG> Name:
> DG> <h:inputText id="name" value="#{..}"/>
> DG> <h:message for="name"/>
> DG> ...
> DG> </h:panelGrid>
> DG> </h:form>
>
> DG> In the preceeding markup, any error messages for the name input will be
> DG> displayed underneath the Name: prompt. How do you make the error message
> DG> appear to the right of the name input?
>
> DG> Answer: Add an h:panelGroup around the h:inputText and h:message.
>
> DG> I don't know if that's a good question, or if it's too basic. Let me
> DG> know if it sucks, and I'll come up with another.
>
> Thank you, It's very good.
>
> It's a multiple choice exam. Can I trouble you to come up with three
> "distractors", that is, other choices that sound correct but are not?
>
> Ed
>
> --
> | ed.burns@sun.com | office: 408 884 9519 OR x31640
> | homepage: | http://ridingthecrest.com/
>
>
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces