-
1. Re: Drag & Drop retreive params javascript
haoues01 Oct 15, 2007 1:10 AM (in response to haoues01)Has anyone tried to extract parameters from drag indicator using pure javascript?
-
2. Re: Drag & Drop retrive dnd params javascript
ilya_shaikovsky Oct 15, 2007 10:49 AM (in response to haoues01)Using latest 3.2.0 snapshots you may surround your drop zone to region. We've fixed impossibbility to use dnd between regions. Now it can be performed even from different forms
-
3. Re: Drag & Drop retrive dnd params javascript
haoues01 Oct 16, 2007 5:57 AM (in response to haoues01)Thanks for reply !
I downloaded the latest snapshotrichfaces-ui-3.2.0-20070925.235823-1-bin.zip 25-Sep-2007 20:19 8.3M
but it doesn't work entirely; I can retrieve the drop value but not the drag value.
Is it normal ? Below my JSP code (simplified):
<!-- HERE THE DRAG ZONE -->
<a4j:region id="home_mem_re" >
<a4j:outputPanel id="home_mem_op" layout="block" >
...
<rich:dataTable id="home_mem_dt" value="#{...}" var="teamMem" ... >
<rich:column>
<a4j:outputPanel layout="block">
<rich:dragSupport dragIndicator=":indicator"
dragType="member" ragValue="#{teamMem.id}" >
<rich:dndParam name="label" value="#{teamMem.desc}" />
</rich:dragSupport>
<h:outputText value="#{teamMem.desc}" />
</a4j:outputPanel>
</rich:column>
</rich:dataTable>
...
</a4j:outputPanel>
</a4j:region>
<!-- HERE THE DROP ZONE -->
<a4j:region id="home_player_re" >
<a4j:outputPanel id="home_player_op" layout="block">
<rich:dataTable id="home_player_dt" value="#{...}" var="gpWpr" .../>
...
<rich:column>
<a4j:outputPanel layout="block">
<rich:dropSupport acceptedTypes="member" dropValue="#{gpWpr.val}"
dropListener="#{...}" reRender="home_player_op" />
<h:outputText value="#{gpWpr.replacedDesc}" />
</a4j:outputPanel>
</rich:column>
...
</rich:dataTable>
...
</a4j:outputPanel>
</a4j:region>
Thanks in advance for attention. -
4. Re: Drag & Drop retrive dnd params javascript
haoues01 Oct 16, 2007 6:14 AM (in response to haoues01)
I tried with the latest version 16-Oct-2007 02:35 and it's not better; the drop value is null (from the drop event). -
5. Re: Drag & Drop retrive dnd params javascript
nbelaevski Oct 16, 2007 10:40 AM (in response to haoues01)Actually, dragging between regions either as forms doesn't work for now: http://jira.jboss.com/jira/browse/RF-961. We'll see what we can do with that
-
6. Re: Drag & Drop retrive dnd params javascript
haoues01 Oct 17, 2007 1:18 AM (in response to haoues01)Ok,
Actually the latest 3.2.0 snapshots I got is not stable (http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095870#4095870)
and it seems that the dnd between region/form wouldn't be available till 2008, right?