|
| <prev next> |
Server file writing...: msg#02290GoogleWebToolkit
Hi, I am trying to take the code the user writes into a text area and save it into the server side to compile it and run it.. This is code for working with a cluster but that's not relevant... My question is hot to create the text file and write the code the user gives into it, since GWT doesn't permit file writing. I tried using the Form Panel and the submit method like this: // Add an event handler to the form. form.addFormHandler(new FormHandler() { public void onSubmit(FormSubmitEvent event) { // This event is fired just before the form is submitted. We can take // this opportunity to perform validation. if (ta.getText().length() == 0) { Window.alert("The text box must not be empty"); event.setCancelled(true); } } public void onSubmitComplete(FormSubmitCompleteEvent event) { Window.alert(event.getResults()); // GET RESULTS???? } }); Which is the example code that the GWT API provides, the problem is that this way is depecrated and i don't know how to handle getResults method, or perhaps I am not even sure if this way I can achieve what i want... help plz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to Google-Web-Toolkit+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |