I'm sure I must be making this harder than it needs to be, but I'm having zero success doing it.
Entering a new form, I'd like to display the name of an entity that was selected on the the calling page. The calling page is a Struts2 JSP, so I don't have the entire entity. I only have the entity's ID, passed in as a parameter on the request URL. That's easy enough to get, and I even have a service set up to go get the full entity once I have the ID. The problem is that the service is asyncronous. So, I get a Null Pointer Exception at the point where I try to set the data I'm retrieving into a label because the call hasn't yet completed. I'd rather not pass the name on the request URL - trying to avoid the messy encoding/decoding problems. I've tried to create an AsyncCallback class that included a hook that I could "wait" for, but this only seemed to create an infinite wait loop. So, now I'm wondering if I need to somehow "bind" the retrieved data to a field on my form so that it will populate when the call completes. Then again, maybe this is overkill, too. Is there a better way to solve this problem? Thanks, Dave -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
