[richfaces-issues] [JBoss JIRA] Created: (RF-5380) dropSupport: "disableDefault" attribute doesn't work.

Mikhail Vitenkov (JIRA) jira-events at lists.jboss.org
Sat Dec 13 08:05:36 EST 2008


dropSupport: "disableDefault" attribute doesn't work.
-----------------------------------------------------

                 Key: RF-5380
                 URL: https://jira.jboss.org/jira/browse/RF-5380
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
         Environment: IE6, IE7, FF 3.1.3, Safari 3.1, Opera 9.62(3.3.0.BETA3)
            Reporter: Mikhail Vitenkov
            Assignee: Nick Belaevski


#1. Add dragSupport and dropSupport zones following way:
<h:panelGrid columns="1" id="panel1">
			<h:panelGroup id="column1">
				<a4j:outputPanel>
					<rich:dragSupport dragType="dragType1"></rich:dragSupport>
					<h:outputText value="Drag it 1" />					
				</a4j:outputPanel>
			</h:panelGroup>
		</h:panelGrid>
<h:panelGrid columns="1" id="panel3">
			<h:panelGroup id="column3">
				<a4j:outputPanel>
					<rich:dropSupport acceptedTypes="dragType1"></rich:dropSupport>					
					<h:outputText value="Drop from 1" />
				</a4j:outputPanel>
			</h:panelGroup>
		</h:panelGrid>
#2. For dropSupport set action="main", where "main" is action navigation to the main page, defined in faces-config.xml
#3. Set ondrop="window.open('http://www.jboss.org/','_blank','width=200,height=200');"
#4. Set disableDefault="true".
#5. Navigate to page and make drag'n'drop content from "panel1" panelGrid to "panel3" panelGrid.(acceptedTypes="dragType1")

Actual behavior:
www.jboss.org opens in new window, then "main" navigation action works.
Try to append by hands "return false;" to the ondrop handler's content and repeat Step #5 - works fine: www.jboss.org opens in new window, current page remains.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list