AF: component InputFile | Drag and drop functionality

Hi all

I use JDev 12.1.3.

I have an obligation to provide drag and drop installation on InputFile component. is it possible that I can enjoy this function to the af:InputFile component?

sample look and feel of drag and characteristic of gout can be found here that is implemented in html5.

https://HTML5-demos.appspot.com/static/DND/all_types_of_import.html

Thank you

Vieira

It seams to be a bug or feature of IE (I checked ie10 because I don't have a patchted for ie11 system). IE intercepts the drop event and open the zip file. The web is full of advice on that. This seams of methods to work, but I did not test it:

https://opensourcehacker.com/2011/11/11/cancelling-HTML5-drag-and-drop-events-in-Web-browsers/

Timo

Tags: Java

Similar Questions

  • All drag and drop functionality stopped working in Firefox 16 / Firefox 16.0.2

    Note that when it stopped working exactly but all drag and drop functionality work more... images, URLS, tabs... you name it. I was on 16 FF and upgraded to 16.0.2 without help. SafeMode... same behavior. Disable each add-on single and plugin... same thing again. using the default theme.

    What's left to try?

    I am running Windows XP SP3.

    A complete remission to zero of the system got things working again for me. Not ideal, but I'll take it for now.

  • ActionScript 3.0 drag and drop function

    Hi, im trying to implement a drag and drop function to an array of movieclips on the stage using actionscript, but the same error keeps appearing: -.

    Error

    TypeError: Error #1010: a term is undefined and has no properties.

    at draft1_fla::MainTimeline/down()

    TypeError: Error #1010: a term is undefined and has no properties.

    at draft1_fla::MainTimeline/release2drop()

    Worked on this for a couple of hours and just can't get my head around it. Why this error keep appearing, what should I do to each object in the table to simply drag-and - drop!

    Code: -.

    import flash.events.MouseEvent;

    var cereal1_Array:Array = [cereal1_1, cereal1_2, cereal1_3, cereal1_4, cereal1_5, cereal1_6, cereal1_7, cereal1_8, cereal1_ 9];

    for (var i: Number = 0; i < cereal1_Array.length; i ++)
    {
    cereal1_Array [i] .addEventListener (MouseEvent.MOUSE_DOWN, down); Listen the Mousedown event, waiting to be executed
    cereal1_Array [i] .addEventListener (MouseEvent.MOUSE_UP, release2drop);
    }

    / * function to the bottom (evt:MouseEvent): void
    {
    cereal1_Array [i] .startDrag ();
    }

    function release2drop(event:MouseEvent):void
    {
    cereal1_Array [i] .stopDrag ();

    If (cereal1_Array [i] .hitTestObject (back) == true)
    {
    trace ("fell into the basket")

    } ElseIf (cereal1_Array [i] .hitTestObject (back) == false)
    {
    trace ("not in basket");
    }
    }

    Instead of "cereal1_Array [i] .startDrag (); you want to refer to the current object as "evt.target.startDrag ()";

    Also use this same method to the second function:

    function release2drop(event:MouseEvent):void
    {

    var thisItem:Object = event.target;
    stopDrag();

    If (thisItem.hitTestObject (back) == true)
    {
    trace ("fell into the basket")
        
    } ElseIf (thisItem.hitTestObject (back) == false)
    {
    trace ("not in basket");
    }
    }

    You need not have stopDrag() attached to a particular object. StopDrag() stop all current drag.

  • InDesign CS6 DPS drag and drop functionality?

    Hello

    I was wondering if in inDesign CS6, it was possible to click and drag the application. So when the application is playing on an ipad, you can drag and drop freely images around the screen?

    Discussion of blocking, same post here http://forums.adobe.com/message/5882620

  • Drag and Drop function

    After I installed the Drag and Drop feature VM tools still does not work between the guest and host. So, how do to configure this feature for the drive of the 3 VM. Thank you.

    Install VMware tools and select enter unity option for the virtual machine

    VM > enter the unit

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '.

  • How to approach the cell relative to the TileList component during drag-and-drop processing

    Is there a way to address the cell tile being hit against during the processing of dragDrop function?

    private void myDragDrop(e:DragEvent):void {}
    e.Whatthe #* &$
    }

    < mx:TileList id = number of rows 'tilelist1' = '9' columnCount = '9 '.
    dragDrop = "myDragDrop (event); "dataProvider ="{anyOldAC}"/ >

    If I drop something on the 3rd line and the 5th column, I would like to be able to manipulate the dataProvider the15th enter without having to understand the number of cells in the geometry of component and mouseX/mouseY. With the help of component geometries just seems too fragile.

    Got the answer from Joan Lafferty on the forum of programmers:

    Use calculateDropIndex(event:DragEvent) which is a function
    for a TileList component. Return the index where the item has been deleted.

    And it works:

    private void myDragDrop(e:DragEvent):void {}
    var dropIndex:int = tilelist1.calculateDropIndex (e);
    Alert.Show ("dropIndex:" + dropIndex);
    }

    Thank you, Joan!

  • AF:tree Drag and Drop NPE problem

    Hello. I use JDeveloper 11.1.2.4.0.

    I have a tree composed of 4 levels (in a page template). I had an obligation of implementation of slip and fall on the shaft to allow movement of the nodes of level down a penultimate node to another. Looking around for suitable examples, I followed the example here - http://www.gabrielsideras.com/2010/10/23/adf-drag-and-drop-functionality-in-an-aftree-component/

    I had to introduce the penultimate node in the tree by adding a view accessor of additional link and makes appear only in the binding of the tree. The component af:tree itself is configured with a nodestamp containing a faceted af:switcher and child for the value of def relevant structure. Selected and disclosed RowKeys are maintained at the level of the session for the tree through controlled beans. Note that all objects referenced in the tree view have defined primary keys.

    When try to drag-and-drop, however, I get the following message appears in the console, immediately followed by a (below battery) Null pointer Exception:

    < UIXInclude > < _warnUnpoppedContextChanges > ADF_FACES-10021: during treatment of the include element, the change of context found does not match the component of the current. Should oracle.adf.view.rich.component.fragment.UIXInclude$ IncludeContextChange, but had UIXCollection.CollectionComponentChange [Component class: oracle.adf.view.rich.component.rich.data.RichTree, the component ID: pt_t2].

    < UIXInclude > < _warnUnpoppedContextChanges > ADF_FACES-10021: during treatment of the include element, the change of context found does not match the component of the current. Should oracle.adf.view.rich.component.fragment.UIXInclude$ IncludeContextChange, but had UIXCollection.CollectionComponentChange [Component class: oracle.adf.view.rich.component.rich.data.RichTree, the component ID: pt_t2].

    Then the stacktrace

    
    java.lang.NullPointerException
      at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.findChildNode(JUCtrlHierNodeBinding.java:879)
      at oracle.jbo.uicli.binding.JUCtrlHierBinding.bringNodeToRangeKeyPath(JUCtrlHierBinding.java:788)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding.bringNodeToRangeKeyPath(FacesCtrlHierBinding.java:111)
      at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:130)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:830)
      at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:513)
      at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1220)
      at oracle.adf.view.rich.component.rich.data.RichTree.invokeOnComponent(RichTree.java:439)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at oracle.adf.view.rich.component.fragment.UIXInclude.invokeOnComponent(UIXInclude.java:161)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXDocument.invokeOnComponent(UIXDocument.java:106)
      at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1321)
      at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$DeliverDropTargetDropEvent.invokeContextCallback(LifecycleImpl.java:1711)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1735)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1215)
      at oracle.adf.view.rich.component.rich.data.RichTree.invokeOnComponent(RichTree.java:439)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at oracle.adf.view.rich.component.fragment.UIXInclude.invokeOnComponent(UIXInclude.java:161)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
      at org.apache.myfaces.trinidad.component.UIXDocument.invokeOnComponent(UIXDocument.java:106)
      at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1321)
      at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeCustomEvents(LifecycleImpl.java:553)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:431)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at we  blogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at cognitmmon.helper.SessionTimeOutListener.doFilter(SessionTimeOutListener.java:85)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    
    

    Once the error has been handled, navigating to a page that contains the model shows that the displacement of the node successfully.

    Initially, I assumed that it's something to do with an inconsistency in the scope of the session RowKeySets. I removed this dependency, but also an attempt to refresh the nodes of tree programmatically (by running queries on the link accessors see) but none of this had no effect...

    I guess I'm not at all clear how ADF manages the change of key values when a node is moved between nodes parents in this way...?

    Any help would be much appreciated - as usual, I'm not 100% sure what level of detail should be described here then please let me know if there are some info.

    Thank you.

    A quick update. I solved the problem I've done myself...

    The dropListener code was not reset the currency of the line to the original in the tree rowKey when I finished to retrieve info from the drop site and drag the source (transferable).

    Thanks for your help anyway.

  • Calendar of the ADF: Drag and Drop

    Dear all,

    I tried to add the drag and drop functionality provided by Oracle ADF to a calendar that displays events from the database.

    < af:calendar id = 'c4' value = ' #{bindings. " CalendarView1.calendarModel}.

    calendarActivityListener = "#{CalendarBean.activityListener}" > "

    < af:calendarDropTarget dropListener = "#{CalendarBean.handleDrop}" action = "MOVE" / > "

    < / af:calendar >

    The "CalendarBean" code is that provided in the Oracle ADF Faces "DemoCalendarBean.java" demo application

    Unfortunately, the following error occurs "oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$ AdfmCalendarActivity cannot be cast to oracle.adfdemo.view.calendar.rich.model.DemoCalendarActivity.

    Can anyone advise a solution

    Thanks in advance

    Concerning

    Hello

    Start with the calendar using Oracle demonstrations certainly seem convoluted - I did the same thing. I had to interpret what the demo was trying more of in the java code in general, and then write my own code. Below, I have the code that works for my clients.

    1.) tag add calendar Drop target within your calendar.

    2.) create your listener to drop in a managed bean (make sure that your method is mapped into the target calendar Drop). Note the areas where I've "updated HERE". I had fun with the data conversions that you see

    Updated - this must go in your bean example. You can of course do this dynamic, but for now, it should work.

    currTimeZone private zone is TimeZone.getTimeZone (' America/Detroit');.

    This card to your target calendar drop tag

    public DnDAction handleDrop (DropEvent dropEvent) {}

    Method to handle the Drag and Drop feature calendar

    Return _handleDrop (dropEvent, false);

    }

    public DnDAction _handleDrop (DropEvent dropEvent, showPopup boolean) {}

    Drag and drop (mailable)

    Transferable transferable = dropEvent.getTransferable ();

    CalendarDropSite dropSite = (CalendarDropSite) dropEvent.getDropSite ();

    DropSiteDate date = dropSite.getDate ();

    CalendarActivity.TimeType timeType = dropSite.getTimeType ();

    Civil activity

    Activity CalendarActivity = (CalendarActivity) transferable.getData (DataFlavor.getDataFlavor (CalendarActivity.class));

    If (activity! = null) {}

    _handleCalendarActivityDrop (dropEvent, dropSiteDate, activity, showPopup);

    Return dropEvent.getProposedAction ();

    }

    Return DnDAction.NONE;

    }

    private _handleCalendarActivityDrop Sub (DropEvent dropEvent, dropSiteDate Date, CalendarActivity activity, boolean showPopup) {}

    Current start date Info get an activity

    Date startDate;

    startDate = activity.getStartDate (currTimeZone);

    Calendar startCal = Calendar.getInstance (currTimeZone);

    startCal.setTime (startDate);

    Obtain the primary key of the calendar item as we move

    String rowPK = activity.getId (m:System.NET.SocketAddress.ToString ());

    int startDayOfYear = startCal.get (Calendar.DAY_OF_YEAR);

    int startHour = startCal.get (Calendar.HOUR_OF_DAY);

    int startMin = startCal.get (Calendar.MINUTE);

    int startYear = startCal.get (Calendar.YEAR);

    Get current Info from Date of end of the activity

    Date endDate;

    endDate = activity.getEndDate (currTimeZone);

    Calendar endCal = Calendar.getInstance (currTimeZone);

    endCal.setTime (endDate);

    int endDayOfYear = endCal.get (Calendar.DAY_OF_YEAR);

    int endHour = endCal.get (Calendar.HOUR_OF_DAY);

    int endMin = endCal.get (Calendar.MINUTE);

    int endYear = endCal.get (Calendar.YEAR);

    Download New Start Date object dropSiteDate Info

    Calendar dropCal = Calendar.getInstance (currTimeZone);

    dropCal.setTime (dropSiteDate);

    int dropDayOfYear = dropCal.get (Calendar.DAY_OF_YEAR);

    int dropHour = dropCal.get (Calendar.HOUR_OF_DAY);

    int dropMint = dropCal.get (Calendar.MINUTE);

    int dropYear = dropCal.get (Calendar.YEAR);

    calculation variables

    long eventDelta = 0;

    int newEndDayOfYear = 0;

    Check if there is any change with the start date new old vs.

    If (startDayOfYear! = dropDayOfYear) {}

    Get the value of delta beginning-enddate

    eventDelta = endCal.getTime () .getTime () - startCal.getTime () .getTime ();

    Info set start date (Leaving time infact info)

    startCal.set (Calendar.DAY_OF_YEAR, dropDayOfYear);

    startCal.set (Calendar.YEAR, dropCal.get (Calendar.YEAR));

    startCal.set (Calendar.MONTH, dropCal.get (Calendar.MONTH));

    calculate the new endDate

    Day newEndDate = new Date (startCal.getTime () .getTime () + eventDelta);

    endCal.setTime (newEndDate);

    reformat the start date, just in case.

    Trainer SimpleDateFormat;

    Formatter = new SimpleDateFormat ("yyyy-MM-DD hh: mm:." "") « « S ») ;

    Date newStartDate;

    newStartDate = new Date (startCal.getTime () .getTime ());

    Formatter.format (newStartDate);

    Take the iterator that is used for the calendar

    DCBindingContainer dcbindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    UPDATE HERE - the name of your iterator binding your view calendar object

    Iterator DCIteratorBinding = dcbindings.findIteratorBinding ("NameOfYourViewObjectIterator");

    Get lines of database that uses the iterator

    Line lines [] = iterator.getAllRowsInRange ();

    Line currentRow = iterator.getCurrentRow ();

    Must make sure that we have the iterator on the right line

    If (rows.length > 0) {}

    for (int i = 0; i)< rows.length;="" i++)="">

    Updated HERE - this is a primary key for your view object

    If (rows [i].getAttribute("Id").toString () .equals (rowPK)) {}

    We found the line, now exit loop and move forward

    currentRow = lines [i];

    break;

    }

    }

    }

    If (currentRow! = null) {}

    Get the binding of operations

    CHECK to make sure that you have a validation link on your Page Def

    OperationBinding commitBinding = dcbindings.getOperationBinding ("Commit");

    / Date start and end Date for the line that we are changing the value

    * We need to create an oracle.jbo.domain.Timestamp because the view entity object using oracle.jbo.domain.Date

    * oracle.jbo.domain.Date does not accept that the oracle.jbo.domain.Timestamp, which stamp accepts java.util.Date

    */

    Start date of new game

    Timestamp newStartDateTs;

    newStartDateTs = new Timestamp (newStartDate.getTime ());

    UPDATE HERE - launched date field

    currentRow.setAttribute ("Startdate", newStartDateTs);

    New defined end date

    Timestamp newEndDateTs;

    newEndDateTs = new Timestamp (newEndDate.getTime ());

    UPDATE HERE - launched date field

    currentRow.setAttribute ("Enddate", newEndDateTs);

    Perform field validation against currently modified line

    try {}

    currentRow.validate ();

    } catch (Exception e) {}

    System.out.println (e);

    Restore all changes so there is no garbage data is entered into the database

    currentRow.refresh (Row.REFRESH_UNDO_CHANGES);

    return;

    }

    Run the validation on the database operation

    commitBinding.execute ();

    Look for errors during validation: If no errors, then update calendar

    If (commitBinding.getErrors () .isEmpty ()) {}

    Refresh the calendar client in order to reflect the new changes

    RequestContext adfContext = RequestContext.getCurrentInstance ();

    adfContext.addPartialTarget (getCalendarComponent ());

    } else {}

    currentRow.refresh (Row.REFRESH_UNDO_CHANGES);

    }

    } else {}

    Nothing to do here.

    }

    }

    }

    protected RichCalendar getCalendarComponent() {}

    FacesContext context = FacesContext.getCurrentInstance ();

    UIComponent root = context.getViewRoot ();

    Hard-coded id for the moment, but that can be loaded dynamically.

    UPDATE your schedule component JSPX HERE - id

    return (RichCalendar) root.findComponent ("c1");

    }

    (3.) If can't remember off hand imports, if you have a problem let me know, I'll send a list of what I have.

    I hope this helps. Good luck!

    Gavin

  • Drag and drop into the structure of recursive tree using af: tree

    I use version 11.1.1.2.0 jdeveloper.

    I have a table of the following structure:

    groupVO.
    id   name    parent_id
    1   group1   -1
    2   group2   -1
    3   subgp1    1
    4   subgp2    1
    5   leaf1        3
    6   leaf2        4
    7   leaf3        3
    To implement this as a tree, I created a static vo, RootVO, with a row (root-1).
    This is defined as the parent of groupVO using a link from the view.
    Then, I created a viewlink groupVO to himself.
    Then, I created an af:tree with these your. The tree looks like this:
    Root
         ->group1
                      ->subgp1
                                   ->leaf1
                                   ->leaf3
                      ->subgp2
                                   ->leaf2
         ->group2
    Now how can I implement drag and drop in this case?
    What I have to do in drag - move, it's just update the component parent_id enjoy the ID of the node dropsite.

    Also, I need to display the details of the node selected in a form. I found that by dragging the child vo does not have the trick here. It shows only the first child node of the table.

    Published by: josetuttu on July 17, 2011 23:23

    Hello

    I have a similar case (non recursive tree) described here.

    http://www.gabrielsideras.com/2010/10/23/ADF-drag-and-drop-functionality-in-an-aftree-component/

    To implement the move I use model method instead of a method to support bean.

    Gabriel.

  • Error #1069: TextField drag and drop

    I created a clip I creates instances of the runtime by clicking on a button, these movieclips all have the anuee name # where # is the instance number.

    My problem is that the clip has a text box Dynamics slap in the middle of it that does not work with my drag and drop function. If I shake the cloud around the edges, drag drop works. If I click in the Middle it does not work and gives the following error in the output window

    ReferenceError: Error #1069: property not found dropTarget on flash.text.TextField and there is no default value for Suite_fla::MainTimeline/myDragHandler()

    Here is the myDragHandler function which only downwards click the Component Manager I have also a top manager who made stopDrag() but it's the same thing send me two errors for each click.

    function myDragHandler(event:MouseEvent):void
    {
    var object = event.target;
    object.startDrag ();
    };

    So I need to drag the clip even if the user clicks on the text in the middle of the box. Advice or advice is welcome.

    Thank you.

    in your loop where assign you event handlers, try to set the mouseChildren to false on the MovieClips bcloud property.

  • Can you "Disable drag and drop" in Windows 7?

    is there a method to DISABLE drag-and - déposer?

    Hello

    You need to carefully examine the results when you disable a base like the Drag and Drop feature.

    Some examples of functions that may be affected:

    • In many programs, you would be no longer able to drag and select a block of text to copy.
    • It would be impossible to drag a window to another location on the screen.
    • You cannot drag an icon on the desktop for the re - position.
    • In Windows 7, you would be no longer able to drag icons pinned in the taskbar for the re - position.
    • In other programs, you would not be able to drag the mouse to select multiple items.
    • With some third-party utilities that use the "sliders" to make adjustments, you wouldn't be is no longer able to drag the sliders.

    Most users want to disable drag and drop because they have accidentally drag and drop an element to an unknown destination.

    What you can do, without disabling completely the drag and drop functionality is to adjust the threshold to slide with a registry change. This will change the distance that an object must be moved before a drag is initiated.


    WARNING:
    always to the top of the resistry before making any changes. To do this in the registry editor, select file/export. In the scope of the export, all options you select. Save the file to the desktop. If something goes wrong, you can right click on this file to restore the registry.

    Press the button of the Windows Logo + R to bring up the run dialog box. Type regedit.exe in the Open box, and then click OK.

    Navigate to the following key.

    HKEY_CURRENT_USER\Control Panel\Desktop

    In the right pane, find the following.

    DragHeight and DragWidth. These two values will have a value of 4data.

    Right-click each of these values and select Edit.

    In the value data box, type 20.

    Click OK.

    You will need a Log Off/Log on to see the results.

    Test the new setting to see if it works for you. If 20 does not work for you, increase the value 30, etc., until you find the setting that your satisfaction with.

    Reset these values back to 4 returned it all back to the default value.

    Concerning

  • bbUI.js and jQuery UI drag and drop does not

    Hey guys, I'm lost trying to integrate a drag and drop functionality using jQuery in my bbUI.js application. I don't know where to put my init code that makes the draggable element. I tried just this feature in my existing project workflow, but that doesn't seem to work. The elements are not movable. I don't want to clutter the page problems of github with a request for assistance. Thank you!

    In case if someone seeks this I work.





    $('#canvasphoto').droppable ({tolerance: 'fit'});

    $(«#selectiondrag»).draggable({)
    tolerance: "touch."
    animate: true,
    Scroll: false,
    containment: $('#canvasphoto'),.
    return: false,
    Drag: function() {}
    var Startpos = $(this) .position ();
    $("div#start").text ("START: \nLeft:" + Startpos.left + "\nTop:" + Startpos.top);
    }
    });

    This made the turn (move a div in a div)

    I have a background image and a div (405 x 405) as an example that I can move left or right (but the div allows you can also move upwards or downwards)

    I don't know that if I really need the areaselect, just let him in.

    jQuery-ui I've selected only draggable/resize/move and the rest that I've left out.

  • Drag and Drop internal

    Hello

    My company has purchased this product in v6. I believe that the drag and drop function is available for 6.1 and I need assistance then connect. / Add this feature.

    We use internal machines and cannot implement the functionality.

    Welcome,

    & Slide was only available in 6.1, which was for the users of the subscription and only an ASA client. If your company has purchased a perpetual license, you could not get this feature, free patch 6.0.0.199 to 6.0.1.240 who has not had the DragAndDrop is...

    Lilybiri

  • The Drag and Drop 6.1 publish as HTML5?

    Is the new drag and drop features in Captivate 6 compatible HTML5 update?

    Hi SavyEd,

    Yes. Cp6.1 Drag and Drop functionality works well with the release of HTML5.

    Thank you

    VERALINE Sukumaran.

  • What browser supports the feature "Drag and Drop"?

    I would like to know what browser supports "Drag and Drop" function because I've tried IE, Opera and Chrome, and none of them worked.

    IE just opening the file when I do this, Opera asks if I want to download but when I click Yes, nothing happens and finally with chrome when I drop the file, nothing happens.

    Drag and drop works very well here in Chrome on Win XP and Win 7.

Maybe you are looking for