views:

184

answers:

2

I'm trying to insert a Spry accordion into an already existing JSF page using Dreamweaver. Is this possible?

I've already tried several things, and only the labels show up.

+2  A: 

I'm not a Dreamweaver expert, but all Spry Accordian requires is the correct HTML structure. E.g.:

   <div id="Accordion1" class="Accordion">
            <div class="AccordionPanel">
                <div class="AccordionPanelTab">Panel 1</div>
                <div class="AccordionPanelContent">
                    Panel 1 Content<br/>
                    Panel 1 Content<br/>
                    Panel 1 Content<br/>
                </div>
            </div>
    </div>

Provided you have the JavaScript library loaded correctly, that should pretty much be all you need to do.

Dave Smylie
A: 

The only other thing you might check is if your ids are getting munged by JSF. Obviously that could impact the ability of Spry to wire itself to your accordion html structure.

+1 to Dave's answer.

Mike Cornell