Is it possible to have custom tags that can have both child elements and
attributes? I mean that in some cases it would be more elegant to use
elements instead of attributes:

<bean:message key="text.welcome">
    <arg0><bean:write name="un" property="firstname"/></arg0>
    <arg1><bean:write name="un" property="firstname"/></arg1>
</bean:message>

or:

<bean:message>
    <key>text.welcome</key>
    <arg0><bean:write name="un" property="firstname"/></arg0>
    <arg1><bean:write name="un" property="firstname"/></arg1>
</bean:message>

instead of this:

<bean:message key="text.welcome"
                        arg0="<% = un.firstname %>"
                        arg1="<% = un.lastname %>"
</bean:message>

Or it would be even more flexible if you could use both of them (at the same
time).
This was just an example and at least I have found many places where I'd
like to
use child elements instead of attributes.

Or is it just me who thinks that those runtime expressions are pretty ugly?

-- Aapo Laakkonen, +358 (50) 33 99 682, ProjectCast Ltd, Helsinki, Finland.

Reply via email to