[Seaside] with: takes block vs string

SainTiss saintiss at gmx.net
Wed Jul 23 12:00:02 UTC 2008

In that case, how come:

html script with: [html text: 'testing']


<script type="text/javascript">/*<![CDATA[*/[] in 
STAAMenuComponent>>renderContentOn: {[html text: 'testing']}/*]]>*/</script>

while html script with: 'testing'


<script type="text/javascript">/*<![CDATA[*/testing/*]]>*/</script>

This is what I mean by the script tag expecting a string. Sure, you can pass 
it a block, but the block won't be evaluated as I would like it to be.

Or did I misunderstand you?



On Wednesday 23 July 2008 13:53:00 Gerhard Obermann wrote:
> That is not correct.
> Look at the implemenation in WATagBrush.
> with: 'asdasd' and with: [] and: with: anyKindOfObject
> is basically available for all tags!
> The argument of #with: is rendered using
> double dispatching, therefore any object can be
> passed as argument.
> br
> Gerhard

A liberal is a person whose interests aren't at stake at the moment
  -- Willis Player

Hans Schippers
Research Assistant of the Research Foundation - Flanders (FWO - Vlaanderen)
Formal Techniques in Software Engineering (FoTS)
University of Antwerp
Middelheimlaan 1
2020 Antwerpen - Belgium
Phone: +32 3 265 37 88
Fax: +32 3 265 37 77

More information about the seaside mailing list