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/07 13:50:43 UTC

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

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