#{! 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;
}