Sure...
Anytime you want to declare an array or a List for an attribute value,
just do:
<someComponent
someAttribute={
"List Element1",
"$attribute{listElement2}",
"#{list.Element3}",
"And $session{list} #{element4}!"}
anotherAttribute="..." />
Replace {} with [] to create an array instead of a List.
Did this answer your question?
Ken
Anissa Lam wrote:
>
> Hi Ken,
> Can you give a quick example of how to use this ? I mean just that 1
> or 2 lines that shows the syntax of using this in the .jsf file.
> thanks
> Anissa
>
> kenpaulsen_at_dev.java.net wrote:
>> User: kenpaulsen
>> Date: 2006/09/14 15:41:32
>>
>> Modified:
>>
>> jsftemplating/src/java/com/sun/jsftemplating/layout/template/TemplateParser.java
>>
>>
>> Log:
>> * Fix to allow #{} expressions in List/Array delcarations.
>>
>> File Changes:
>>
>> Directory:
>> /jsftemplating/src/java/com/sun/jsftemplating/layout/template/
>> =========================================================================
>>
>>
>> File [changed]: TemplateParser.java
>> Url:
>> https://jsftemplating.dev.java.net/source/browse/jsftemplating/src/java/com/sun/jsftemplating/layout/template/TemplateParser.java?r1=1.11&r2=1.12
>>
>> Delta lines: +1 -1
>> -------------------
>> --- TemplateParser.java 22 Aug 2006 22:25:40 -0000 1.11
>> +++ TemplateParser.java 14 Sep 2006 22:41:29 -0000 1.12
>> @@ -290,7 +290,7 @@
>> }
>>
>> // Read everything inside the quotes
>> - list.add(readUntil(next, true));
>> + list.add(readUntil(next, false));
>>
>> // Skip white space (including the seperators ",:;");
>> skipCommentsAndWhiteSpace(SIMPLE_WHITE_SPACE + ",:;");
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cvs-unsubscribe_at_jsftemplating.dev.java.net
>> For additional commands, e-mail: cvs-help_at_jsftemplating.dev.java.net
>>
>>