Hello everyone,
I'm using RichFaces drag and drop support and I want to pass an additional parameter so that I can access it's value when processing the dragged/dropped object.
My JSP has:
<rich:dragSupport dragIndicator=":indicator" dragType="measure" dragValue="#{measure}">
<a4j:actionparam name="operator" value="#{aggOp}" assignTo="#{SessionBean.tempAggOp}"/>
<rich:dndParam name="label" value="#{measure.name} (#{aggOp})"/>
</rich:dragSupport>
<h:outputText value="#{aggOp}" style="font:11px arial;"/>
On my backing bean method that processes the event, I can access the object's properties fine, but the param has a strange behaviour:
The first time I drag an object, the param value is null on the bean. The second time, it has the value it should have for the first dragged object, and so on.
Apparently the param value is being updated
after the drop event method is called. Any ideas on how to change this please?
Thanks in advance,
~Ruben