Michi_de
16 Oct 2008, 1:10 AM
Hi!
Im totaly new to Ext GWT. I worked little with GWT (its realy great) and now i have to use Ext GWT. Im sure Ext GWT is even better as the simple GWT. But so far i have some problems.
I create a formpanel, just like the the example:
FormPanel simple = new FormPanel();
TextField<String> firstName = new TextField<String>();
firstName.setFieldLabel("Name");
simple.add(firstName);
simple.addButton(new Button("Save"));
So far so nice. Its just a snipplet of my code. When im running this "application" i get what i want to see: a small form with a button.
But my problem is: how to work with this form? How can i wire the "Save" button with some ActionListener in order, to start a method or sthg?
For example:
when i click the save button, a method should apply all the fields data into a class. This class i want to send via rpc to a servlet in order to save the data into a database.
Its so easy in GWT. You just have to add the .addClickListener to the button. Start the method etc.
In Ext GWT i just cant do anything :(
Do any of you have example code for something like this?
Im totaly new to Ext GWT. I worked little with GWT (its realy great) and now i have to use Ext GWT. Im sure Ext GWT is even better as the simple GWT. But so far i have some problems.
I create a formpanel, just like the the example:
FormPanel simple = new FormPanel();
TextField<String> firstName = new TextField<String>();
firstName.setFieldLabel("Name");
simple.add(firstName);
simple.addButton(new Button("Save"));
So far so nice. Its just a snipplet of my code. When im running this "application" i get what i want to see: a small form with a button.
But my problem is: how to work with this form? How can i wire the "Save" button with some ActionListener in order, to start a method or sthg?
For example:
when i click the save button, a method should apply all the fields data into a class. This class i want to send via rpc to a servlet in order to save the data into a database.
Its so easy in GWT. You just have to add the .addClickListener to the button. Start the method etc.
In Ext GWT i just cant do anything :(
Do any of you have example code for something like this?