> Duplicate Id's are pretty helpful though.  Are you supposed to be able to add 
> multiple instances of a wtkx file?

Sorry, I should have been more clear. Duplicate IDs aren't really supported in 
a single WTKX file. However, you can duplicate them across WTKX files, or 
within multiple instances of the same WTKX file. Basically, the WTKX file 
defines a scope within which the IDs should be unique. 

It is analogous to defining multiple member variables with the same name in a 
Java class. That's not allowed, but you can still have multiple instances of 
that class, each of which has its own set of member variables.

> If I wanted to add multple accordion panels that share a generic interface, 
> what would be the best way to do that?


For each panel, I'd create a custom class that implements that interface. Then 
I would create a separate WTKX file for each panel, using your custom classes 
as the root element of your WTKX files. Then <wtkx:include> the files into the 
Accordion.

G


Reply via email to