Export to GitHub

primefaces - issue #5260

Schedule Droppable Feature


Posted on Feb 15, 2013 by Grumpy Rabbit

Hi,

I realized that, although the underlying script fullCalendar supports dropping of external draggables, schedule does not.

Since I needed that feature for my application I composed a simple patch that adds 2 more attributes to the schedule widget: droppable and onDrop.

Droppable defines if external dropping is enabled. With onDrop a javascript function can be defined, which is called by the drop event of fullcalendar.

It's not a perfect solution but at least it allows to use the drop event with <p:remoteCommand />. First I wanted to implement the drop event with an ajax behaviour so that it can be used with <p:ajax> but I couldn't figure out how to do this. Is there some documentation of the "internals" of the primefaces library from which I could learn how to do that?

Anyway, find attached the simple patch. Maybe you're able to make use of it...

Greetings, Christian Ertler

Attachments

Comment #1

Posted on Feb 25, 2013 by Quick Giraffe

https://code.google.com/p/primefaces/issues/detail?id=5164

Comment #2

Posted on Feb 27, 2013 by Grumpy Rabbit

That's not related to this issue.

This issue is about the fullCalendar feature that allows to drop external events onto the calendar. See http://arshaw.com/fullcalendar/docs/dropping/ for details.

Comment #3

Posted on Nov 17, 2014 by Grumpy Kangaroo

Hi Christian Ertler,

I also required that feature , could you please brief me about steps. Thanks

Comment #4

Posted on Nov 17, 2014 by Grumpy Kangaroo

I have try with this patch. What i found code related to Schedule.Java has been missing in the patch .

.attr("droppable", schedule.isDroppable());

    if (schedule.getOnDrop() != null) {
        wb.nativeAttr("drop", schedule.getOnDrop());
    }

so if possible to re - upload the patch thanks

Comment #5

Posted on Apr 18, 2015 by Swift Rhino

https://github.com/primefaces/primefaces/issues/64

Status: MovedToGitHub

Labels:
Priority-Medium Type-NewFeature TargetVersion-FUTURE