Thanks for your answer,
My jsp code is:
Code:
<%@page contentType="text/html" pageEncoding="windows-1252"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
<style type="text/css">
@import "resources/dojo1.5/dijit/themes/claro/claro.css";
</style>
<script type="text/javascript" src="resources/dojo1.5/dojo/dojo.js" djConfig="isDebug:true, parseOnLoad:true"/>
<script type="text/javascript">
dojo.require("dijit.form.TextBox");
dojo.require("dijit.Dialog");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.form.Button");
dojo.ready(function(){
alert("Dojo version " + dojo.version + " is loaded");
});
</script>
<script type="text/javascript">
function showDialogTest(){
dijit.byId('dialogContent').show();
}
</script>
</head>
<h2>Registrar Datos</h2>
<body class="claro">
<form:form modelAttribute="data">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}">
<b>Campo 1: </b> <input dojoType="dijit.form.TextBox" type="text" name="campo1" path="campo1" /><br/>
<b>Campo 2: </b> <input dojoType="dijit.form.TextBox" type="text" name="campo2" path="campo2" /><br/>
<input dojoType="dijit.form.Button" type="submit" class="button" name="_eventId_submit" value="Submit">
<input dojoType="dijit.form.Button" type="button" value="mostrar" onclick="showDialogTest()">
</form:form>
<div dojoType="dijit.Dialog" id="dialogContent" title="Test ContentPane" style="display: none">
<div dojoType="dijit.layout.ContentPane">
</div>
</div>
</body>
</html>
Also I am attaching the project structure for see the location of dojo.
Notes:
1. when request the url 'http://localhost:8181/springwebflowtemplate/resources/dojo1.5/dojo/dojo.js' in the browsers, the resource is loaded succesfully.
2. The problem occurs to call the 'showDialogTest()' function.
3. Apparently the cause of problem is that the jsp is loaded but dojo isn't loaded
Thanks and regards,