A little of humor from the competence about Java!!
jueves, 31 de julio de 2008
miércoles, 30 de julio de 2008
Una sitio interesante para la gente de IT de Argentina:
Mi carrera laboral
Vean esta nota del mismo sitio que compara salarios Java vs .NET, ojalá fuese como lo indica la tabla :(.
Salarios Java vs .NET
Mi carrera laboral
Vean esta nota del mismo sitio que compara salarios Java vs .NET, ojalá fuese como lo indica la tabla :(.
Salarios Java vs .NET
jueves, 24 de julio de 2008
Tuning JSF
Here you can see an interested pdf presentation about tunning JSF(Java Server Faces) http://www.nljug.org/~tukker/jspring2008_jsf.pdf
jueves, 17 de julio de 2008
PersistentSet problem in JSF for data tables
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),
Suscribirse a:
Entradas (Atom)