File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes How Dojo works with Portlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How Dojo works with Portlets" Watch "How Dojo works with Portlets" New topic

How Dojo works with Portlets

Navein Austin Fernandes

Joined: Dec 01, 2008
Posts: 1
Hi I am using Dojo with Portlets. now for each portlet (JSP) i have included the dojo.require/parse for all components needed by my JSP's. I can see that when the portlets load it causes problems and script errors come up. I understand Dojo works in a normal Web App but i would like to know any view on using with Portles as we will have multiple instances.
Also I am using Liferay which internally uses JQuery. Does dojo use JQuery and if so will it cause conflicts internally.

Thanks in advance.
Peter Svensson
Ranch Hand

Joined: Sep 29, 2008
Posts: 54
Hi Navein,

Dojo and jQuery are two different JavaScript/Ajax toolkits, so they don't use each other at all.

Portlets are inherently evil and is a source of great additional complexity when creating a web-based application of any kind. What people really want can be achieved much simpler in a PHP-based CMS like Joomla, Drupal or Wordpress. I have been working with Java/J2EE since 1998 and have been working with WebSphere for a six-month project so I'm not completely uninformed here.

Having said that (which doesn't really solve your problem) I would recommend you to check out a very good introduction in using Dojo with Portlets;

I agree. Here's the link:
subject: How Dojo works with Portlets
It's not a secret anymore!