Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How Dojo works with Portlets

 
Navein Austin Fernandes
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Author
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;

http://www.ibm.com/developerworks/websphere/library/techarticles/0703_wallaker/0703_wallaker.html

Cheers,
PS
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic