I vaguely remember when I was in Vegas someone at a podium talking about how you can unit test Dojo from the command line vs. other JS frameworks...... So, if that is true, then perhaps you should be looking into the Dojo unit test(s) and looking to use their setup for pages that are Dojo driven and then you can use WebTest for the more HTMLy interfaces.

If there is a .jar you want, but Maven can't find it, then just download the jar and install it to your local directory. You can install it with whatever groupId and artifactId you want, as long as its what you use in your pom. For example, hibernate-3.2.6.ga.jar.

mvn install:install-file -groupId=org.hibernate artifactId=hibernate - version=3.2.6.ga -packaging=jar -path=/path/to/where/youdownloaded/jar

-D


On Apr 9, 2008, at 5:45 PM, Richard M wrote:


I'm trying to use the Struts2 "<s:TabbedPanel" tag. To do this I had to make
the changes from this post:
http://www.nabble.com/Recomended-Pratice-(Struts2-Dojo)-td10299339s2369.html#a10299339
http://www.nabble.com/Recomended-Pratice-(Struts2-Dojo)-td10299339s2369.html#a10299339

OK, the tabbed panel works great. But then before I checkin I go to run my tests in web-test. Ouch! :-( Now I'm getting errors such as below. This was not completely unexpected from prior reading on the forum, but the postings
were a few months old and I was hoping things had changed:

Login:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line: /Users/rnmixon/ProjectSource/acme/src/test/resources/login.xml:5: JavaScript error loading page http://localhost:7981/acme-0.7-SNAPSHOT/userHome.html :
TypeError: Cannot read property "0" from undefined
(http://localhost:7981/acme-0.7-SNAPSHOT/struts/dojo/dojo.js#7585)


... or this if I override the template/simple/head.ftl template as
suggested:

Login:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line: /Users/rnmixon/ProjectSource/acme/src/test/resources/login.xml:1: JavaScript
error loading page http://localhost:7981/acme-0.7-SNAPSHOT/login.jsp:
missing } after property list (script in
http://localhost:7981/acme-0.7-SNAPSHOT/login.jsp from (48, 54) to (0, 0)#7)


My understanding of this issue is that WebTest uses HtmlUnit and HtmlUnit is
not able to handle the
Dojo javascript. I just saw that HtmlUnit is at version 2.0 - versus the 1.13 that is used by WebTest R_1600. WebTest advertises their latest as R_1693 - but not sure what version of HtmlUnit is in there. I tried just changing R_1600 to R_1693 in my pom.xml, but it cannot find that version of
WebTest in the default Maven repository.

So, how do I go about trying out HtmlUnit 2.0? Or do we already know that this will not fix the above problems? Any other suggestions? Or other ways of doing the tabbed panels. They were really helping with organizing entry
forms and keeping things segmented (smaller, and not so deep).

Thanks - Richard
--
View this message in context: 
http://www.nabble.com/How-to-try-a-more-recent-version-of-HtmlUnit-%28Dojo-errors%29-tp16599498s2369p16599498.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to