A typical datatable:
The error is:
javax.faces.el.PropertyNotFoundException: /WEB-INF/platformTags/dataTableColumn.xhtml @137,50 value="#{finalFieldValue}": /WEB-INF/platformTags/dataTableColumn.xhtml @122,67 value="#{item[fieldName]}": Bean:
org.hibernate.collection.PersistentSet, property: id at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
at javax.faces.component.UIOutput.getValue(UIOutput.java:77) at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:217)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:69)
Solution:
The problem is that in the "#{documentsRepositoryAction.folder.childFolders}" itemList property on the .xhtml is a java.util.Set (childFolders in this case), we could fix it by two ways:
1) Change childFolders property to a java.util.List.
2) (Recomended) To do a method that return a List of folders on the corresponding action(documentsRepositoryAction), this method will build the list based on the "Set" in the folders.
javax.faces.el.PropertyNotFoundException: /WEB-INF/platformTags/dataTableColumn.xhtml @137,50 value="#{finalFieldValue}": /WEB-INF/platformTags/dataTableColumn.xhtml @122,67 value="#{item[fieldName]}": Bean:
org.hibernate.collection.PersistentSet, property: id at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
at javax.faces.component.UIOutput.getValue(UIOutput.java:77) at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:217)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:69)
The problem is that in the "#{documentsRepositoryAction.folder.childFolders}" itemList property on the .xhtml is a java.util.Set (childFolders in this case),
No hay comentarios.:
Publicar un comentario