commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject Re: [Jelly] How to pass a collection to a TagSupport
Date Tue, 25 Apr 2006 07:38:46 GMT
Hey Marco,

newbies are welcome at Jelly... and I fear the assistance of the list is 
needed since documentation can be somehow... lagging behind.

paul

Marco Tedone wrote:
> Thank you. That worked nicely. You know, I'm a newbie.
> ----- Original Message ----- From: "Paul Libbrecht" <paul@activemath.org>
> To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
> Sent: Monday, April 24, 2006 11:08 PM
> Subject: Re: [Jelly] How to pass a collection to a TagSupport
>
>
>> Marco Tedone wrote:
>>> Hi, I've got a class which extends TagSupport. This class has got 
>>> many initialization attributes. Some of them are Collections, some 
>>> are arrays. How to I pass, from within the Jelly tag, all the values 
>>> to a collection or to an array?
>> Why does it not work to pass have a setter be called by the 
>> collection with such a thing as
>>  <j:new var="coll" className="java.util.ArrayList"/>
>>  <j:mute>${coll.add('a')} ${col.add('b')} ${col.add('c')}</j:mute>
>>   <t:tag collection="${coll}"/>
>>
>> ?
>>
>> Or do you want to type in a litteral collection (such as 
>> ['a','b','c']) ?
>>
>> paul
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>
> ---
> [This E-mail has been scanned for viruses but it is your 
> responsibility to maintain up to date anti virus software on the 
> device that you are
> currently using to read this email. ]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message