On 08/12/05, Gary VanMatre <[EMAIL PROTECTED]> wrote:
>
> Well, I'm not sure what to make of this one. The RI doesn't throw and
> exception when a managed bean is not found, just returns a null object.
>
> // Retrieve an existing instance, or one created and configured by
> // the managed bean facility
> ValueBinding vb =
> context.getApplication().createValueBinding("#{" + viewName +
> "}");
> ViewController vc = null;
> try {
> Object vcObject = vb.getValue(context);
> if (vcObject == null) {
> log.warn(messages.getMessage("view.noViewController",
> new Object[] { viewId,
> viewName }));
> return;
> }
> vc = (ViewController) vcObject;
> } catch (ClassCastException e) {
> log.warn(messages.getMessage("view.notViewController",
> new Object[] { viewId, viewName
> }));
> return;
> }
>
> I think this is new behavior. What version of myfaces are you
> using? I'll include Sean in this thread to see if he as any insights.
>
Gary
>
> I have tested my code with myfaces version 1.1.0 and 1.1.1 , get the same
error with both. In my previous problem you helped me with yesterday I had a
similar issue, the specified manged bean name was ignored and the default
name was used by the framework.
I am using a nightly shale build from 20051202
Mikael