Getting jMaki to work for me
I am trying to get a jMaki widget to render in a JSF and Facelets application. I've managed so far to get dojo working using the jsf-extensions mechanism, but what I really need is those fancy widgets jMaki can provide.
I'm working on Windows XP, Tomcat 5, with IntelliJ as my environment, and I really can't change out any of these.
My JSF version is 1.2, jsf-extensions 0.1-rc2, jMaki 0.9.6.1.
This is the first time I'm attempting to use jMaki, so here's what I've done:
I put ajax-wrapper-comp.jar in my lib path (WEB-INF/lib), and I can see when Tomcat starts the message:
INFO: Added Library from: jar:file:/D:/app/exploded/WEB-INF/lib/ajax-wrapper-comp.jar!/META-INF/jmaki.taglib.xml
So the tablib has been deployed.
In the root of my web resources folder, I added /dojo/inlinedit (and so I have css, htm and js files for the component, and a widget.json), and I added a /resources/libs (which drills further down to contain /dojo/v0.4.3/src and a bunch of subfolders here).
I altered the widget.json slightly because the paths specified didn't look like they would find the appropriate resources. If this is a potential problem, please let me know. For now, I haven't said what the current problem is.
So now I think I'm set up to use jMaki.
So now, in my XHTML file that will display the inline edit, I include the jMaki namespace as this:
and in the page I include the widget like thi:
What is happening is that the line is being rendered exactly as is, not expanded. I can see it just like this when I view the html source of the page.
I have to be missing at least one key ingredient to make this work.
I would just love it if I could make this work!