Using Dojo and Dijit in the portlet

I made changes in the ValidationCacheSamplePortlet that i built in the last section to demonstrate how to use dojo and dijit in the portlet. As you can see i am including Dojo 1.3.2 from AOL CDN

<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%>
<%@taglib uri="" prefix="portlet"%>

<style type="text/css">
@import src="";
@import src=""";
<script type="text/javascript" src="
/dojo/dojo.xd.js" djConfig="parseOnLoad:true">
<portlet:defineObjects />
<script type="text/javascript">

<button dojoType="dijit.form.Button" id="btn">Resource
<script type="dojo/method" event="onClick">
url: "<portlet:resourceURL/>",
load: function(data, ioargs){
dojo.byId("resourceResponse").innerHTML = data;
error: function(error,ioargs){

<div id="resourceResponse" />

1 comment:

diegovis said...

what about the collision with dojo libs already loaded by the portal theme?