I'm still very new to JSON and GWT and I find it to pass back to JSON data one by one How am I trying to get my GWT app in the page back to JSON a class:
public class GetProductTree extends JavaScriptObject {Protected GetProductTree () {} Public Last Indigenous String getCustomerName () / * - {Return to this.customername; } - * /; }
It sure is sure that I go back to something very basic and this is not complete at the time so I am just trying (for now).
For the code, call it:
submitProject.addClickListener (New ClickListener) {click on Public Zero (widget w) {RequestBuilder.Method method = RequestBuilder. GET; Last string url1 = "http: // localhost: 8500 / getProducts.cfm"; //Window.alert(url1); RequestBuilder RB = New RequestBuilder (method, url1); {try rb.sendRequest (empty, new Anurodcolbak () {Pratikriyaprapt (request on public posts, replies response) {JSONObject oResults = (JSONObject) JSONParser.parse (response.getText ()); GetProductTree oResponse = oResults.isObject (..) getJavaScriptObject () (cast) ; Wi Ndowkalert (OResponsekgetCustomerName ());} public error to zero (request arg0, Throbl arg1) {Vindoktal ( "Error");}});} catch (RequestException e) {}}});
However, I get an error:
There is no source code types available for XYZ.GetProductTree; Have you forgotten to inherit an essential module?
I am importing the correct package for XYZ.GetProductTree on the call page. What am I missing?
This error compiler complains that it can not get him there in Classpath the GWT compiler To find their classes, they can be and to do in their classpath, and they also have to be referenced in a .gwt.xml module file. Can you post the contents of your package and the content of your .gwt.xml files? My guess is that wherever you put this class, it is not visible to the GWT compiler.
Comments
Post a Comment