Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2009
    Location
    Lille
    Posts
    18
    Vote Rating
    0
    Trey is on a distinguished road

      0  

    Default [INFOREQ] compositefield don't send any valid event

    [INFOREQ] compositefield don't send any valid event


    In the API doc, compositefield have a "valid" event, but the event is never throw by the compositefield.
    ex :
    {
    xtype:'compositefield',
    fieldLabel:'test',
    listeners:{
    valid:function(){console.log("ok");}
    },
    items:[
    {
    xtype:'spinner',
    listeners:{
    valid:function(){console.log("ok");}
    }
    }
    ]

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    I'm having some difficulty following you. Perhaps if you followed the bug forum guidelines: http://www.extjs.com/forum/showthrea...-the-Bug-Forum we might be able to help.

  3. #3
    Sencha User
    Join Date
    Dec 2009
    Location
    Lille
    Posts
    18
    Vote Rating
    0
    Trey is on a distinguished road

      0  

    Default


    Ext version tested:
    • Ext 3.2.1


    Adapter used:
    • ext


    css used:
    • only default ext-all.css




    Browser versions tested against:
    • FF3 (firebug 1.3.0.10 installed)


    Operating System:
    • Win Vista


    Description:
    • I have a compositefield with, for example, a textfield.
      When I set a value in the textfield, I dont have any "valid" event throw by the compositefield.
      How can I be warn when the textfield is valid ?


    Test Case:

    [CODE]
    {
    xtype:'compositefield',
    fieldLabel:'test',
    listeners:{
    valid:function(){
    console.log("ok");// never throw
    }
    },
    items:[
    {
    xtype:'spinner',
    listeners:{
    valid:function(){
    console.log("ok");}
    }
    }
    ]
    }

  4. #4
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default


    I believe OP is looking for the child field events to be relayed to the parent Composite field.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  5. #5
    Sencha Premium Member
    Join Date
    Mar 2007
    Posts
    39
    Vote Rating
    0
    rmesser is on a distinguished road

      0  

    Default


    Further note -- events from items contained in a composite field don't bubble up, even if "bubbleEvents" is set. That seems to be because the ownerCt of the items are an Ext.Container built on the fly inside initComponent of Ext.form.CompositeField. Then then ownerCt of the Ext.Container is set to undefined, so there is no link from composite field items to their parent form.

    This particular issue may have been reported in other places, but I thought I'd mention it led me to waste several hours trying to debug form validation. Basically the Ext.field.CompositeField class seems to be broken in a few ways, probably mostly related to the fact that the items inside the CompositeField are left inside an orphaned container.

  6. #6
    Sencha User
    Join Date
    May 2013
    Posts
    3
    Vote Rating
    0
    Gnafu is on a distinguished road

      0  

    Default


    The CompositeField owerwrite the behaviour on validation of its children when combineErrors is TRUE (is the default setting).

    If you are using a compositeField with a single child, you are misusing the compositeField, it's ment to be used with more fields (to "compose" them) and the validation should be done alltogether.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar