If it's intended to be a leaf, return isFolder:false in the data. If it's expected to an empty folder, explicitly provide an empty Array or List for the children property.
How do I get isFolder:false in the data? I am passing a list called resultList which is a list of objects called EmployeeDTO, do I put a field on that object called isFolder and set that to false?
The reason I'm using DTO's is because I am using OFBiz and it's entity engine (not hibernate). It looks as though the only way to would be to use sql for a direct connection to the db which is not what we want. I use the objects in session and then commit them to the db when changes are made.
Comment