id and name attributes 

WebObjects will happily provide name attributes for form fields but you don’t have to let it. Just add a name=”foo” binding, and WebObjects will name the form field foo instead. If the form field is inside a WORepetition, you’ll have to make sure the name field is unique since normally WebObjects does this for you. 

Similarly, you can put id=”foo” or really, anything=”foo” on any dynamic element and WebObjects will pass it through into the HTML for you.

So if you have a Javascript WYSIWYG editor or other smart component, and you want to attach it to your WO form fields, id=”xxx” is all you need to add to your wod file.


Copyright 2007, Pierce T. Wetter III