Thanks Sam.
Was going to grab that one myself. Saved me the trouble! :-D
Just a few bugs I noticed before getting it working:
html template:
The "@RenderBody" is missing... no Tabs this way! :-)
jwc definition file:
The class attribute is missing
class file:
getDivIds instead of getBlockIds
After these correction, all works fine!
Thanks Sam.
I attach here the corrected version.
Didn't tried it myself like this since the correction were made in a personalized version I created based on Sams code.
Regards,
Was going to grab that one myself. Saved me the trouble! :-D
Just a few bugs I noticed before getting it working:
html template:
The "@RenderBody" is missing... no Tabs this way! :-)
jwc definition file:
The class attribute is missing
class file:
getDivIds instead of getBlockIds
After these correction, all works fine!
Thanks Sam.
I attach here the corrected version.
Didn't tried it myself like this since the correction were made in a personalized version I created based on Sams code.
Regards,
On 5/7/06, Sam Gendler
<[EMAIL PROTECTED]> wrote:
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
--
Pedro Viegas
--
Pedro Viegas
dojotabs.tgz
Description: GNU Zip compressed data
