2013-06-26 20 views
0

我在工具提示行上得到一個javax.el.PropertyNotFoundException value="#{col.getValue(row)}": Property 'getValue' not found。 outputPanel和outputText中的另一個#{col.getValue(row)}評估得很好,這讓我相信在primefaces中可能存在一個錯誤。難道我做錯了什麼?有沒有解決方法?EL參數在primefaces工具欄中不起作用

<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> 

使用Tomcat 7.0.39和Primefaces 3.5

+0

你試過'tooltip' separatly檢查,如果它在你的設立工作呢?就像'' – Akheloes

+0

是的,這是有效的。 「'。只是不使用參數。 – Ajay

+0

這很奇怪,實際上... – Akheloes

回答

1

只要寫#{col.Value(row)}#{col.value(row)}

相關問題