[ 
http://issues.apache.org/struts/browse/SHALE-196?page=comments#action_37572 ] 

Adam Brod commented on SHALE-196:
---------------------------------

A general audit tool would be a great and very helpful for complex applications.

Maybe a first step in that type of tool would be a way to visualize the 
"effective" faces-config.xml file.  Short of running a full code generator at 
build-time.  Perhaps shale could provide a JSP that reads the Faces Config 
objects and displays them in a format similar to faces-config.xml.

> Shale should notify me if two beans are configured with the same name
> ---------------------------------------------------------------------
>
>          Key: SHALE-196
>          URL: http://issues.apache.org/struts/browse/SHALE-196
>      Project: Shale
>         Type: Bug

>   Components: Tiger
>     Versions: 1.0.3
>     Reporter: Adam Brod

>
> Shale-Tiger should throw an error if multiple beans are configured with the 
> same name.  Twice I have had very frustrating problems where I thought my 
> changes weren't being picked up.  It turned out this was because two beans 
> had the same name and the second one was being silently ignored.
> I can't imagine that anyone would ever want two beans with the same name 
> since they won't both work, so an error at startup would be a great 
> resolution.  If not that, then at least a severe warning to let the developer 
> know that (s)he could be in for a surprise would be very helpful.
> I guess this really should be in the JSF impl of the managed beans facility; 
> however, this problem is more likely to occur with the managed bean 
> definitions being spread through the classpath.
> Note: this happened because I use Weblogic/Tomcat autodeploy features.  When 
> I rename a class (or move it), the old class isn't always deleted.  So the 
> old class is still in the autodeploy directory, even though my editor says 
> the file is deleted.  I'm sure this isn't too uncommon for other developers 
> to run into the same problem...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to