Ajay
Ajay

Reputation: 763

EL parameter not working in primefaces tooltip

I get a javax.el.PropertyNotFoundException value="#{col.getValue(row)}": Property 'getValue' not found on the tooltip line. The other #{col.getValue(row)} in the outputPanel and outputText evaluate just fine, which makes me believe there might be a bug in primefaces. Am I doing something wrong? Is there a workaround?

<p:dataTable id="myTable" var="row" value="#{myBean.getRows(5)}">
  <p:columns var="col" headerText="#{col.name}" value="#{myBean.columns}">
    <p:outputPanel id="tableColumn">
      #{col.getValue(row)}
    </p:outputPanel>
    <h:outputText value="#{col.getValue(row)}" />
    <p:tooltip for="tableColumn" value="#{col.getValue(row)}" />
  </p:columns>
</p:dataTable>

Using Tomcat 7.0.39 and Primefaces 3.5

Upvotes: 0

Views: 707

Answers (1)

Mathew Rock
Mathew Rock

Reputation: 989

Just write #{col.Value(row)} or #{col.value(row)}

Upvotes: 1

Related Questions