NNKL.COM
welcome to my space
X
Search:  
 HOME   form.items is emty in nested form
form.items is emty in nested form
Published by: admin 2010-03-12
Welcome to:nnkl.com

  • I've got troubles with getting information from a form nested into a tabpanel. My layout code looks like this:

    var dialog = new Ext.Window({
    layout: 'fit',
    modal: true,
    shadow: true,
    items: [
    {
    xtype: 'tabpanel',
    activeTab: 0,
    items: [{
    title: this.text.viewDates,
    xtype: 'form',
    labelWidth: 100,
    items:[
    {
    xtype: 'datefield',
    fieldLabel: this.text.startDate,
    name: "startDay",
    format: this.text.dateFormat,
    },{
    xtype: 'timefield',
    fieldLabel: this.text.startTime,
    name: "startTime",
    }]
    // more tabs and forms here

    The problem is that when i'm getting the form like this:

    On SGML and HTML::
    <UL> <LI><P>list item 1 <LI><P>list item 2 </UL> Such empty elements never have end tags. The document type definition and the text . Similarly, the following element type declaration for FORM prohibits nested forms: . In HTML, boolean attributes may appear in minimized form -- the attribute's
    http://www.w3.org/TR/html401/intro/sgmltut.html
    HOME
    How to Embed AJAX(!) Forms in Symfony 1.2 Admin Generator « A Web ::
    May 4, 2009 The last item on our list gets an add image, which makes an AJAX call to add new blank forms. . Nested forms coming in and out with ajax! . empty($taintedValues["item_pos$i"]['item_id'])
    http://israelwebdev.wordpress.com/2009/05/04/how-to-embed-ajax-forms-in-symfony-12-admin-generator/
    HOME
    var tab = dialog.find("title", this.text.viewDates)[0];
    var form = tab.form;

    the items attribute of form is empty and the function call form.findField("startDay") doesn't return anything.

    What is wrong?

    UPDATE:
    If the dialog is shown for a second time the items in form are filled and the method findField works, but calling dialog.show(); dialog.hide() before calling the findField does not work.
  • Yahoo! Developer Network - Flash Developer Center - ASTRA Flash ::
    It is designed to be nested in a Form rather than used as a standalone class. . other items in the Form, set the label property to an empty string(" ").
    http://developer.yahoo.com/flash/astra-flash/form/using.html
    HOME
    Hands-On: Dreamweaver CS3 Building a Contact Form Exercise: Start ::
    File Format: PDF/Adobe Acrobat - Quick ViewIn the Properties Inspector leave the Action and Enctype empty for now, for each of the items in the form, everyone on its own row of the nested table.
    http://cis347.info/PDF/FormElementsCS3.pdf
    HOME


  • This is probably due to the lazy rendering. When you do a findField("someValue") it will do a lookup in the items array, which has the id of a component as key. As you use the 'name' property, this will fail. When this fails, it will loop the items array and check if field.getName() for each field equals your given key ("startDay"). This getName() method doesn't use the name property as you define it, it will check the name property of the element for this field. As the field isn't rendered yet, this will fail.

    Solution:
    Also define an 'id' property, next to the 'name' property.





  • Get Smart About Monitoring Virtual Machines
    Microsoft Gets Ex-Streamly Cozy with U.K.'s MediaWave

    You are looking at:nnkl.com's form.items is emty in nested form, click nnkl.com to home
  • 039 if 039 we evolved from monkeys or apes or gorillas or whatever then why are there still monkeys or apes or
  • how can monkeys apes still exist if we evolved from them
  • im looking for some information on a company which is now nonexistent called evocash
  • if r s users evolved from apes then why are there still report monkeys
  • if man evolved from ape monkey why is there still ape monkeys and dogs cats etc are still dogs an cats
  • if some people say that humans evolved from monkeys and apes then why are there still apes and monkeys
  • why do creationists always pull the 039 why are there still monkeys 039 argument
  • if we all evolved from monkeys apes why are they still here
  • if man evolved from monkeys or apes why are there still apes and monkeys
  • is some people think that we come from apes then why are there still monkeys
  • if we evolved from apes monkeys why is it that there are still apes monkeys around
  • if u believe we evolved from apes and monkeys then why are there still apes and monkeys
  • if man came from monkeys and apes then why do we still have monkeys and apes
  •  
  • if man evolved from monkeys and apes why are they still here
  • if humans evolved from monkeys apes why are they still here
  • if humans evolved from apes monkeys then why are they still here
  • if we evolved from apes monkeys why are there still apes monkeys
  • how do i become to work for the usps
  • if humans evolved from monkeys and apes why are there still apes
  • why dont monkeys apes still evolve into humans today why would it just stop if evolution is real
  • if man evolved from monkeys and apes than why do we still have monkeys and apes
  • they say we people came from the family of monkeys or apes why there are still monkeys
  • if man evolved from apes why are there monkeys and apes around
  • if we share common ancestor with apes why are there still monkeys
  • if man evolved from monkeys and apes why are there still monkeys and apes in the world
  • if man is descended from monkeys and apes why do we still have monkeys and apes
  • how come people ask if man evolved from monkeys why are there still monkeys why are they usually christian
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 nnkl.com        Site made:CFZ