Skip to main content

"Best practice" for using multiple instances of widgets

4 replies [Last post]
jvence
Offline
Joined: 2006-06-21

I would like to use multiple instances of a widget (accordian) in my application but we like to format each instance differently so the component.htm file would be different in every case. What is the best way to do this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31

There are two options for this.

One is to use a little known feature of specifying the template="sometemplate.htm" on the tag and the other is to include the body of the template (including the replacement parameters (eg. ${uuid} etc) as the body of the tag for which you are using. We are considering moving away from the second option as we are considering composition of jmaki tags (one tag has jmaki tags in it's body). I would suggest the first though I am going to need to make sure it still works as I haven't tested it in over a year.

jvence
Offline
Joined: 2006-06-21

I tried

with no success. Is this the correct way?

gmurray71
Offline
Joined: 2003-07-31

This is a bug. I'll file it in issue tracker and get to work on it right away.

gmurray71
Offline
Joined: 2003-07-31

This has been fixed in the CVS and will be put in the jMaki v.5.1 release which should be within the next few days.