Maybe we can improve the useAttribute tag to let it convert the primitive types. But I think that it will be only possible to convert primitive types to their corresponding wrappers.
You can open a ticket for that in bugzilla if you wish. Even better, you can propose a patch ;-)


Cedric

Alban Soupper wrote:

Thanks,

So what it the common use for passing boolean value to tiles:
via a String attribute ?

Alban.

-----Original Message-----
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]
Sent: mardi, 18. mars 2003 11:24
To: Struts Users Mailing List
Subject: Re: useAttribute and simple Types



Hi,

The useAttribute tag doesn't perform any type conversion. When you specify a classname, the tag will do something like:
Classtype varName = (Classtype)request.getAttribute( "attributeName" );


So, there is no way to specify primitive types.

Cedric

Alban Soupper wrote:



Hi all,

Just a little question,
is it possible to use a <tiles:useAttribute .../>
with a value passed as boolean or int values ?
If yes, How :) ?

Thanks all,
        Alban.


********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager at postmaster.eim.ch. **********************************************************************


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager at postmaster.eim.ch. **********************************************************************


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to