Some questions regarding Jmaki
I am currently evaluating Jmaki as the widgeting framework for our website and had some questions. I searched the forum but didnt find satisfactory answers:
1) How do I create widgets on the client side i.e. on the fly as the user interacts with the website. I found injector API as one means of doing it , but that requires me to have a special service just to host the widgets and in that it loads the URL everytime. So if I have a jmaki widget which takes some config parameters and I need X instances of it when the user takes a particular action I have to hit the widget service X number of times. Is there another way of creating parameterized widgets on the fly ?
2) How do I define composite widgets i.e. widgets composed of smaller widgets (parent/child relationship ?) declaratively and crisply (like the template file or nested tags) rather then programmatically (injector API).
3) The postLoad() API in the widget doesnot work in Firefox. I specified a postLoad() method in my widget but it was not invoked. In the jmaki.js I found that loadWidget() API uses
(wimpl.postLoad == 'function' )
to check the existance of postLoad() method, shoudnt it be
(typeof wimpl.postLoad == 'function') ?
I really liked the concept of jmaki and best part being it does what a widgeting framework is suppose to do.