[richfaces-issues] [JBoss JIRA] Commented: (RF-10947) rich:dragSource doesn't work after being rerendered via ajax

Richard Wähner (JIRA) jira-events at lists.jboss.org
Mon Sep 5 03:38:26 EDT 2011


    [ https://issues.jboss.org/browse/RF-10947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626153#comment-12626153 ] 

Richard Wähner commented on RF-10947:
-------------------------------------

I think I have got a similar problem. In my application there is an extendedDataTable and a drag and drop source / target below. The drag and drop element is not rendered when the application starts, but gets rerendered when a dataTable entry is selected.

The problem is that the partial rerendering does not generate the new RichFaces.ui.Droppable(), new RichFaces.ui.Draggable() and maybe other important elements in my pages source code. I think this problem would not occure if the drag and drop element is rendered with the inital page loading.

I will try to code a minimal example and post it here.

Any thoughts about this problem?

> rich:dragSource doesn't work after being rerendered via ajax
> ------------------------------------------------------------
>
>                 Key: RF-10947
>                 URL: https://issues.jboss.org/browse/RF-10947
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-drag/drop
>    Affects Versions: 4.0.0.Final
>         Environment: mojarra 2.1.1 gf3.1 
>            Reporter: Adrian Meredith
>              Labels: draganddrop
>             Fix For: 4.1.0.Tracking
>
>
> Drag Source is not applied 
> using the following code in a composite component
> {code}
> <a4j:outputPanel layout="block" styleClass="rf-ind-drag" >
>     <rich:dragSource  type="webResult" dragValue="1"/>
>     <h:outputText value="works"></h:outputText>
> </a4j:outputPanel>
> <h:panelGroup id="content" layout="block" rendered="#{cc.attrs.rendered}" style="width: 100%; height:100%;">
> 	<a4j:outputPanel layout="block" styleClass="rf-ind-drag" >
> 		<rich:dragSource  type="webResult" dragValue="1"/>
>                 <h:outputText value="doesn't work"></h:outputText>
>         </a4j:outputPanel>
> ...
> {code}
> Basically the panel at the top is draggable, the one at the bottom (which is below the panelGroup) is not.  Looking at the source its as though dragSource isn't even there as it is rendered without any reference to it (i.e. no ui-draggable class for example).
> Drag and drop support was the main reason i'm using richfaces! so its very important to me as i one to drag rows from our table widget onto another panel for quick tagging of results.  Unfortunately I'm gonna be away for the next two weeks but It'd be good to get more information on it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list