<div>The&nbsp;Scriptaculous component&nbsp;SUTabPanel is a pretty cool script enabled component that works pretty much out of the box. Just call: </div>
<div>SUTabPanel&gt;&gt;add: yourSubComponent label: theMenuString </div>
<div>for each of&nbsp;your sub-components. It puts in all the div tags you need to make it look pretty and marks the selected tab for CSS highlghting etc. automagically.</div>
<div>&nbsp;</div>
<div>An example can be seen on my&nbsp; (sorry site for the shameless plug :)&nbsp;<a href="http://chalculator.seasidehosting.st/">Football Pool</a>&nbsp;website. You can login with email: guest pwd: football&nbsp; </div>
<div>&nbsp;</div>
<div>Regards</div>
<div>Johnny</div>
<div>(Note: to get a &quot;menu&quot; of the links on one line, you have to change the code to put &lt;span&gt;&#39;s around the list items instead of div&#39;s. I THINK I was able to make that work, but I didnt like it so I changed it back)</div>

<div><br>&nbsp;</div>
<div class="gmail_quote">On Thu, Oct 23, 2008 at 1:48 PM, Andres Fortier <span dir="ltr">&lt;<a href="mailto:andres@lifia.info.unlp.edu.ar">andres@lifia.info.unlp.edu.ar</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Sebastian,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;you may be interested in WANavigation and WASimpleNavigation for the menu stuff (I based on those classes to make a custom menu).<br>
<br>You may also want to take a look at WADecoration, which can help you to decouple the header/footer from the main page:<br><br>WADecoration:<br>I am an abstract decoration around instances of WAComponent. I can be added to aComponent by calling #addDecoration: and I change the basic behaviour or look of a component. There are several methods that can be overriden to archive this:<br>
<br>- #renderContentOn: to emit xhtml around the decorated component. Call #renderOwnerOn: to let the owner emit its output.<br>- #processChildCallbacks: to intercept the callback processing of the owner.<br>- #handleAnswer: to intercept the answer processing.<br>
<br>HTH,<br>&nbsp; &nbsp; &nbsp; &nbsp;Andrés<br><br>Sebastian Van Lacke escribió:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c">Hello, <br>I&#39;m from Argentina and I am working on a Seaside project. I don&#39;t speak English very well, so I hope you understand...<br><br>I need to recreate an old site using Seaside, and I and I&#39;m having problems with the structure of the site.<br>
<br>My page has a header, menu, and a footer (which are repeated throughout the site) and a body that changes for each page of the site, depending on the option chosen on the menu.<br><br>CSRootComponent&gt;&gt;renderContentOn: html<br>
&nbsp;html div<br>&nbsp;id:&#39;allContent&#39;;<br>&nbsp;with:[<br>&nbsp; html render: header.<br>&nbsp; html render: menu.<br>&nbsp; self renderBodyOn: html.<br>&nbsp; html render: footer.<br>&nbsp;]<br><br>---------------------------------------------------------------------------------------------<br>
The component menu, displays a horizontal menu with links to different pages on the site.<br><br>CSMenuComponent&gt;&gt;renderContentOn: html<br>&nbsp;html div<br>&nbsp;id: &#39;menu&#39;;<br>&nbsp;with: [<br>&nbsp; html unorderedList: [<br>
&nbsp; &nbsp;self &nbsp;renderMenuItemsOn: html.<br>&nbsp; &nbsp;].<br>&nbsp;].<br>---------------------------------------------------------------------------------------------<br>CSMenuComponent&gt;&gt;renderMenuItemsOn: html<br><br>&nbsp;menuItems do: [:item |<br>
&nbsp;html listItem with: [<br>&nbsp; html anchor &nbsp; &nbsp;callback: item value;<br>&nbsp; &nbsp;with: item key.<br>&nbsp;].<br>&nbsp;]<br><br>----------------------------------------------------------------------------------------------<br>CSMenuComponent&gt;&gt;initialize<br>
&nbsp;&nbsp;super initialize.<br>&nbsp;menuItems := OrderedCollection new.<br>&nbsp;self addMenuItem: &#39;Company Info&#39; withBlock: [ self companyInfo].<br>&nbsp;self addMenuItem: &#39;Products&#39; withBlock: [ self products ].<br>&nbsp;self addMenuItem: &#39;Downloads&#39; withBlock: [ self downloads ].<br>
&nbsp;self addMenuItem: &#39;Resources&#39; withBlock: [ self resources ].<br>&nbsp;self addMenuItem: &#39;Support&#39; withBlock: [ self support ].<br>&nbsp;self addMenuItem: &#39;Contact Us&#39; withBlock: [ self contactUs ].<br><br>----------------------------------------------------------------------------------------------<br>
<br>where each of the links should display a new page with the same structure as before, but with a different body.<br><br>It is right to create a component for each link ? For example, CSCompanyInfoComponent for companyInfo link.<br>
How I call that component, from CSMenuComponent&gt;&gt;companyInfo method, to render in a new page??<br>I am confused by the fact that I don&#39;t have a renderCanvas to speak in that context.<br><br>Thanks!!!<br><br>Sebastian<br>
<br><br>Sebastian Van Lacke | Developer | &nbsp;caesar systems | see clearly. decide smarter.<br><br><a href="mailto:svanlacke@caesarsystems.com" target="_blank">svanlacke@caesarsystems.com</a> &nbsp;| t: +1.281.598.8790 | t: +54.11.4389.0126 | <a href="http://www.caesarsystems.com/" target="_blank">www.caesarsystems.com</a> <br>
&nbsp;<br>This message and any attached documents contain information from Caesar Systems LLC that may be confidential/trade secret and/or privileged. &nbsp;If you are not the intended recipient, you may not read, copy, distribute or use this information. &nbsp;If you have received this transmission in error, please notify the sender immediately by telephone or by reply e-mail and then delete this message.<br>
<br>&nbsp;<br><br></div></div>------------------------------------------------------------------------ 
<div class="Ih2E3d"><br><br>_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></blockquote>
<div>
<div></div>
<div class="Wj3C7c">_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>