I have custom css scheme and decorator.
Now I had to have 4 script link to pass steps.

My decorator head section now looks like this:
    <head>
        <%@ include file="/common/meta.jsp" %>
        <title><decorator:title/> - <fmt:message key="webapp.name"/></title>

        <link rel="stylesheet" type="text/css" media="all" href="<c:url
value='/styles/${appConfig["csstheme"]}/theme.css'/>" />
        <link rel="stylesheet" type="text/css" media="print" href="<c:url
value='/styles/${appConfig["csstheme"]}/print.css'/>" />

        <script type="text/javascript" src="<c:url
value='/scripts/prototype.js'/>"></script>
        <script type="text/javascript" src="<c:url
value='/scripts/scriptaculous.js'/>"></script>
        <script type="text/javascript" src="<c:url
value='/scripts/effects.js'/>"></script>
        <script type="text/javascript" src="<c:url
value='/scripts/global.js'/>"></script>
        <decorator:head/>
    </head>

Any way problem solved. Thanks.


mraible wrote:
> 
> Here's the defaults in the decorator that ships with AppFuse.  Did you
> remove them at some point?
> 
>         <script type="text/javascript" src="<c:url
> value='/scripts/prototype.js'/>"></script>
>         <script type="text/javascript" src="<c:url
> value='/scripts/scriptaculous.js'/>"></script>
>         <script type="text/javascript" src="<c:url
> value='/scripts/global.js'/>"></script>        <
> 
> Matt
> 
> On 3/31/07, ros <[EMAIL PROTECTED]> wrote:
>>
>> If there is no such lines then web tests are ok.
>>
>> I've added
>>         <script type="text/javascript" src="<c:url
>> value='/scripts/effects.js'/>"></script>
>> before
>>         <script type="text/javascript" src="<c:url
>> value='/scripts/global.js'/>"></script>
>> in decorator jsp.
>>
>> Now it's ok. Thanks.
>>
>>
>>
>> mraible wrote:
>> >
>> > If you comment out the following lines, does the issue still happen?
>> >
>> >      if ($("successMessages")) {
>> >          new Effect.Highlight("successMessages");
>> >      }
>> >      if ($("errorMessages")) {
>> >          new Effect.Highlight("errorMessages");
>> >      }
>> >
>> > Matt
>> >
>> > On 3/31/07, ros <[EMAIL PROTECTED]> wrote:
>> >>
>> >> mvn integration-test can pass any test because of JavaScript error on
>> >> login
>> >> page:
>> >>
>> >> Test step steps (.../src/test/resources/web-tests.xml:48: ) null
>> failed
>> >> with
>> >> message "Step[invoke "get Login Page" (1/4)]: Script error loading
>> page
>> >> executing webtest at: invoke TypeError: Cannot read property
>> "Highlight"
>> >> from null
>> >>
>> (http://localhost:8081/myapp-1.0-SNAPSHOT/scripts/global.js;jsessionid=E2ABA8673B561CC50BBC3B981C65939F#334)
>> >> Source code:
>> >>
>> >>   function () {
>> >>       highlightFormElements();
>> >>       if ($("successMessages")) {
>> >>           new Effect.Highlight("successMessages");
>> >>       }
>> >>       if ($("errorMessages")) {
>> >>           new Effect.Highlight("errorMessages");
>> >>       }
>> >>       if ($("primary-nav")) {
>> >>           var navItems = $("primary-nav").getElementsByTagName("li");
>> >>           for (var i = 0; i < navItems.length; i++) {
>> >>               if (navItems[i].className == "menubar") {
>> >>                   navItems[i].onmouseover = function () {
>> >>                       this.className += " over";
>> >>                   };
>> >>                   navItems[i].onmouseout = function () {
>> >>                       this.className = "menubar";
>> >>                   };
>> >>               }
>> >>           }
>> >>       }
>> >>   }
>> >>
>> >>
>> >>
>> >> What is the cause of problem?
>> >>
>> >> Thanks.
>> >>
>> >> ros
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/mvn-integration-test-failed-on-javascript-error-tf3496759s2369.html#a9766829
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > http://raibledesigns.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/mvn-integration-test-failed-on-javascript-error-tf3496759s2369.html#a9769248
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/mvn-integration-test-failed-on-javascript-error-tf3496759s2369.html#a9769370
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