[ 
https://issues.apache.org/struts/browse/TILES-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antonio Petrelli closed TILES-103.
----------------------------------


> Refactor attribute management
> -----------------------------
>
>                 Key: TILES-103
>                 URL: https://issues.apache.org/struts/browse/TILES-103
>             Project: Tiles
>          Issue Type: Improvement
>          Components: tiles-core, tiles-jsp (jsp support)
>    Affects Versions: 2.0.0
>            Reporter: Antonio Petrelli
>         Assigned To: Antonio Petrelli
>             Fix For: 2.0.1
>
>
> Currently the attribute management code has some incoherences within names of 
> the JSP tags and of the elements of Tiles configuration files, and they need 
> to be renamed:
> - Rename the <put> element to <putAttribute>, just as the tag name.
> - Rename the <add> element to <addAttribute>, and it adds attributes
> and not values. Values are still stored by <item> and <bean>.
> - Rename <tiles:putList> and <putList> to <tiles:putListAttribute> and
> <putListAttribute>, for coherence.
> -- Second phase of refactoring:
> - Rename all elements with "camel case" names to "dash-separated" names, e.g. 
> <putListAttribute> to <put-list-attribute>.
> - The <put-list-attribute> must have a child called <add-list-attribute> with 
> no name.
> - The "name" of <tiles:putAttribute> tag should be mandatory.
> - Create a <tiles:addAttribute> tag and a <tiles:addListAttribute> to be 
> child of <tiles:putListAttribute> and that have no name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to