<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I try to figure out how this scriptaculous code works and I am not
getting the point.<br>
Here is the rendering code of the SUSortableTest :<br>
<blockquote>&nbsp;&nbsp; renderContentOn: html<br>
&nbsp;&nbsp;&nbsp; html paragraph: 'Drag and drop items to re-arrange!'.<br>
&nbsp;&nbsp;&nbsp; html div<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; style: 'float: left;';<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: [ self renderList: left named: 'left' titled: 'Left List'
on: html ].<br>
&nbsp;&nbsp;&nbsp; html div<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; style: 'float: left;';<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: [ self renderList: right named: 'right' titled: 'Right
List' on: html ]<br>
</blockquote>
It's easy to see what it produces but if I copy that code in one of my
class, Seaside is generating some 'with' tags in html source. And it is
normal because the WAHtmlRender doesn't understand the message #div and
#with:. So the #doesNotUnderstand: is invoked<br>
<blockquote>
  <blockquote>doesNotUnderstand: aMessage<br>
&nbsp;&nbsp;&nbsp; | argCount |<br>
&nbsp;&nbsp;&nbsp; argCount _ aMessage arguments size.<br>
&nbsp;&nbsp;&nbsp; argCount = 0 ifTrue: [^ self tag: aMessage selector].<br>
&nbsp;&nbsp;&nbsp; argCount = 1 ifTrue: [^ self tag: aMessage selector allButLast do:
aMessage argument].<br>
&nbsp;&nbsp;&nbsp; ^ super doesNotUnderstand: aMessage <br>
    <br>
tag: aString<br>
&nbsp;&nbsp;&nbsp; self openTag: aString.<br>
&nbsp;&nbsp;&nbsp; self closeTag: aString.<br>
    <br>
tag: aString do: anObject<br>
&nbsp;&nbsp;&nbsp; self openTag: aString.<br>
&nbsp;&nbsp;&nbsp; self render: anObject.<br>
&nbsp;&nbsp;&nbsp; self closeTag: aString.<br>
  </blockquote>
</blockquote>
The results seems normal to me. So my question is : how is working the
sciptaculous code ?<br>
<br>
Paco<br>
</body>
</html>