Here is a dojo tabs component, if someone wants to add it to tacos. It is pretty simplistic, so far, but it is easy to use and works well.
Just pass it an ognl list of div ids, and each id will be created as
a tab.  The title of the tab will be the content of the message looked
up with the id of the div.  You can also specify which tab will be
selected initially, although it defaults to the first tab.

Example:

html file:
       <span jwcid="tabs"/>

       <div id="firstTab" >
           This is the content of tab 1
       </div>
       <div id="secondTab">
           This is the content of tab 2
       </div>

.page file:
   <component id="tabs" type="tacos:DojoTabs">
       <binding name="divIds"
           value="ognl:{'firstTab','secondTab'}"/>
       <binding name="selectedId" value="literal:secondTab"/>
   </component>

.properties file:
   firstTab=First Tab
   secondTab=Second Tab

Attachment: dojotabs.tgz
Description: GNU Zip compressed data

Reply via email to