Hi Martin,
how "hard you have to push" depends on what "register" and
"Managed
Bean" really means.
But let's say we have a d) which allows me to register Managed Beans
dynamically, then you could have groovy code in your view definition,
that gets executed and registers the MB.
While I am pretty sure, this is something I don't want to see in any
view definition I have to work with, it would still be possible.
(About using groovy in the view-definition see:
Hi Imre,
d) is certainly valid with more than one bean container right now. In
which context is a) valid? Never heard of anything like this.
I don't think potential exam-takers will read this list, if they do, I
think it's ok if they pass the exam ;)
regards,
Martin
On 12/17/09, Imre Osswald <ioss(a)mx.jevelopers.com> wrote:
> If d) is valid and you push hard enough you can make a) valid too.
>
> But my actual question is, if we publish the questions and answers
> here on an open list, will they still be usable in an exam? :)
>
> Imre
>
> On 17.12.2009, at 16:37, Martin Marinschek wrote:
>
>> I would have said that b, c and d are all three valid answers. Can't
>> we have multiple valid answers?
>>
>> regards,
>>
>> Martin
>>
>> On 12/17/09, Dan Allen <dan.j.allen(a)gmail.com> wrote:
>>> On Thu, Dec 17, 2009 at 9:57 AM, David Geary
>>> <clarity.training(a)gmail.com>wrote:
>>>
>>>> 2009/12/17 Martin Marinschek <mmarinschek(a)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
>>>>>
>>>>
>>> c) ... (@ManagedBean or @Named)
>>>
>>> -Dan
>>>
>>> --
>>> Dan Allen
>>> Senior Software Engineer, Red Hat | Author of Seam in Action
>>> Registered Linux User #231597
>>>
>>>
http://mojavelinux.com
>>>
http://mojavelinux.com/seaminaction
>>>
http://www.google.com/profiles/dan.j.allen
>>>
>>
>>
>> --
>>
>>
http://www.irian.at
>>
>> Your JSF powerhouse -
>> JSF Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces