Question

I am new to Sencha GXT framework for GWT, how can i get values from GXT generated TextFields in order to send it to server?

import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
public class Form extends LayoutContainer{
TextField<String> lastName = new TextField<String>();
    lastName.setFieldLabel("Last Name");
    fieldSet.add(lastName, formData); }

On client side how can i get entered values from lastName TextField?

Was it helpful?

Solution

Use lastName.getValue();

As per the GXT TextField api

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top