1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    226
    Vote Rating
    2
    TheBuzzer is on a distinguished road

      0  

    Default is there a tuttorial to make a simple form that submits?

    is there a tuttorial to make a simple form that submits?


    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

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    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.

  3. #3
    Sencha User
    Join Date
    Aug 2008
    Posts
    226
    Vote Rating
    2
    TheBuzzer is on a distinguished road

      0  

    Default


    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. #4

  5. #5
    Sencha User
    Join Date
    Aug 2008
    Posts
    226
    Vote Rating
    2
    TheBuzzer is on a distinguished road

      0  

    Default


    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

  6. #6
    Ext GWT Premium Member
    Join Date
    Mar 2008
    Posts
    87
    Vote Rating
    0
    EvilTed is on a distinguished road

      0  

    Default


    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.

    ET

  7. #7
    Sencha User
    Join Date
    Aug 2008
    Posts
    226
    Vote Rating
    2
    TheBuzzer is on a distinguished road

      0  

    Default


    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.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar