This results in a 
javax.faces.el.PropertyNotFoundException. Bean: java.util.HashSet,
property: docId4711

I assume that I cannot access Sets with EL that way.

-----Original Message-----
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 30. Mai 2006 14:35
To: MyFaces Discussion
Subject: Re: Access a Set with JSF-EL?

#{! empty MyBean.values[record.id]}  should work

On 5/29/06, Michael Heinen <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Can I access a Set with JSF-EL?
>
>
>
> I have a datatable with many records. The user is able to update
records in
> a detail panel. The ids of the updated records are stored in a HashSet
in a
> backing bean. Now I want to mark all those records that have been
updated by
> the user.
>
>
>
> Something like rendered="#{ MyBean.values[record.id] != null } is not
> working
>
>
>
> JSP:
>
> <t:dataTable
>
>    var="record"
>
>    ...
>
>
>
> <t:column>
>
>     <h:outputText value="***" rendered="#{ (MyBean.values[record.id])
} "/>
>
> </t:column>
>
>
>
> MyBean:
>
>    private Set<String> values = new HashSet<String> ();
>
>    public Set<String> getDocumentIds() {
>
>                return this.values;
>
>    }



Reply via email to