Skip to main content

JMaki Test

2 replies [Last post]
jotnarta
Offline
Joined: 2006-07-19
Points: 0

Hi All

I am new to JMaki, and I wanted to try it on my own web application, I did the following, as described in java.net tutorials:

1. I created a context called testJMaki.
2. Inside my context, I created a resources folder and put inside the needed widget, which is fisheye and its related resources.
3. I put the needed jar files in WEB-INF/lib directory

When I ran the test page, I got the following error message:

Error loading jmaki.widgets.dojo.fisheye.Widget : id=dojo_fisheye1
Script: http://localhost:8080/testJmaki/index.jsp (line:2).
Message: Object expected

any help please??

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
Points: 0

Hi jotnarta,

It seems you've got almost everything right. The general application structure is listed here:

https://ajax.dev.java.net/jmaki-app.html

Do you have correct resources under /resources/dojo ? If you don't have these present you can unzip the /widgets/dojo-x.x.zip file and copy the /resources into the resources directory of your web application.

I suspect that the /resources/dojo/fisheye directory is not there.

We also have plugins for both Eclipse and Netbeans which automatically copy in everything into your applicaiton.

Let me know if this does not work, or better yet you could send a war file and I could see what is wrong with it.

-Greg
gmurray71 (a) dev.java.net

jotnarta
Offline
Joined: 2006-07-19
Points: 0

Thank you Greg

I did copy the resources folder with all its conent. but I got the error that i shown above, regarding NetBeans, I worked in the plugin and it worked fine. But what I am trying to do, is use this feature in my website, like clock, fisheye, and other available widgets.

I have under resources folder the fisheye folder, that contains the three necessary files, and under resources i put the "jmaki.js" file. And here is the contents of my jsp file; "index.jsp":

[code]
<%@ taglib prefix="a" uri="http://jmaki/v1.0/jsp" %>

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Dojo Fish Eye List Test

Back to Samples



value="[
{iconSrc:'https://ajax.dev.java.net/images/blog_murray.jpg',
label : 'You are here!',
action : { topic : '/fisheye/greg', message : { value : 'hi greg'}}
},
{ iconSrc:'https://ajax.dev.java.net/images/chinnici.jpg',
label : 'test3',
action : { topic : '/fisheye/roberto', message : { value : 'hi roberto'}}
},
{ iconSrc:'https://ajax.dev.java.net/images/JayashriVisvanathan.jpg',
label : 'test4',
href : 'http://jmaki.com'
}
]"/>



[/code]

I suspect with web.xml file, i think that some modifications must be made to the web.xml file, here is the web.xml file entry:
[code]

Dojo Tests

index.jsp


jMaki Controller Servlet
com.sun.jmaki.JmakiController
2


jMaki Controller Servlet
*.do


[/code]

What do you suggest???

Thank you again for your time Greg :)