1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    8
    Vote Rating
    0
    icegoffy is on a distinguished road

      0  

    Default gxt TextField not showing boxes

    gxt TextField not showing boxes


    Here's the code i used:

    private LayoutContainer createFilterByColumn2() {
    FormLayout formLayout = new FormLayout();
    formLayout.setLabelAlign(LabelAlign.LEFT);
    LayoutContainer main = new LayoutContainer(formLayout);

    dfFrom = new DateField();
    dfFrom.setFieldLabel("From Date");
    DateTimePropertyEditor propertyEditor = dfFrom.getPropertyEditor();
    propertyEditor.setFormat(dateFormatter);
    main.add(dfFrom);

    cboDateType = new ComboBox<StringModel>();
    cboDateType.setFieldLabel("Date Type");
    cboDateType.setDisplayField("label");
    cboDateType.setEmptyText("Select");
    cboDateType.setEditable(false);
    cboDateType.setTriggerAction(TriggerAction.ALL);
    ListStore<StringModel> dateTypeStore = RegistryUtil
    .getManifestDateTypeStatusStore();
    cboDateType.setStore(dateTypeStore);
    main.add(cboDateType);

    txtEquipment = new TextField<String>();
    txtEquipment.setFieldLabel("Equipment IDs");
    txtEquipment.setEmptyText("Enter you name");
    txtEquipment.setMinLength(4);
    main.add(txtEquipment);

    TextField<String> txtDestinName = new TextField<String>();
    txtDestinName.setFieldLabel("Destination Name");
    main.add(txtDestinName);
    return main;
    }

    Here's the screenshot :
    Attached Images