[Seaside] Utility Method
Bill Holloway
bill.holloway at gmail.com
Thu Jun 16 17:54:26 CEST 2005
I added to my personal image, the following utility method to WAHTMLRender:
labeledTextInputOn: aSymbol of: anObject
self
label: [aSymbol asCapitalizedPhrase asString] value input: [];
textInputOn: aSymbol of: anObject
This generates a quick, one-off <label>ed field. I tried using
WAHtmlRenderer>>#label:input: but this puts the <input> tag inside the
<label> tag's body. HTML gurus, is that ok? Here's a sample what the above
method generates (formatted source):
<label for="id1">
First Name
</label>
<input type="text" value="Fred" name="2" id="id1" />
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20050616/6165da37/attachment.htm
More information about the Seaside
mailing list