Gary VanMatre <gvanmatre <at> comcast.net> writes:

[snippet]
> > > 
> > > When running this without a managed bean called 'test' in
 faces-config.xml, I 
> > > get the following error: 
> > > ERROR 
> >(org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/estoolweb].
> > > [Faces 
> > > Servlet]) - Servlet.service() for servlet Faces Servlet threw exception
> > > javax.faces.el.EvaluationException: Cannot get value for expression

#{test}' 
> > > at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java
> > > 
> 
> This is a stardard faces EL exception.  It means that an object identified
using token
> "test" can not be found as a managed bean or a object in request, session,and 
> application scopes.
Ok.
The strange thing is that I don't access any beans in my test.xml view, 
none at all, just plain html output.
I have tried this with two different supper simple views wich doesn't use any 
beans in any of the included pages, and both get the above exception.

[snippet]
> > And declaring layoutBean in your faces-config.xml. Then you would 
> > only need to do this once for all your layouts. Gary, can the 
> > managed-bean be optional? 
> 
> Yep, the managed bean is optional and just another symbol that gets applied 
> to 
> the binding expression before the binding is created. If you prefer the symbol
> "myBean", you could add it as a symbol and do something like this, 
>#{ <at>mybean.someValue}. 
> 
> Full views HTML veiws assume the same association with a ViewController so 
> that you can pick up the extra events in the lifecycle.

Do you know what I could be doing wrong, I am sure that I am not referencing 
any beans at all in the pages.
And the Excption always specifies that it can't find
a value binding for a bean with the same name as the entry url.

> Gary

I really appreciate all your help, I'm a beginner when it comes to web 
frameworks and have been trying to learn it by myself. 
It feels good to be able to get some help :)

Thanks, Mikael



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to