Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Disable auto fetch calls of ComboBoxItem

    This is my application environment :
    Java 1.5, Smart GWT 2.1, GWT 2.1

    I have a ComboBoxItem with a attached option datasource. But even I called setAutoFetchData(false) , the combobox calls Datasource fetch requests without any user action. I want this fetch to be called on If user clicked on PickerIcon or typed on ComboBox.


    ComboBoxItem cmbRule11Payer = new ComboBoxItem("rule11Payer", "Rule 11 Payer");
    cmbRule11Payer.setOptionDataSource(CommonLookupDS.getLookupDS(LookupTypesClient.LOOKUP_COMPANIES));
    cmbRule11Payer.setDisplayField("value");cmbRule11Payer.setValueField("key");
    cmbRule11Payer.setAutoFetchData(false);
    cmbRule11Payer.setWidth(150);

    #2
    What's the exact call you're seeing? Look in the Developer Console - you may see a fetch for a single value because fetchMissingValues is also on by default, or you may be confused and a different component is actually sending a request (componentId is shown in the RPC tab).

    Comment

    Working...
    X