<c:foreach>或<ui:repeat>无法访问<p:datatable var =“”>,还有其他解决方案吗?

时间:2016-12-26 09:36:26

标签: java jsf primefaces datatable

我正在使用jsf Mojarra 2.2.7,Java 8,Primefaces 6.0

我有一个MeasurmentRecording类。 MeasurementRecording类有一个带DoubleRecordings的List。我无法访问c:foreach部分中的p:datatable var“tempMeasurementRecording”来显示doubleRecordings。用ui:重复它是同样的问题。我知道由于视图和构建JSF的时间,我无法访问p datatable var。

但我有什么解决方案来解决这个问题? (后退或前端)。

override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    let cell = tableView.dequeueReusableCell(withIdentifier: "CustomCell", for: indexPath)
    cell.backgroundColor = .clear
    cell.backgroundView = UIView()
    cell.selectedBackgroundView = UIView()
    return cell
}

0 个答案:

没有答案
相关问题