super.construct(parent, args); this.formdata = {}; var base = item.name; if (base == null) base = "$noname" var itemname = base; var count = 1; while (this.formdata[itemname]) { itemname = base + count++; } this.formdata[itemname] = item; for (var name in this.formdata) { if (this.formdata[name] == item) { delete this.formdata[name]; } } if (! this.changed) return; if (this['formdata']) { var fd = this.formdata; for (var k in fd) { fd[k].rollback(); } } this.setChanged(false, true); if (! this.changed) return; if (this['formdata']) { var fd = this.formdata; for (var k in fd) { fd[k].commit(); } } this.setChanged(false, true); web form

The baseform tag allows you to create a web form. The data represented by components that are enclosed in the form tag can be sent to the server using the <submit> tag. Each form component, such as <checkbox>, <combobox> or <radiogroup> must have a name. The data is submitted as name-value pairs, using the name and value of the component.

baseform provides no layout for its contents. If you want a simple automatic form layout use the <form> tag.

See Also:

  • <form> and <submit>
  • Form components: <checkbox>, <radiogroup>, <combobox>, <button>, <edittext>, and <list>