Threaded View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jan 2010
    Location
    Colorado Springs
    Posts
    14
    Vote Rating
    0
    jopelkeyca is on a distinguished road

      0  

    Default [FNR] FormPanel/FormField validation issue with error icons

    [FNR] FormPanel/FormField validation issue with error icons


    I've run across several issues that I can't seem to fix or workaround in GXT's FormPanel/FormField validation.

    I've attached code to demonstrate the issue; the classes are in the .zip file along with a couple screenshots.

    I am running with GXT 2.1.1 and GWT 2.0.3, on Mac OS/Firefox 3.6.6 (also reproducable on Ubuntu/Firefox 3.5.9). I can also reproduce this in both development and production mode.

    I basically have a FormPanel underlying a TabPanel with multiple tabs. When I hit the Save button, I want the fields on all the tabs to be validated (and marked invalid if they're not valid). And when I hit the Reset Button I want the original values restored (and any fields that were marked invalid should have those errors cleared). Pretty basic really.

    Here's the issues I am seeing when I run the attached code:

    1. The error icons on the fields in tabs that are not currently visible are displayed in the wrong place when I visit the other tab. (i.e. in the example, bring up the app, hit Save, then go to the 2nd tab where you can see that the error icons are not displayed properly to the right of the field.) I have attached a screenshot of this in FF 3.5.9. It happens in IE8 as well - the icons are just a little further right, but still in the middle of the Field).
    I figured out that I had to do a tabPanel.setDeferredRender(false); in order to render all the tabs immediately so that fields in tabs not currently showing would get marked as invalid, but I can't figure out how to fix this placement issue.

    2. The error icons for CheckBoxGroup and RadioGroup fields are not cleared when I do a formPanel.reset()
    (i.e. in the example, bring up the app, go to the 2nd tab, hit Save, then hit Reset and you can see that the error icons are not cleared on the 'Music' CheckBoxGroup or the 'Favorite Color' RadioGroup)

    3. Lastly, the Events.Invalid event is being fired during a formPanel.reset(). It seems like that should only be fired during the formPanel.isValid() call? If I'm resetting fields and removing their validation errors using a formPanel.reset() call, I would not expect to get Events.Invalid events on those fields. Seems odd?

    Any help much appreciated since issue #1 in particular is a fairly large issue for me.

    Thanks,
    Jo
    CA Technologies
    Attached Files

Similar Threads

  1. Replies: 2
    Last Post: 21 Jul 2010, 1:25 AM
  2. [FNR] Accordian, FormPanel, ComboBox
    By jhook in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 6 Nov 2009, 2:16 PM
  3. [SOLVED]Inject a formfield into a FormPanel in between items
    By skaue in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 17 Oct 2008, 2:58 AM
  4. formField, existing input, and validation
    By mcohnen in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 31 Oct 2007, 8:29 AM
  5. FormField's applyTo and Form validation
    By cmd.ares in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 21 Jul 2007, 9:23 PM

Thread Participants: 1

Tags for this Thread