View Full Version : is there a tuttorial to make a simple form that submits?
4 Aug 2008, 12:35 PM
I am trying to use gxt and their code is a lot more confusing than gwt however it have some nice widgets.
Right now I trying to make a formpanel submit information to the server. I am not sure how to do it in gxt because I cant find calls like submit
4 Aug 2008, 12:38 PM
There really is no similar concept to a typical HTML form submit in GWT or GXT.
Best approach is to have a button (named submit if you wish) that check/collects all the values you need to send and use RPC to send data to the server.
If you must do a FORM submit, you can use the GWT FormPanel and place GXT widgets inside.
4 Aug 2008, 1:08 PM
thanks. I am trying to figure out how to do RPC.
seems a lot more complex than normal form submits.
Before in gwt i just had to submit the form and the other side server side I am using glassfish to get the post data into a database and return stuff back to the program.
RPC it seems like I am suppose to have a class that they both share or something. I am getting confused on how to do RPC.
Know any good tuttorials on it?
4 Aug 2008, 1:29 PM
4 Aug 2008, 2:02 PM
thanks. i got it to work
I was having trouble setting up the servlet
in glassfish i was just using jsp with java class wrapped and didnt use servlet
Took me a while to get gwt to go to the right path to access the servlet from the server.
Well thanks for the help.
Still I think gwt was eaiser to code but this gxt seems to have a more of a set way to code a ui which might be better. not sure. I am thinking of recoding the gwt I did using this and try to code the ui more user friendly and more powerful.
UI coding sure is a lot more harder than coding backend stuff. Now I wished I have taken more ui classes in college
12 Aug 2008, 7:47 AM
Wouldn't it be a good thing is GXTs FormPanel had a submit method too?
Not everyone wants or can use a servlet to do simple form submissions.
I'm thinking in particular here about interfacing with legacy C/CGI servers.
12 Aug 2008, 7:51 AM
ya that is true but I guess you can wrap a gwt form if you wanted to loosing gxt form features.
However you can still do asyc sends which can submit data to another place without just having to send to java servelt.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.