[Seaside] Issues with WAHtmlBuilder>>anchorWithUrl:do:

Roger Whitney whitney at cs.sdsu.edu
Sat Oct 11 19:45:20 CEST 2003


Got it. The classes that implement renderOn: are Array, BlockClosure, 
Object, String and UndefinedObject. Via Object anything that responses 
to asString will also work.

Is there a reason renderOn: is in Array rather than 
SequenceableCollection (or Collection) so other collections can be used?

On Saturday, October 11, 2003, at 05:08  PM, Avi Bryant wrote:

>
> On Sat, 11 Oct 2003, Roger Whitney wrote:
>
>> The method WAHtmlBuilder>>anchorWithUrl:do: states that the second
>> argument is a block (anchorWithUrl: urlString do: aBlock) is the VW
>> version of seaside. This is not correct. The argument needs to be a
>> string.
>
> Actually, like all such methods, it will accept either a block *or* a
> string (or, in fact, anything that implements #renderOn:).  This allows
> both, eg,
>
> html tableData: 'foo'
>
> and
>
> html tableData: [html bold: 'foo']
>
> to work, without requiring two versions of every single method.
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
>
>

----
Roger Whitney              Department of Computer Science
whitney at cs.sdsu.edu        San Diego State University
http://www.eli.sdsu.edu/   San Diego, CA 92182-7720
(619) 583-1978
(619) 594-3535 (office)
(619) 594-6746 (fax)



More information about the Seaside mailing list