Drag & Drop Primefaces "OnDrop" control panel - event

I am currently working on a drag & drop project using PrimeFaces. I have p:dataGrid

with multiple panels:

 <p:fieldset id="availableBlocksField">
    <p:dataGrid id="availableBlocks" columns="1" var="block" value="#{blockmenu.blockMenuItems}">
        <p:panel id="drag" header="#{block.header}">
           #{block.thumbnail}
        </p:panel>
        <p:draggable opacity="0.6" for="drag" helper="clone" dashboard="mainForm:dropArea">
         </p:draggable>
    </p:dataGrid>
 </p:fieldset>

      

and a control panel with binding

:

    <p:dashboard id="dropArea" binding="#{blockdashboard.dashboard}" styleClass="blockDashboardView" >

        <p:ajax event="reorder" listener="#{blockdashboard.onReorder}"/>
    </p:dashboard>

      

With "MenuItems" I have my available items that I can add to the control panel, but if I add them to my panel, they are only ClientSide. Mine Bean

will never be recognized by these elements.

How can I fix this?

+3
jsf primefaces


source to share


No one has answered this question yet

Check out similar questions:

158
Understanding PrimeFaces process / update and JSF f: ajax execute / render attributes
1
Surfaces: how to adjust the dashboard alignment?
1
Surfaces create a dynamic panel
1
Component update binds to component with request
0
dynamic instrument panels 4.0
0
Interfaces 3.5 Toolbar Component
0
PrimeFaces Toolbar
0
Wrong drag overlap
0
Essentials and spring security: Ajax listener won't start
0
p: ajax listener not working in bundles



All Articles
Loading...
X
Show
Funny
Dev
Pics