Hi all,

I couldn't make the s:tabbedPanel work in appfuse 2.0-M5. I copied a simple
jsp file from the showcase application in the struts-core, but it is not
working in my appfuse project. It gives the following javascript error.

djConfig.baseScriptUri has no properties
getBaseScriptUri()dojo.js (line 155)
loadPath("struts/widget/Bind.js", "struts.widget.Bind", undefined)dojo.js
(line 187)
loadModule("struts.widget.Bind", undefined, undefined)dojo.js (line 351)
require("struts.widget.Bind")dojo.js (line 419)
[Break on this error] if(djConfig.baseScriptUri.length){


I copied the dojo directory from struts-core to the directory in my
application "/webapp/scripts/"

I modified the "default.jsp". I added the dojo.js

// default.jsp
    <script type="text/javascript" src="<c:url
value='/scripts/dojo/dojo.js'/>"></script>
    <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>

// example2.jsp
<%@ include file="/common/taglibs.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
<head>
    <title>Ajax examples - tabbled panel</title>

    <s:head theme="ajax"/>
    <link rel="stylesheet" type="text/css" href="<s:url
value="/struts/tabs.css"/>">
</head>

<body>

<s:tabbedPanel id="test2" theme="simple" cssStyle="width: 500px; height:
300px;" doLayout="true">
    <s:div id="left" label="test1" theme="ajax">
        I'm a Tab!!!
    </s:div>
    <s:div id="middle" label="test2" theme="ajax">
        I'm the other Tab!!!
    </s:div>
</s:tabbedPanel>

</body>
</html>


Anyone has any ideas?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/-Appfuse2--S2-Anyone-who-used-s%3AtabbedPanel--tf3913909s2369.html#a11097039
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