dev@jsftemplating.java.net

can List be stored as page attribute ?

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Thu, 19 Oct 2006 14:45:39 -0700

Hi Ken,

I notice that if i store a List as a page attribute, and then use that
as the labels for a dropdown, in the dropdown factory, it only sees
that as a String, and thus won't initialize the dropdown.
Is this a bug or limitation of the page attribute ?

case 1: (works fine)
<sun:dropdown labels="$attribute{myList}" >
    <!beforeCreate
        getList( result=>$attribute{myList} );
    />
</sun:dropdown>


case 2: (will not work)
<sun:dropdown labels="#{myList}" >
    <!beforeCreate
        getList( result=>$page{myList} );
    />
</sun:dropdown>

In DropDownFactory: line 78
    Object labels = descriptor.getEvaluatedOption(context, "labels", comp);
labels is a String for case 2


thanks
Anissa.