How do I set dragId and dropId on DragDropEvent to meaningful identifiers for entities in my application model? Or is there some other way to reference my application model thru the DragAndDropEvent?
I tried to setting an id, using el, on the draggable/droppable components, which I then thought I could reference thru DragDropEvent.getDragId()/getDropId() in the actionlistener. But this gives me 'Empty id attribute is not allowed'
Code: Select all
<p:panel id="#{modelBean.id}">
<p:draggable revert="true" helper="clone" />
</p:panel>
<p:panel id="#{anotherModelBean.id}">
<p:outputPanel>
<h:outputText>Drop here</h:outputText>
<p:droppable dropListener="#{controller.onMessageDrop}" tolerance="pointer" onDropUpdate="@form"/>
</p:outputPanel>
</p:panel>
I also read Oleg's post in http://primefaces.prime.com.tr/forum/vi ... f=3&t=2546
But when setting <c:set target="#{component}" property="id" value="#{modelBean.id}"/>
--------------
PrimeFaces-2.2.RC2-SNAPSHOT,
Mojarra 2.0.3,
Spring webflow 2.2.1