joe young schrieb:
> In GeoNodeController.java:
>
> public void addNewNode(String theNewNodeParentId){
> service.addNewGeoNode(theNewNodeParentId, new AsyncCallback()
> {
>
> public void onSuccess(Object result) {
> GeoNode tmp = (GeoNode)result;
> --------->>> loadGeoNodeForm();
>
[...]
>
> However loadGeoNodeForm() is a public class from GeoNodeController.
> So the compiler won't let me do it,
What exactly is the error-message the compiler is giving? What
I'm missing in your code is the assigment of the result passed
as parameter to onSuccess to some global variable, so there
are two reasons why this doesn't work:
1. The method (not the class as you named it) has a parameter,
so the actual call would be loadGeoNodeForm(tmp) and the
compiler is begging for a parameter.
2. You forgot to assign tmp to some global variable before
refreshing your view, so you see the old view (as you work
with old data)
Your next step should be telling us about the error-message
the compiler is giving otherwise all hint are based on guessing.
Regards, Lothar
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---