O'Reilly logo

PrimeFaces Cookbook - Second Edition by Oleg Varaksin, Mert Çalışkan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Drag Me, Drop Me

In this chapter, we will cover the following topics:

  • Making a component draggable
  • Restricting dragging by axis, grid, and containment
  • Snapping to the edges of nearest elements
  • Defining droppable targets
  • Restricting dropping by tolerance and acceptance
  • AJAX-enhanced drag and drop
  • Integrating drag and drop with data iteration components

Introduction

Drag and drop is an action, which means grabbing an object and dragging it to a different location. The components capable of being dragged and dropped enrich the Web and make a solid base for modern UI patterns. The drag and drop utilities in PrimeFaces allow us to create draggable and droppable user interfaces efficiently. They make it abstract for the developers to deal with the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required