This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style type="text/css"> | |
@import "dojo/resources/dojo.css"; | |
@import "dijit/themes/claro/claro.css"; | |
</style> | |
<script type="text/javascript"> | |
var dojoConfig = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'dojo', | |
'dijit/Calendar', | |
'dojo/domReady!' | |
], function (dojo, Calendar) { | |
var calendar = new Calendar({}, dojo.byId("calendarNode")); | |
return calendar; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page import="org.dojotoolkit.optimizer.JSOptimizer" %> | |
<%@ page import="org.dojotoolkit.optimizer.servlet.JSURLGenerator" %> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style type="text/css"> | |
@import "lib/dojo/resources/dojo.css"; | |
@import "lib/dijit/themes/claro/claro.css"; | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> | |
<%@ page import="org.dojotoolkit.optimizer.JSOptimizer" %> | |
<%@ page import="org.dojotoolkit.optimizer.servlet.JSURLGenerator" %> | |
<html> | |
<head> | |
<title>Calendar</title> | |
<style type="text/css"> | |
@import "<%=request.getContextPath()%>/dojo/resources/dojo.css"; | |
</style> | |
<link id="themeStyles" rel="stylesheet" href="<%=request.getContextPath()%>/dijit/themes/claro/claro.css"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page import="org.dojotoolkit.optimizer.JSOptimizer" %> | |
<%@ page import="org.dojotoolkit.optimizer.JSAnalysisData" %> | |
<script type="text/javascript"> | |
djConfig = { | |
isDebug: false, | |
usePlainJson: true, | |
parseOnLoad: true, | |
baseUrl: "<%=request.getContextPath()%>/dojo/", | |
locale: "<%=request.getLocale().toString().toLowerCase().replace('_', '-')%>", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> | |
<context-param> | |
<param-name>javaChecksum</param-name> | |
<param-value>true</param-value> | |
</context-param> | |
<context-param> | |
<param-name>compressJS</param-name> | |
<param-value>true</param-value> | |
</context-param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies = { | |
stripConsole: "normal", | |
layers: [ | |
], | |
prefixes: [ | |
[ "dijit", "../dijit" ], | |
[ "dojox", "../dojox" ] | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.IOException; | |
import java.net.URL; | |
import org.dojotoolkit.compressor.JSCompressorFactory; | |
import org.dojotoolkit.compressor.JSCompressorResourceLoader; | |
public class MultiRootResourceLoader extends JSCompressorResourceLoader { | |
private File[] roots = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import org.dojotoolkit.server.util.resource.ResourceLoader; | |
import org.dojotoolkit.server.util.rhino.RhinoClassLoader; | |
import org.dojotoolkit.server.util.rhino.RhinoJSMethods; | |
import org.mozilla.javascript.Context; | |
import org.mozilla.javascript.ScriptableObject; | |
public class RhinoCommonJSLoader { | |
private RhinoClassLoader rhinoClassLoader = null; | |
private ResourceLoader resourceLoader = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import org.dojotoolkit.rt.v8.V8JavaBridge; | |
import org.dojotoolkit.server.util.resource.ResourceLoader; | |
public class V8CommonJSLoader extends V8JavaBridge { | |
private ResourceLoader resourceLoader = null; | |
public V8CommonJSLoader(ResourceLoader resourceLoader) { | |
super(true); | |
this.resourceLoader = resourceLoader; |
NewerOlder