You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hi Everyone,
I'm stuck on figuring out why a List Variable "lineItems" from my
entity comes back as null when passing it through the entity proxy.
All the other getter methods return values but for some reason the
list is null. When stepping through the code i can see that the list
variable is populated in the service method which populated the class.
This is how im trying to make things work and have based it on the
ListWidget program source. Everything is identical (i think). Any Help
would be greatly appreciated.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
You have to use the property name of the entity proxy. So in your case .with("lineItems"). If you need more than one property you can just add it to the parameter list, e.g. .with("lineItems", "otherPropertyName"). You can also go down the hierarchy with a dot notation. Imagine your InvoiceDetailsProxy contains a property "A" (which is an entity proxy) and you also want that property to be not null, you would add it to the with method like: .with("lineItems", "lineItems.a").
Your other properties are already filled because they are primitive types ( = no entity proxy). Only properties that are entity proxies or lists of entity proxies are null when you do not add these properties to the .with() method.
If you use the Editor Framework from GWT there is also a getPaths() method on the editor driver which returns an array of strings with all the property names the editor needs to be loaded. So you would do .with(editorDriver.getPaths()).
-- J.
Mark Wengranowski
unread,
Sep 28, 2011, 6:30:36 PM9/28/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Awsome!
Thanks for you help with this guys. Everything is working properly
now.
Cheers,
-Mark
Julian
unread,
Sep 28, 2011, 6:47:23 PM9/28/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Your other properties are already filled because they are primitive types ( = no entity proxy). Only properties that are entity proxies or lists of entity proxies are null when you do not add these properties to the .with() method.