[richfaces-issues] [JBoss JIRA] Resolved: (RF-5215) dropSupport: cursorTypeMapping doesn't work properly.

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Sat Dec 6 02:19:36 EST 2008


     [ https://jira.jboss.org/jira/browse/RF-5215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski resolved RF-5215.
--------------------------------

    Fix Version/s: 3.3.0
       Resolution: Cannot Reproduce Bug
         Assignee: Mikhail Vitenkov  (was: Nick Belaevski)


Try the following code:

<h:panelGrid columns="2" border="1" id="panelID"> 
<a4j:outputPanel> 
<rich:dragSupport dragIndicator="indicator" dragType="text1"> 
</rich:dragSupport> 
<h:outputText value="custom.dragValue" /> 
</a4j:outputPanel> 
<a4j:outputPanel> 
<rich:dropSupport acceptedTypes="text1,text2" acceptCursors="col-resize" > 
<rich:dndParam value="custom.dropValue" name="dropName1" 
type="drop" /> 
</rich:dropSupport> 
<h:outputText value="custom.dropValue" /> 
</a4j:outputPanel> 
<a4j:outputPanel> 
<rich:dragSupport dragType="text2" dragIndicator="defaultIndicator"> 
<rich:dndParam value="custom.dragValue}" name="dragName2" 
type="drag" /> 
</rich:dragSupport> 
<h:outputText value="custom.dragValue}" /> 
</a4j:outputPanel> 
<a4j:outputPanel> 
<rich:dropSupport acceptedTypes="text2,text1" cursorTypeMapping="{text2:no-drop,text1:move}"> 
<rich:dndParam value="custom.dropValue}" name="dropName2" 
type="drop" /> 
</rich:dropSupport> 
<h:outputText value="custom.dropValue}" /> 
</a4j:outputPanel> 
</h:panelGrid> 

Works everywhere, but not in Opera

> dropSupport: cursorTypeMapping doesn't work properly.
> -----------------------------------------------------
>
>                 Key: RF-5215
>                 URL: https://jira.jboss.org/jira/browse/RF-5215
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>         Environment: FF3.0.3, Opera 9.62 - doesn't work at all
> IE6,7, Safari 3.1 - work for the 1st pair(dragType:value)
> 3.3.0.BETA2
>            Reporter: Mikhail Vitenkov
>            Assignee: Mikhail Vitenkov
>             Fix For: 3.3.0
>
>
> #1. Add two dragSupport components & at least one dropSupport component following way:
> <h:panelGrid columns="2" border="1" id="panelID">
> 			<h:column>
> 				<a4j:support limitToList=""></a4j:support>
> 				<a4j:outputPanel>
> 					<rich:dragSupport dragIndicator="indicator" dragType="text1">
> 						<rich:dndParam value="#{custom.dragValue}" name="dragName1"
> 							type="drag" />
> 						...
> 					</rich:dragSupport>
> 					<h:outputText value="#{custom.dragValue}" />
> 				</a4j:outputPanel>
> 			</h:column>
> 			<h:column>
> 				<a4j:outputPanel>
> 					<rich:dropSupport acceptedTypes="text1" acceptCursors="col-resize" >
> 						<rich:dndParam value="#{custom.dropValue}" name="dropName1"
> 							type="drop" />
> 					</rich:dropSupport>
> 					<h:outputText value="#{custom.dropValue}" />
> 				</a4j:outputPanel>
> 			</h:column>
> 			<h:column>
> 				<a4j:outputPanel>
> 					<rich:dragSupport dragType="text2" dragIndicator="defaultIndicator">
> 						<rich:dndParam value="#{custom.dragValue}" name="dragName2"
> 							type="drag" />
> 					</rich:dragSupport>
> 					<h:outputText value="#{custom.dragValue}" />
> 				</a4j:outputPanel>
> 			</h:column>
> 			<h:column>
> 				<a4j:outputPanel>
> 					<rich:dropSupport acceptedTypes="text2,text1" cursorTypeMapping="{text2:no-drop,text1:move}">
> 						<rich:dndParam value="#{custom.dropValue}" name="dropName2"
> 							type="drop" />
> 					</rich:dropSupport>
> 					<h:outputText value="#{custom.dropValue}" />
> 				</a4j:outputPanel>
> 			</h:column>
> 		</h:panelGrid>
> #2. Use default dragIndicator: 
> <rich:dragIndicator id="defaultIndicator">
> 			</rich:dragIndicator>
> #3. Set cursorTypeMapping="{text2:no-drop,text1:move}" for the last column in panelGrid.
> #4. Navigate to page.
> #5. Drag 1st column from the 2nd row with dragType="text2" to the last column(2nd row, 2nd column)
> #6. Verify cursor type - it's "no-drop".
> #7.  Drag 1st column from the 1st row with dragType="text1" to the last column(2nd row, 2nd column)
> #6. Verify cursor type.
> Actual behavior:
> cursorTypeMapping doesn't affect on cursor type in Opera & FF.
> Only 1st pair(text2:no-drop) applied under IE & Safari.

-- 
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