You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Adrian Mitev <am...@gmail.com> on 2006/07/26 17:17:19 UTC

Question about ViewController

Declare your backing bean as a <managed-bean>, using a
<managed-bean-name> value that can be mapped from the view identifier.
(See  DefaultViewControllerMapper for the details of the default
mapping.) In nearly all circumstances, you will want the bean to be
placed in request scope.

In which xml should i define the managed-bean and the view its mapped to?

-- 
Seeing is believing

Re: Question about ViewController

Posted by René Zanner <re...@accelsis.biz>.
> Declare your backing bean as a <managed-bean>, using a
> <managed-bean-name> value that can be mapped from the view identifier.
> (See  DefaultViewControllerMapper for the details of the default
> mapping.) In nearly all circumstances, you will want the bean to be
> placed in request scope.
> 
> In which xml should i define the managed-bean and the view its mapped to?


The DefaultViewControllermapper maps view ids to managed beans. E.g., if your view has the view id "/pages/page1.jsp", you have to declare in your faces-config.xml a managed bean with the managed-bean-name "pages$page1".

At least that's my experience...

Cheers,

René


> 
> -- 
> Seeing is believing
> 

Re: Question about ViewController

Posted by René Zanner <re...@accelsis.biz>.
Hi Adrian,

the rules applying to the managed-bean-name when using the DefaultViewControllerMapper are documented right there: http://shale.apache.org/shale-core/apidocs/index.html - as stated in the docs.

Cheers,

René


----- Original Message -----
From: Adrian Mitev
[mailto:amittev@gmail.com]
To: user@shale.apache.org
Sent: Wed, 26 Jul 2006
17:17:19 +0200
Subject: Question about ViewController


> Declare your backing bean as a <managed-bean>, using a
> <managed-bean-name> value that can be mapped from the view identifier.
> (See  DefaultViewControllerMapper for the details of the default
> mapping.) In nearly all circumstances, you will want the bean to be
> placed in request scope.
> 
> In which xml should i define the managed-bean and the view its mapped to?
> 
> -- 
> Seeing is believing
>