You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2007/05/04 16:58:42 UTC

[jira] Created: (TILES-168) Add "object" attribute type

Add "object" attribute type
---------------------------

                 Key: TILES-168
                 URL: https://issues.apache.org/struts/browse/TILES-168
             Project: Tiles
          Issue Type: Improvement
          Components: tiles-api, tiles-core
    Affects Versions: 2.0.3
            Reporter: Antonio Petrelli


Currently, the attribute types can be "string", "definition" and "template". The type of an attribute can be null, but if an attribute containing an object as a value is inserted (for example, by using the <tiles:insertAttribute> tag), the type is evaluated as "string", and its "toString" method is called.
An "object" attribute type should be introduced that, when someone tries to insert (or render) it, an exception is thrown, since you cannot insert an object. This kind of attribute can only be imported/used (through the use of <tiles:importAttribute> or <tiles:useAttribute>) as a bean.

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


[jira] Resolved: (TILES-168) Add "object" attribute type

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli resolved TILES-168.
------------------------------------

    Resolution: Fixed

Added support for "object" attribute type.
Added test case.

> Add "object" attribute type
> ---------------------------
>
>                 Key: TILES-168
>                 URL: https://issues.apache.org/struts/browse/TILES-168
>             Project: Tiles
>          Issue Type: Improvement
>          Components: tiles-api, tiles-core
>    Affects Versions: 2.0.3
>            Reporter: Antonio Petrelli
>         Assigned To: Antonio Petrelli
>             Fix For: 2.0.4
>
>
> Currently, the attribute types can be "string", "definition" and "template". The type of an attribute can be null, but if an attribute containing an object as a value is inserted (for example, by using the <tiles:insertAttribute> tag), the type is evaluated as "string", and its "toString" method is called.
> An "object" attribute type should be introduced that, when someone tries to insert (or render) it, an exception is thrown, since you cannot insert an object. This kind of attribute can only be imported/used (through the use of <tiles:importAttribute> or <tiles:useAttribute>) as a bean.

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


[jira] Assigned: (TILES-168) Add "object" attribute type

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli reassigned TILES-168:
--------------------------------------

    Assignee: Antonio Petrelli

> Add "object" attribute type
> ---------------------------
>
>                 Key: TILES-168
>                 URL: https://issues.apache.org/struts/browse/TILES-168
>             Project: Tiles
>          Issue Type: Improvement
>          Components: tiles-api, tiles-core
>    Affects Versions: 2.0.3
>            Reporter: Antonio Petrelli
>         Assigned To: Antonio Petrelli
>             Fix For: 2.0.4
>
>
> Currently, the attribute types can be "string", "definition" and "template". The type of an attribute can be null, but if an attribute containing an object as a value is inserted (for example, by using the <tiles:insertAttribute> tag), the type is evaluated as "string", and its "toString" method is called.
> An "object" attribute type should be introduced that, when someone tries to insert (or render) it, an exception is thrown, since you cannot insert an object. This kind of attribute can only be imported/used (through the use of <tiles:importAttribute> or <tiles:useAttribute>) as a bean.

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


[jira] Closed: (TILES-168) Add "object" attribute type

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli closed TILES-168.
----------------------------------


> Add "object" attribute type
> ---------------------------
>
>                 Key: TILES-168
>                 URL: https://issues.apache.org/struts/browse/TILES-168
>             Project: Tiles
>          Issue Type: Improvement
>          Components: tiles-api, tiles-core
>    Affects Versions: 2.0.3
>            Reporter: Antonio Petrelli
>            Assignee: Antonio Petrelli
>             Fix For: 2.0.4
>
>
> Currently, the attribute types can be "string", "definition" and "template". The type of an attribute can be null, but if an attribute containing an object as a value is inserted (for example, by using the <tiles:insertAttribute> tag), the type is evaluated as "string", and its "toString" method is called.
> An "object" attribute type should be introduced that, when someone tries to insert (or render) it, an exception is thrown, since you cannot insert an object. This kind of attribute can only be imported/used (through the use of <tiles:importAttribute> or <tiles:useAttribute>) as a bean.

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


[jira] Updated: (TILES-168) Add "object" attribute type

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli updated TILES-168:
-----------------------------------

    Fix Version/s: 2.0.4

> Add "object" attribute type
> ---------------------------
>
>                 Key: TILES-168
>                 URL: https://issues.apache.org/struts/browse/TILES-168
>             Project: Tiles
>          Issue Type: Improvement
>          Components: tiles-api, tiles-core
>    Affects Versions: 2.0.3
>            Reporter: Antonio Petrelli
>             Fix For: 2.0.4
>
>
> Currently, the attribute types can be "string", "definition" and "template". The type of an attribute can be null, but if an attribute containing an object as a value is inserted (for example, by using the <tiles:insertAttribute> tag), the type is evaluated as "string", and its "toString" method is called.
> An "object" attribute type should be introduced that, when someone tries to insert (or render) it, an exception is thrown, since you cannot insert an object. This kind of attribute can only be imported/used (through the use of <tiles:importAttribute> or <tiles:useAttribute>) as a bean.

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