1. #1
    Sencha User PhiLho's Avatar
    Join Date
    Nov 2011
    Location
    Near Paris, France
    Posts
    139
    Answers
    2
    Vote Rating
    1
    PhiLho is on a distinguished road

      0  

    Default Unanswered: Empty combo box when filling it with a RPC service

    Unanswered: Empty combo box when filling it with a RPC service


    In a UiBinder file, I define a combo box in a HBoxLayoutContainer (along with some other components that are displayed fine):
    Code:
    <container:child layoutData="{boxLayoutData_MarginRight}">
      <form:FieldLabel text="Granularity">
        <form:widget>
          <form:ComboBox ui:field="granularityCombo"
              allowBlank="false" triggerAction="ALL"/>
        </form:widget>
      </form:FieldLabel>
    </container:child>
    In the Java code, I define it as:
    Code:
    GranularityProperties m_props = GWT.create( GranularityProperties.class );
    ListStore<Granularity> m_store = new ListStore<Granularity>( m_props.key() );
    
    @UiField(provided = true)
    ComboBox<Granularity> granularityCombo;
    and in the asWidget() method, I create it:
    Code:
      granularityCombo = new ComboBox<Granularity>( m_store, m_props.name() );
      GranularityServiceAsync service = (GranularityServiceAsync) GWT.create( GranularityService.class );
      final AsyncCallback<List<Granularity>> callback = new AsyncCallback<List<Granularity>>()
      {
         @Override
         public void onSuccess( List<Granularity> result )
         {
            System.out.println("OK with " + result);
            m_store.addAll( result );
         }
    
         @Override
         public void onFailure( Throwable caught )
         {
            // Log error? Display message...
            System.out.println("Oops " + caught);
         }
      };
      service.getGranularities( callback );
    My service works, I get data in the result parameter.

    But the combo box is empty, displayed as a button with a >> content, showing a tiny empty list.
    Does the combo box support filling the store asynchronously as above?
    The GXT Demos/examples get their data from the client side, so it is hard to tell if I make a mistake or if that's a bug in the Beta 2.

  2. #2
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    239
    Answers
    4
    Vote Rating
    2
    gishmo is on a distinguished road

      0  

    Default


    I have several combo boxes working with data from RCP calls.

    But, I don't use UiBinder ...

  3. #3
    Sencha User PhiLho's Avatar
    Join Date
    Nov 2011
    Location
    Near Paris, France
    Posts
    139
    Answers
    2
    Vote Rating
    1
    PhiLho is on a distinguished road

      0  

    Default


    The problem has disappeared with Beta3.
    Thanks.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."