Web Connection User's Guide

Dynamic form data

If the HTML code dynamically creates <INPUT> elements, the HTML file wrapper generator cannot automatically create form data entries. However, the developer can add the desired form elements as attributes by overriding the class method abtHtmlFormDataInterface of the HTML file wrapper interface. For example, the overridden method could be coded as follows:

abtHtmlFormDataInterface
 
     |myEntries|
     myEntries:=Dictionary new.
     myEntries
	        at: 'ButtonZ' put:AbtHtmlPushbutton;
	        at: 'ListX' put: AbtHtmlList.
     ^super abtHtmlFormDataInterface
	        addAll:myEntries;
	        yourself


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]