View Full Version : add new portlet on html drop not working with firefox....

24 Aug 2009, 5:51 PM
i drop a html element into portal container.....
on drop it should create a new portlet inside the portal......
its working fine with ie...but not with firefox......

i am working on windows xp, GWT 1.7, GXT 2.0-rc2. firefox version 3.0

public void onModuleLoad() {

BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER, 600);
BorderLayoutData eastData = new BorderLayoutData(LayoutRegion.EAST, 200);
ContentPanel content = new ContentPanel();
content.setSize(900, 900);
content.setLayout(new BorderLayout());

content.add(getPortal(), centerData);
content.add(getSidePanel(), eastData);


private Portal getPortal(){
final Portal portal = new Portal(2);
DropTarget portalArea = new DropTarget(portal);
DropTarget dropTrg = new DropTarget(portal){
protected void onDragDrop(DNDEvent event) {
Portlet p = new Portlet();
portal.add(p, 0);
return portal;

private ContentPanel getSidePanel(){
ContentPanel sideContent = new ContentPanel();
final Html htmlPersp = new Html("Perspective");
DragSource htmlPerspDrg = new DragSource(htmlPersp){
protected void onDragStart(DNDEvent event) {
return sideContent;

can somebody help me in this.....

24 Aug 2009, 8:58 PM
this is very similar to this (http://extjs.com/forum/showthread.php?t=78598) post .

25 Aug 2009, 2:13 AM
this is very similar to this (http://extjs.com/forum/showthread.php?t=78598) post .
guess you may be right. i checked out your example and at least the "workaround" described in my post works there too.

25 Aug 2009, 2:43 AM
hi spectred,

if you are in urgent need of alternative

try to change your drag source from simple html to treepanel or grid.....
use TreePanel with TreePanelDragSource or Grid with GriddragSource......
i just tried with simple tree panel drag source.... its working fine in firefox.....

but still i dont know what happen with simple html drag:-?:-?