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]

Reply via email to