Drag And Drop Java Portlets

Hi,
How can we develop Drag and Drop (DnD) Portlets. Does Oracle Portlet provide such functionality.Can someone guide me or have any documentation on how to create Java Portlets that can be dragged arround i.e. just like on google site http://www.google.com/ig. I am using 10.1.0.4. Thanks

Is there any kind of documentation available as how to build this kind of functionality. What API's to use. Lifefray and StringBeans Portal provides DnD functionality so curious if it's also doable using Oracle Portal and if so how to start on it. I am more interesetd in docs. and API's to use for building our own.
Thanks

Similar Messages

  • How to drag and drop between portlets?

    Howdy!
    Could someone please be kind enough to show me how to drag and drop data between portlets. I want to select an icon, drag it to an application and launch the file associated with the icon in the application.
    I can do it within a portlet with some js functions but when I try it between portlets (on the same page)I see the forbiden sign.
    Thanks
    Jeff Graber

    Hi
    thanks for the advice. However, that is what I had done. Here is the code in the jsp file for the destination portlet and it does not work. If you have any ideas, thanks!
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui:html>
    <head>
    <title>
    MS Word Portlet
    </title>
              <script language="JavaScript" src="../js/common.js"></script>
              <script language="JavaScript" src="../js/containers.js"></script>
              <script language="JavaScript" src="../js/document.js"></script>
    </head>
    <body>
    Application Village Portlet
    <p>TextOre
    | <a id="MS Word" ondrop="sendInfo(this.id)" ondragover="fnCancelDefault()"><img src="/Jime/images/WORDY.gif" alt="Drag one or more documents here to open with MS Word" border="0"></img></a>
    | <a id="MS Excel" ondrop="sendInfo     (this.id);" ondragover="fnCancelDefault()"><img src="/Jime/images/EXCELY.gif" alt="Drag one or more documents here to open with MS Excel" border="0"></img></a>
    | <a id="MS PowerPoint" ondrop="sendInfo(this.id);" ondragover="fnCancelDefault()"><img src="/Jime/images/PowerPointY.gif" alt="Drag one or more documents here to open with MS PowerPoint" border="0"></img></a>
    | <a id="Trash" ondrop="sendInfo(this.id);" ondragover="fnCancelDefault()"><img src="/Jime/images/trashcan.gif" alt="Drag one or more documents here to delete" border="0"></img></a>
    </body>
    </netui:html>

  • Drag and Drop - Java -- other application

    Hi,
    I'm writing an application, which requires to transfer the content of textfields through Drag and Drop to any other application.
    Basically this works, but in combination with some applications, e.g. Mozilla, it happens, that the DragSourceListener doesn't recognize, that the Drag and Drop - operation is finished.
    Because of this I get an InvalidDnDOperationException, when I try to start a new Drag and Drop - operation.
    Can anyone tell me, how to solve the problem?
    thanks in advance
    Christoph

    And I get the:
    java.lang.NullPointerException
         at oracle.jbo.uicli.jui.JUPanelBinding.bindUIControl(JUPanelBinding.java:808)
         at empapppack.empframe.jbInit(empframe.java:116)
         at empapppack.empframe.<init>(empframe.java:51)
         at emppapppack.Application1.<init>(Application1.java:13)
         at empapppack.Application1.main(Application1.java:50)

  • Drag-and-drop in Web Center 11g

    I'm running the Avitek sample portal on JDev 11.1.1.3 with Web Center on integrated WLS.
    Is it possible to enable drag-and-drop of portlets within the page layout - by an end-user?
    I understood this was a feature available in Web Center and not in WLPortal - so has anyone got this working?

    Webcenter supports drag and dropping of portlets out of the box. You don't need to do anything special to enable drag and drop of portlets.
    The only requirement there is, is that users are logged in and they have granted personlization rights.

  • Drag and drop help (urgent)

    I need to write a program where I can drag and drop icons between and within a split pane. Any suggestion of what package I should look into? thanks

    Java provides two separate packages for drag and drop. java.awt.dnd and java.awt.datatransfer. These packages contain interfaces and classes for drag and drop. So pls go thru these classes.

  • I am unable to drag and drop image files in a JAVA supposrted site. I have all the lastest versions of softwarte here - everything is up to date.

    I am no longer able to drag and drop image files int this JAVA supported site. It had always worked flawlessly in the past.
    I would open the site, go to Send Files, allow access, fill out the fields and then drag and drop my image files. Now I can only use the ADD (+) button to do so.
    I have the latest versions of OS-X Lion and JAVA installed on my computer
    http://www.clippingprovider.com/CP_II_EU/Welcome.html

    This is the Tech Sheet on the subject:
    Photoshop Help | Managing paths
    It contains this item under Manage Paths:
    When you use a pen or shape tool to create a work path, the new path appears as the work path in the Paths panel. The work path is temporary; you must save it to avoid losing its contents.
    Ok, the red you referred to is a Stoke you added. Then QuickMask is not involved.

  • Safari for Mac, webpage with Java applet, drag and drop area not working.

    At my company, we have a web page that our users access to submit media files, (QuickTime, Audio, images...), for transcoding for delivery.  The web page consists of a java applet, with an area that our users drag and drop media file into.
    After updating to Safari 5.1.2, the applet will not work anymore. Instead, the browser will "open" the quicktime and play it, instead of allowing the Java Applet to do it's job.
    CAN I TURN THIS FUNCTIONALITY OFF??
    I read that Safari 5.1.2, (when it was initially released), broke something with the THEN current version of Java, and everyone was awaiting the latest update (build 1.6.0_29) to fix it. Unfortunately, this update did not fix my issue with the functionality of dragging and dropping media files into the web page.
    It seems to me, as if, there is an over-arching functionality setting (or something) that needs to be either turned off, or in some other way DE-prioritized.
    Anyone have any ideas?
    Safari 5.1.2
    MacOS 10.6.8
    MacBook Pro

    Thanks for quick reply and help. I am able to drag multiple files but this is giving problem in case of filename with spaces like "abc def.png". Can you please put some thoughts on this.
    DataFlavor uriListFlavor = new DataFlavor("text/uri-list;class=java.lang.String");
                   Reader in = (Reader)t.getTransferData(DataFlavor.plainTextFlavor);
                   BufferedReader br = new BufferedReader(in);
                   String uriStr;
                   while ((uriStr = br.readLine()) != null)
                       URL url = new URL(uriStr);
                       String category = GalleryUtils.contentsPanel.getCurrentCategoryPath();
                       GalleryUtils.generateILPFromFile(new File(url.getFile()), category);
                   }Thanks
    Kanni

  • Drag and Drop and java.io.NotSerializableException

    I have been implementing some code to essentially allow me to drag and drop from one JTree to another. The requirement was to be able to drag multiple nodes at one time and drop them on the other JTree in the order selected.
    I was getting a java.io.NotSerializableException when I was in the drop code in the destination jTree and could not figure out what was going on. Basically, I was wrapping all the objects that i wanted to transfer in a custom ArrayList subclass that implemented transferable. The NotSerializableException was was indicating that the object in the JList was not serializable.
    If you are getting a NotSerializableException and you have defined a custom DataFlavor like so:
    public static DataFlavor DATATYPE_TRANSFER =
            new DataFlavor(
               TransferableImplementor.class,  //  make sure that this is the class that implements transferable
                "Datatype Information");make sure that the .class is indeed the class that implements the transferable interface (and not some other random .class). You can be led down a wild goose chase on trying to make sure every object in your Transferable implementor class is serializable, when the problem lays in the DataFlavor instantiation.
    Nik

    If you haven't already read these, here are a couple of good sources for DND tree implementation details.
    http://www.javaworld.com/javaworld/javatips/jw-javatip97.html
    http://www.javaworld.com/javaworld/javatips/jw-javatip114.html

  • Drag and Drop UI in WD Java CE 7.2

    Hi
    In CE 7.11 we get DragItemListBox and DropItemListBox UI elements in Webdynpro Java to implement the drag-drop functionality.
    I suppose this has been enhanced with the CE 7.2 release. But I am not finding the proper way or tutorial to implement the drag-drop functionality in WD in CE 7.2.
    Please suggest the ways to implement this.
    Thanks and Regards,
    Sayan Ghosh

    Hi Robin / Pradeep,
    Thanks for the suggestions. What I found out was from CE 7.11 EPH1, the Drag and Drop feature was introduced. That time it was limited to ItemListBox.
    With the release of CE 7.2, this feature has been majorly advanced. Like you can have DragSourceInfo UI elements from dragging from an image, table, ItemListBox, tree and so on... and a corresponding DropSourceInfo UI element where we can drop the dragged elements. The tag value of a particular DragSourceInfo and DropSourceInfo should be same.. so that u can drop the dragged items. Once dropped, the DropSourceInfo can fire an onDrop event where u can do all ur logic.
    Moreover there is also something called DropTarget UI which basically provides a Container under that which can hold any UI element. The entire container under the DropTarget UI element is the drop area. We just need to to add a DropSourceInfo under that and provide the proper tag name and use the onDrop event.
    Regards,
    Sayan Ghosh

  • Drag and Drop between two java applications

    Hi,
    I am trying to implement drag and drop between two instances of our java application. When i drop the content on the target, the data flavors are transmitted properly, but i get the exception :
    java.awt.dnd.InvalidDnDOperationException: No drop current
         at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(SunDropTargetContextPeer.java:201)
         at sun.awt.datatransfer.TransferableProxy.getTransferData(TransferableProxy.java:45)
         at java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(DropTargetContext.java:359)
         at com.ditechcom.consulbeans.TDNDTree.drop(TDNDTree.java:163)
         at java.awt.dnd.DropTarget.drop(DropTarget.java:404)
         at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:547)
    How can i fix this ?
    Thanks a lot,
    Karthik

    Play with this;-import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.dnd.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    // Credit to bbritna who I stole it from in the 'New To ..' Forum
    public class DragComps implements DragGestureListener, DragSourceListener,
                                         DropTargetListener, Transferable{
        static final DataFlavor[] supportedFlavors = { null };
        static{
              try {
                  supportedFlavors[0] = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType);
              catch (Exception ex) { ex.printStackTrace(); }
        Object object;
        // Transferable methods.
        public Object getTransferData(DataFlavor flavor) {
               if (flavor.isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType))
             return object;
               else return null;
        public DataFlavor[] getTransferDataFlavors() {
               return supportedFlavors;
        public boolean isDataFlavorSupported(DataFlavor flavor) {
               return flavor.isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType);
        // DragGestureListener method.
        public void dragGestureRecognized(DragGestureEvent ev)    {
               ev.startDrag(null, this, this);
        // DragSourceListener methods.
        public void dragDropEnd(DragSourceDropEvent ev) { }
        public void dragEnter(DragSourceDragEvent ev)   { }
        public void dragExit(DragSourceEvent ev)        { }
        public void dragOver(DragSourceDragEvent ev) {
               object = ev.getSource(); }
        public void dropActionChanged(DragSourceDragEvent ev) { }
        // DropTargetListener methods.
        public void dragEnter(DropTargetDragEvent ev) { }
        public void dragExit(DropTargetEvent ev)      { }
        public void dragOver(DropTargetDragEvent ev)  {
               dropTargetDrag(ev); }
        public void dropActionChanged(DropTargetDragEvent ev) {
           dropTargetDrag(ev); }
        void dropTargetDrag(DropTargetDragEvent ev) {
               ev.acceptDrag(ev.getDropAction()); }
        public void drop(DropTargetDropEvent ev)    {
               ev.acceptDrop(ev.getDropAction());
                   try {
                       Object target = ev.getSource();
                      Object source = ev.getTransferable().getTransferData(supportedFlavors[0]);
                       Component component = ((DragSourceContext) source).getComponent();
                       Container oldContainer = component.getParent();
                       Container container = (Container) ((DropTarget) target).getComponent();
                       container.add(component);
                       oldContainer.validate();
                       oldContainer.repaint();
                       container.validate();
                       container.repaint();
                   catch (Exception ex) { ex.printStackTrace(); }
                   ev.dropComplete(true);
        public static void main(String[] arg)    {
              JButton button = new JButton("Drag this button");
              JLabel label = new JLabel("Drag this label");
              JCheckBox checkbox = new JCheckBox("Drag this check box");
              JFrame source = new JFrame("Source Frame");
              Container source_content = source.getContentPane();
              source.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              source_content.setLayout(new FlowLayout());
              source_content.add(button);
              source_content.add(label);
              JFrame target = new JFrame("Target Frame");
              Container target_content = target.getContentPane();
              target.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              target_content.setLayout(new FlowLayout());
              target_content.add(checkbox);
              DragComps dndListener = new DragComps();
              DragSource dragSource = new DragSource();
              DropTarget dropTarget1 = new DropTarget(source_content,
              DnDConstants.ACTION_MOVE, dndListener);
              DropTarget dropTarget2 = new DropTarget(target_content,
              DnDConstants.ACTION_MOVE, dndListener);
              DragGestureRecognizer dragRecognizer1 =
              dragSource.createDefaultDragGestureRecognizer(button,
              DnDConstants.ACTION_MOVE, dndListener);
              DragGestureRecognizer dragRecognizer2 =
              dragSource.createDefaultDragGestureRecognizer(label,
              DnDConstants.ACTION_MOVE, dndListener);
              DragGestureRecognizer dragRecognizer3 =
              dragSource.createDefaultDragGestureRecognizer(checkbox,
              DnDConstants.ACTION_MOVE, dndListener);
              source.setBounds(0, 200, 200, 200);
              target.setBounds(220, 200, 200, 200);
              source.show();
              target.show();
    }[/code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Drag and drop file onto java app

    Hi,
    I would like to drag and drop a file from windows explorer onto a panel in my java app.
    All I need is that when the file is 'dropped', I can get a reference to the path of file.
    e.g.
    There is a file, C:\myFile.txt
    There is a String in my program called 'filePath'.
    I start my java app and dnd the file onto it.
    I want the path of the file to be assigned to the filePath String.
    I can then do more proccessing on the file which I already know how to do.
    Can anyone help.
    Thanks,
    Jim

    Tristan,
    I am stuck in the same place. Perhaps we could work on this together.
    I am trying to drag a single item from a JList to a text editor, Word, etc. I have two problems:
    1) I can't seem to get just the item in the JList to drag. It wants to drag the entire JList component.
    2) How does one define the remote application as the drop target? Have not found any examples either.
    Is the drop target actually the system clipboard?
    Rp

  • Drag and drop of Windows icons inside Java......possible ?

    Hi all !
    does anybody know if it's possible to do drag and drop of windows icons (like folders) into Java Frames or other containers ?
    I'd like to write an application where the user can drag Windows folders inside a Frame/Container and collect Folder information (the path to the folder)
    Is it possible to do it ?
    Thanks a lot
    Francesco

    Hi,
    It is possible.
    You can drag platform independent objects like folders, icons etc. from the native platform to your java app.
    The Java-Object you need in this case is a
    DataFlavour like
    DataFlavor.stringFlavor // for text
    DataFlavor.javaFileListFlavor // for folders
    in the tutorial jacob has linked you find more about this.
    Olek

  • PDF XFA form/internet browser/JAVA application/Drag and Drop

    Hi guys,
    I need to be able to open a PDF XFA form (a PDF document where I have some input controls and javascripts for validation) inside a JPanel.
    If this is not doable am thinking if i can open this pdf form in a web browser by launching it from my java application.
    And when I do this, I want to be able to drag and drop between the java application and the browser.
    Anyone can tell me if that is doable?
    Thanks and Regards,
    Rawad

    Tristan,
    I am stuck in the same place. Perhaps we could work on this together.
    I am trying to drag a single item from a JList to a text editor, Word, etc. I have two problems:
    1) I can't seem to get just the item in the JList to drag. It wants to drag the entire JList component.
    2) How does one define the remote application as the drop target? Have not found any examples either.
    Is the drop target actually the system clipboard?
    Rp

  • Portlet drag and drop

    Hi, Is there a way to enable JSR 168 portlet drag and drop(drag from one place to another place) feature. I know we can use oracle composer(page customizable, layout and panal customizable) for that. My requirement is
    1. Create a page template(myTemplate.jspx) that has 2 column layout - to restrict 'page developer' (who uses the page template) to use only two columns all the time. Add facet ref to the columns.
    2. Cretae a page that uses myTemplate.
    3. I want to consume portlets at design time. End user will not be able to add portlets.
    4. End user will only be able to drag one portlet from one place to another.
    In this case where i need to user oracle composer components(page template or the page that uses it)? If I use composer in page then I cannot restrict to 2 column layout.
    Thanks,
    $N

    What version of webcenter are you using? PS2 or PS3?
    Because you are a talking about JSR168 i expect this to be PS2?
    "Consume portlets at design time"
    This means that your developers will drop portlets from JDeveloper on the page; They will NOT use the resource catalog for this, is this correct?
    " End user will only be able to drag one portlet from one place to another"
    This is OOTB functionality when you use layoutCustomizable. Placing portlets in another region is called personalization. Adding portlets to pages is called customization.
    When you want your users to be able to drag and drop portlets from one place to another, they should only be authenticated. Authenticated users can do this by default. You don't need to do anything special for this.
    It looks like your requirements is a description of the default behavior or am i missing something?

  • Java script- drag and drop

    Can i use java scripte to do a drag&drop interface?I want to move a picture(.jpg or.gif) to anywhere on ie.

    There are drag and drop functions in DHTML that you can use in Javascript :
    ondrag
    Fires on the source object continuously during a drag operation.
    ondragend
    Fires on the source object when the user releases the mouse at the close of a drag operation.
    ondragenter
    Fires on the target element when the user drags the object to a valid drop target.
    ondragleave
    Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
    ondragover
    Fires on the target element continuously while the user drags the object over a valid drop target.
    ondragstart
    Fires on the source object when the user starts to drag a text selection or selected object.
    ondrop
    Fires on the target object when the mouse button is released during a drag-and-drop operation.

Maybe you are looking for