DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25735>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25735

Tiles doesn't complain if two definitions have the same name

           Summary: Tiles doesn't complain if two definitions have the same
                    name
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Tiles framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Tiles does not complain if two definitions in tiles-defs.xml have the same 
name.  Instead, tiles overwrites the first definition with the second 
definition.  In my opinion this is confusing, since I can't think of any reason 
why it would be a good idea to specify two definitions with the same name in 
the same file.  I think it would be better if an error was thrown, because I 
would guess that in most cases the second definition is caused by a copy/paste 
where the person doing the copying/pasting forgot to change the name of the 
defininition.

I'm not sure what the desired behavior would be if multiple definition files 
are used, but in that case I think it might make sense to have the last read 
definition be the one that "sticks".  That way your tiles definitions can do a 
kind of inheritance across tiles definition files, since the definitions in the 
last specified config file would overwrite definitions in earlier config files.

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

Reply via email to