O'Reilly logo

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

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:

  • Making a component draggable
  • Restricting dragging by axis, grid, and containment
  • Snapping to the edges of the 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, meaning grabbing an object and dragging it to a different location. 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 developers to deal with the implementation details on a ...

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