Friday, March 4, 2016

Generic way to acess a entityProxy properties

Good night.

As i have a dozen entities in my system, and pretty much the same layout for their display, i'm trying to create a generic panel, wich could receive any entityProxy and a set of parameters, those parameters would be the path of the attribute i'm trying to display.
My ideas was to, from the proxy, read the value based on a path, like the "with" from the request context. 

Something like this:
Person has a Address
Address has a street_name

String name = person.getAttribute("address.streetName");

Has someone ever did something similar?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment