1. #1
    Sencha User
    Join Date
    Jan 2011
    Location
    Lima, Peru
    Posts
    43
    Answers
    5
    Vote Rating
    5
    poseidonjm is on a distinguished road

      0  

    Default Answered: (beta2) driver.hasErrors() doesn't work with required fields

    Answered: (beta2) driver.hasErrors() doesn't work with required fields


    I have a Editor with required fields. And I call driver.hasErrors() but the result is false
    snippet of uibinder
    Code:
    <gxt:FramedPanel ui:field="form" headerVisible="false" buttonAlign="END" >
            <form:FieldSet ui:field="fieldSet" headingText="User Information" collapsible="false"  >
              <container:VerticalLayoutContainer>
                <container:child layoutData="{verticalLayoutData}">
                  <form:FieldLabel text="First Name">
                    <form:widget>
                      <form:TextField ui:field="nombres" allowBlank="false" />
                    </form:widget>
                  </form:FieldLabel>
                </container:child>
                <container:child layoutData="{verticalLayoutData}">
                  <form:FieldLabel text="Last Name">
                    <form:widget>
                      <form:TextField ui:field="apellidos" allowBlank="false" />
                    </form:widget>
                  </form:FieldLabel>              
                </container:child>
                <container:child layoutData="{verticalLayoutData}">
                  <form:FieldLabel text="Age">
                    <form:widget>
                      <form:NumberField ui:field="edad" />
                    </form:widget>
                  </form:FieldLabel>
                </container:child>
              </container:VerticalLayoutContainer>
            </form:FieldSet>
            
            <gxt:button>
              <button:TextButton text="Save" ui:field="save" icon="{images.save}" />
            </gxt:button>
            <gxt:button>
              <button:TextButton text="Cancel" ui:field="cancel" icon="{images.cancel}" />
            </gxt:button>
                    
          </gxt:FramedPanel>
    snippet of code
    Code:
    @UiHandler("save")
        public void onSave(SelectEvent event){        
                    RequestContext context = driver.flush();
                    if(!driver.hasErrors()){
                        panel.hide();
                        context.fire(new Receiver<Void>() {
                            
                            @Override
                            public void onSuccess(Void response) {
                                Info.display("ExampleRF", "Se guardo correctamente");    
                            }
                        });
                    }else{
                        GWT.log("ok ");
                    }
        }

  2. This has been fully resolved in SVN, and most of it is available in the latest RC. The only issue fixed in SVN that isn't available in the RC is that when you enter an unparsable value and blur, the error will not go away until you enter a new value - now you can just focus/blur without changing the value, and the value will be cleared, along with the parse error.

  3. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Thanks - we bumped into this today actually.

    It worked before, the binding examples even used it, but it is indeed broken now. We'll update this thread when we pin down the issue, come up with a workaround, or get a fix.

  4. #3
    Sencha User
    Join Date
    Jan 2011
    Location
    Lima, Peru
    Posts
    43
    Answers
    5
    Vote Rating
    5
    poseidonjm is on a distinguished road

      0  

    Default


    I made an example and published an article in spanish here
    http://vivagwt.blogspot.com/2012/02/...-30-beta2.html
    And the source code is in eclipse
    http://www.2shared.com/file/__WFqp_Z/ExampleRF.html

  5. #4
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    This issue has been fixed and is available in the beta 4 release today. There is one caveat still, and I will leave this issue as open until it is complete: parsing errors don't show up in the driver. Validation errors do, but due to how a badly parsed value is cleared to be entered again correctly, the error isn't present any longer.

  6. #5
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    This has been fully resolved in SVN, and most of it is available in the latest RC. The only issue fixed in SVN that isn't available in the RC is that when you enter an unparsable value and blur, the error will not go away until you enter a new value - now you can just focus/blur without changing the value, and the value will be cleared, along with the parse error.

Thread Participants: 1

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..."