Hi!

I'm trying to use my custom output component "employee" in a standard
h:datatable.

---Snip---

<h:dataTable width="100%" value="#{facListBean.facList}" var="list">
       <h:column>
        <ds:employee partId="#{list.id}" partIntern="#{list.isIntern}"/>
       </h:column>
</h:dataTable>

---Snip---

To get the value of "#{list.id}" and "#{list.isIntern}" I've used the
method solveValueBinding:

  public String solveValueBinding(String attributeValue) {
    if (attributeValue != null && isValueReference(attributeValue))
      return getValueBindingVal(attributeValue);
    return attributeValue;
  }

  private String getValueBindingVal(String attributeValue) {
    FacesContext context = FacesContext.getCurrentInstance();
    ValueBinding vb =
context.getApplication().createValueBinding(attributeValue);
    return (String) vb.getValue(context);
  }  

It works fine with other values BUT not in the datatable!!
How can I resolve the values??

regards,

Stefan

Reply via email to