File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes sample jquery grid showcase explain Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "sample jquery grid showcase explain" Watch "sample jquery grid showcase explain" New topic

sample jquery grid showcase explain

Alberto Zolezzi

Joined: Dec 13, 2010
Posts: 9
I recently came across at the sample "jquery grid showcase".
It is very interesting and usefull; investigating it I managed to learn many things.
Unfortunately I'm facing a problem and I'd really like to solve it.
Despite the fact that the Db is read-only, when I try to add a new customer the output of the log4j intercepts an error telling me:

ERROR AbstractSimpleGenericDao:? - not-null property references a null or transient value: com.jgeppert.struts2.jquery.grid.showcase.model.Customers.salesemployee

In practice called by grid.jsp does not receive any value for "salesemployee".

Do you think the problem sits on the action (in this case I'm in the correct part of the forum), which is not capable of reading in the "salesemployee.employeenumber" or it is the "sjg:gridColumn" tag, which is not capable of sending it ?

In the log4j I also found these: Is it possible that this problem has something to do with the converter ?

16:30:09,371 DEBUG XWorkConverter:68 - Property: employeenumber
16:30:09,372 DEBUG XWorkConverter:68 - Class: .Employees
16:30:09,373 DEBUG XWorkConverter:68 - converter is null for property employeenumber. Mapping size: 0
16:30:09,373 DEBUG XWorkConverter:68 - field-level type converter for property [employeenumber] = none found
16:30:09,374 DEBUG XWorkConverter:68 - Property: employeenumber.employeenumber
16:30:09,374 DEBUG XWorkConverter:68 - Class:
16:30:09,374 DEBUG XWorkConverter:68 - global-level type converter for property [employeenumber] = none found
16:30:09,374 DEBUG XWorkConverter:68 - falling back to default type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@796cefa8]
16:30:09,374 DEBUG beans:81 - Key 'listValue' was not found on instance of java.util.LinkedHashMap. Introspection information for the class is: {getClass=public final native java.lang.Class java.lang.Object.getClass(), clone=public java.lang.Object java.util.HashMap.clone(), put=public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object), get=public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object), remove=public java.lang.Object java.util.HashMap.remove(java.lang.Object), equals=public boolean java.util.AbstractMap.equals(java.lang.Object), java.lang.Object@12910b0b=public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object), entrySet=public java.util.Set java.util.HashMap.entrySet(), hashCode=public int java.util.AbstractMap.hashCode(), class=java.beans.PropertyDescriptor@2fd2418a, keySet=public java.util.Set java.util.HashMap.keySet(), java.lang.Object@1a005861=freemarker.ext.beans.MethodMap@7f0ab78a, java.lang.Object@560508be={public void java.util.LinkedHashMap.clear()=[Ljava.lang.Class;@1898062f, public int java.util.HashMap.size()=[Ljava.lang.Class;@24be0446, public int java.util.AbstractMap.hashCode()=[Ljava.lang.Class;@370aa282, public final native java.lang.Class java.lang.Object.getClass()=[Ljava.lang.Class;@1b332109, public java.util.Set java.util.HashMap.keySet()=[Ljava.lang.Class;@39bde3d2, public java.util.Set java.util.HashMap.entrySet()=[Ljava.lang.Class;@61b80d9b, public boolean java.util.LinkedHashMap.containsValue(java.lang.Object)=[Ljava.lang.Class;@7a856d3b, public java.lang.Object java.util.HashMap.remove(java.lang.Object)=[Ljava.lang.Class;@4dc67b54, public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)=[Ljava.lang.Class;@21caefb0, public java.lang.Object java.util.HashMap.clone()=[Ljava.lang.Class;@123e1d25, public boolean java.util.AbstractMap.equals(java.lang.Object)=[Ljava.lang.Class;@2beb717e, public java.lang.String java.util.AbstractMap.toString()=[Ljava.lang.Class;@6e681db8, public void java.util.HashMap.putAll(java.util.Map)=[Ljava.lang.Class;@757753a8, public java.lang.Object java.util.LinkedHashMap.get(java.lang.Object)=[Ljava.lang.Class;@6d1576d7, public boolean java.util.HashMap.containsKey(java.lang.Object)=[Ljava.lang.Class;@1c2d5534, public java.util.Collection java.util.HashMap.values()=[Ljava.lang.Class;@6434d75f, public boolean java.util.HashMap.isEmpty()=[Ljava.lang.Class;@4927d15e}, size=public int java.util.HashMap.size(), clear=public void java.util.LinkedHashMap.clear(), isEmpty=public boolean java.util.HashMap.isEmpty(), containsKey=public boolean java.util.HashMap.containsKey(java.lang.Object), values=public java.util.Collection java.util.HashMap.values(), empty=java.beans.PropertyDescriptor@115e1464, containsValue=public boolean java.util.LinkedHashMap.containsValue(java.lang.Object), toString=public java.lang.String java.util.AbstractMap.toString(), putAll=public void java.util.HashMap.putAll(java.util.Map)}
16:30:09,375 DEBUG XWorkConverter:68 - Property: null

Any help is really appreciated


A man who works with his hands is a laborer; a man who works with his hands and his brain is a craftsman; but a man who works with his hands and his brain and his heart is an artist. Louis Nizer.
subject: sample jquery grid showcase explain
jQuery in Action, 3rd edition