Question to new OrderList

UI Components for JSF
Post Reply
User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

21 Sep 2011, 10:06

Hello PF team,

Does new OrderList support "include / exclude items" feature as this supports jQuery Sortable? - http://jqueryui.com/demos/sortable/#items

I have implemented SortableList component on basis of jQuery Sortable, but now I could use PF OrderList if it would support one feature - exclude some items to be draggable and sortable. So, similar to Sortable demo.

Thanks for your reply.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

21 Sep 2011, 10:19

Found my code.

Code: Select all

<jtcomp:sortableList id="sortableChoiceList" value="#{moveChoice.choices}" var="choice" axis="y" placeholder="true"
	itemSortable="#{choice.sortable}" itemDraggable="#{choice.draggable}">
	<h:panelGroup styleClass="sortable-li-icon sortable-li-icon1" rendered="#{not choice.listNode}"/>
	<h:panelGroup styleClass="sortable-li-icon sortable-li-icon2" rendered="#{choice.listNode}"/>
	<h:outputText value="#{choice.displayName}" escape="false"/>
</jtcomp:sortableList>
Attributes "itemSortable" and "itemDraggable" do the mentioned above magic. Is there something like in p:orderList?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 23 guests