Hello, <br><br>i am new with seaside and i want make this demo:<br><br>class Site root component:<br><br>children<br> ^ Array with: self menu<br><br>renderContentOn: html<br> html div class: 'site'; with: [<br>
html div class: 'menu'; with: self menu. <br> ]<br><br>initialize<br> super initialize.<br><br> menu := Menu2 new.<br><br>+canberoot and accessors for menu<br><br><br>class Menu2 instance variables: items
<br>initialize<br> super initialize.<br> items := OrderedCollection new.<br> items<br> add: (Item new value: '1').<br> items<br> add: (Item new value: '2').<br> items<br> add: (Item new value: '3')
<br><br>renderContentOn: html <br> html<br> unorderedList: [items do: [:item | html div class: 'a'; with: (SubMenu new item: item) ]]<br><br>class Item instanceVar value<br>renderContentOn: html<br> html text: value.
<br><br><br><br>WAComponent subclass: #SubMenu<br> instanceVariableNames: 'item itemEditor'<br> classVariableNames: ''<br> poolDictionaries: ''<br> category: 'Pom'<br><br>editItem: aItem
<br> self itemEditor item: aItem copy.<br> (self call: self itemEditor)<br> ifTrue: [aItem copyFrom: self itemEditor item]<br><br>initialize<br> super initialize.<br> <br> itemEditor := ItemEditor new.
<br><br>renderContentOn: html <br> html<br> listItem: [html text: ' a ' , self item value.<br> html anchor<br> callback: [self editItem: self item];<br> with: 'e']
<br><br>and itemEditor, i think editors is fine. <br><br>i think problem is in menu2 when i create new object subMenu because when i click on 'e' and i want edit item i get error:<br><br><h3>Possible Causes</h3><ul>
<li>you do not implement #children correctly</li><li>you do not backtrack #children correctly</li><li>you do not implement #states correctly</li></ul><h3>Stack Trace</h3><ol><li><dl><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&3">
thisContext</a></dt><dd>WARenderContinuation>>componentsNotFound:</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&4">self</a></dt><dd>a WARenderContinuation</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&5">
aCollection</a></dt><dd>an Array(a SubMenu)</dd></dl></li><li><dl><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&6">thisContext</a></dt><dd>WARenderContinuation>>unprocessedCallbacks:
</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&7">self</a></dt><dd>a WARenderContinuation</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&8">
aCollection</a></dt><dd>an Array(a WAActionCallback)</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&9">owners</a></dt><dd>an Array(a SubMenu)</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&10">
each</a></dt><dd>a WAActionCallback</dd></dl></li><li><dl><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&11">thisContext</a></dt><dd>WARenderContinuation>>processCallbacks:</dd>
<dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&12">self</a></dt><dd>a WARenderContinuation</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&13">
aRequest</a></dt><dd>a WARequest GET /seaside/site</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&14">lastPosition</a></dt><dd>0</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&15">
callbackStream</a></dt><dd>a WACallbackStream</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&16">each</a></dt><dd>a WAToolFrame</dd></dl></li><li><dl><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&17">
thisContext</a></dt><dd>[] in WARenderContinuation>>handleRequest: {[self processCallbacks: aRequest]}</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&18">self</a></dt><dd>
a WARenderContinuation</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&19">aRequest</a></dt><dd>a WARequest GET /seaside/site</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&20">
r</a></dt><dd>nil</dd></dl></li><li><dl><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&21">thisContext</a></dt><dd>BlockContext>>on:do:</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&22">
self</a></dt><dd>[] in WARenderContinuation>>handleRequest: {[self processCallbacks: aRequest]}</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&23">exception</a></dt><dd>an ExceptionSet
</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&24">handlerAction</a></dt><dd>[] in WARenderContinuation>>withNotificationHandler: {[:n | n]}</dd><dt><a href="http://localhost:8080/seaside/site?_s=sVPLwysvyCJwWnRw&_k=aILgLVQn&25">
handlerActive</a></dt><dd>true</dd></dl></li></ol><br><br>I hope it's quite clear. Thnx for help<br>