Thanks Pedro.  That was the end of a long, sleepless stint at the
computer, and it looks as though I missed some things when moving our
internal code over to dojo.  I don't get the first one, though. I just
have a $content$ span in our component and it works just fine,no
@RenderBody necessary.  And the class file thing is because I have our
app configured to find the correct java file by default.  I'll watch
for that in the future, when I port things across.

Incidentally, it will need minor variations to work with the released
version of dojo, since the TabPane widget was fairly recently renamed
to TabContainer, and the tacos component references TabContainer.  It
should work fine with the version of dojo that you get in the demo app
in svn.

--sam


On 5/8/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:

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,



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



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to