Hi Adrian,

simply write your own ViewControllerMapper implementation. This one can even be 
configurable via XML files to map view ids to managed bean names.

To inject your own implementation add a context-parameter to your web.xml as 
the following:


<context-param>
  <param-name>org.apache.shale.view.VIEW_CONTROLLER_MAPPER</param-name>
  <param-value>foo.MyVerySpecialViewControllerMapper</param-value>
</context-param>


I did something similar for JSPs having "." in its filenames. In this case the 
DefaultViewControllerMapper provided a managed-bean-name with dots which is 
illegal.


Cheers,

René


----- Original Message -----
From: Adrian Mitev
[mailto:[EMAIL PROTECTED]
To: user@shale.apache.org
Sent: Thu, 27 Jul 2006
08:32:56 +0200
Subject: Re: Question about ViewController


> Thx. Where can i make a suggest the ViewController beans declaration
> to be moved in different config file where i specify the bean name and
> the view its mapped do. The current approach is not very good. In my
> project i need to have a views with very long names like
> "/pages/documents/dataLincence/.....jsp" so managed bean with name
> pages$documents$dataLicense$preview$licenseSearch is not very nice.
> -- 
> Seeing is believing
> 

Reply via email to