You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2006/10/26 12:36:04 UTC

[jira] Created: (SB-60) Add to the ability to add elements to an overridden list attribute

Add to <putList> the ability to add elements to an overridden list attribute
----------------------------------------------------------------------------

                 Key: SB-60
                 URL: http://issues.apache.org/struts/browse/SB-60
             Project: Sandbox
          Issue Type: New Feature
          Components: Tiles
    Affects Versions: 2.0
         Environment: All
            Reporter: Antonio Petrelli
             Fix For: 2.0


Currently the <putList> element in Tiles definitions configuration files and <tiles:putList> tag, in the case of a definition extending another definition, or inserting a definition with an overridden attribute, replaces the previous attribute list with new one.
For example:

<definition name="baseDefinition" template="/template.jsp">
  <putList name="listAttribute">
    <add value="First string" type="string" />
  </putList>
</definition>

<definition name="extendedDefinition" extends="baseDefinition">
  <putList name="listAttribute">
    <add value="First string" type="string" />
    <add value="Secondo string" type="string" />
  </putList>
</definition>

As you can see, the "First string" value is duplicated.
A new attribute, for example "clear" (that defaults to "true" for compatibility reasons) can be used to specify if the list should be cleared or not.

Relevant thread (thanks to Chris Pratt for the tip):
http://www.mail-archive.com/user%40struts.apache.org/msg51857.html

-- 
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

        

[jira] Updated: (SB-60) Add to the ability to add elements to an overridden list attribute

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SB-60?page=all ]

Antonio Petrelli updated SB-60:
-------------------------------

    Priority: Minor  (was: Major)

> Add to <putList> the ability to add elements to an overridden list attribute
> ----------------------------------------------------------------------------
>
>                 Key: SB-60
>                 URL: http://issues.apache.org/struts/browse/SB-60
>             Project: Sandbox
>          Issue Type: New Feature
>          Components: Tiles
>    Affects Versions: 2.0
>         Environment: All
>            Reporter: Antonio Petrelli
>            Priority: Minor
>             Fix For: 2.0
>
>
> Currently the <putList> element in Tiles definitions configuration files and <tiles:putList> tag, in the case of a definition extending another definition, or inserting a definition with an overridden attribute, replaces the previous attribute list with new one.
> For example:
> <definition name="baseDefinition" template="/template.jsp">
>   <putList name="listAttribute">
>     <add value="First string" type="string" />
>   </putList>
> </definition>
> <definition name="extendedDefinition" extends="baseDefinition">
>   <putList name="listAttribute">
>     <add value="First string" type="string" />
>     <add value="Secondo string" type="string" />
>   </putList>
> </definition>
> As you can see, the "First string" value is duplicated.
> A new attribute, for example "clear" (that defaults to "true" for compatibility reasons) can be used to specify if the list should be cleared or not.
> Relevant thread (thanks to Chris Pratt for the tip):
> http://www.mail-archive.com/user%40struts.apache.org/msg51857.html

-- 
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

        

[jira] Updated: (SB-60) Add to the ability to add elements to an overridden list attribute

Posted by "David H. DeWolf (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SB-60?page=all ]

David H. DeWolf updated SB-60:
------------------------------

    Fix Version/s: 2.0.1
                       (was: 2.0)

> Add to <putList> the ability to add elements to an overridden list attribute
> ----------------------------------------------------------------------------
>
>                 Key: SB-60
>                 URL: http://issues.apache.org/struts/browse/SB-60
>             Project: Sandbox
>          Issue Type: New Feature
>          Components: Tiles
>    Affects Versions: 2.0
>         Environment: All
>            Reporter: Antonio Petrelli
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> Currently the <putList> element in Tiles definitions configuration files and <tiles:putList> tag, in the case of a definition extending another definition, or inserting a definition with an overridden attribute, replaces the previous attribute list with new one.
> For example:
> <definition name="baseDefinition" template="/template.jsp">
>   <putList name="listAttribute">
>     <add value="First string" type="string" />
>   </putList>
> </definition>
> <definition name="extendedDefinition" extends="baseDefinition">
>   <putList name="listAttribute">
>     <add value="First string" type="string" />
>     <add value="Secondo string" type="string" />
>   </putList>
> </definition>
> As you can see, the "First string" value is duplicated.
> A new attribute, for example "clear" (that defaults to "true" for compatibility reasons) can be used to specify if the list should be cleared or not.
> Relevant thread (thanks to Chris Pratt for the tip):
> http://www.mail-archive.com/user%40struts.apache.org/msg51857.html

-- 
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

        

[jira] Commented: (SB-60) Add to the ability to add elements to an overridden list attribute

Posted by "David H. DeWolf (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/SB-60?page=comments#action_38831 ] 
            
David H. DeWolf commented on SB-60:
-----------------------------------

Feature request.  Can be postponed until 2.0.1+

> Add to <putList> the ability to add elements to an overridden list attribute
> ----------------------------------------------------------------------------
>
>                 Key: SB-60
>                 URL: http://issues.apache.org/struts/browse/SB-60
>             Project: Sandbox
>          Issue Type: New Feature
>          Components: Tiles
>    Affects Versions: 2.0
>         Environment: All
>            Reporter: Antonio Petrelli
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> Currently the <putList> element in Tiles definitions configuration files and <tiles:putList> tag, in the case of a definition extending another definition, or inserting a definition with an overridden attribute, replaces the previous attribute list with new one.
> For example:
> <definition name="baseDefinition" template="/template.jsp">
>   <putList name="listAttribute">
>     <add value="First string" type="string" />
>   </putList>
> </definition>
> <definition name="extendedDefinition" extends="baseDefinition">
>   <putList name="listAttribute">
>     <add value="First string" type="string" />
>     <add value="Secondo string" type="string" />
>   </putList>
> </definition>
> As you can see, the "First string" value is duplicated.
> A new attribute, for example "clear" (that defaults to "true" for compatibility reasons) can be used to specify if the list should be cleared or not.
> Relevant thread (thanks to Chris Pratt for the tip):
> http://www.mail-archive.com/user%40struts.apache.org/msg51857.html

-- 
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