Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Drag and Drop of composite

    I have a portlet application based on the showcase example.

    Within one of the portlets I have a composite which wraps a SimplePanel that contains an AnnotatedTimeLine google visualization. This is a flash component.

    Generally it works well. I can draw the portlet, minimize and restore, and it moves as expected when another portlet is dropped above it. However, when I drag and drop it (even if dropped back where it came from) the content disappears. Once in this state, there is still a widget on my SimplePanel but I cannot remove it or clear the panel without getting an Invalid argument javascript exception.

    If I try to add the TimeLine back on to the panel, an exception is thrown saying that SimplePanel can only have one child. I have read in another thread that dragging causes a clear but being a composite, it doesn't expose a clear method. In any event, it seems the panel is not cleared but rather it is corrupted in some way.
Working...
X