[richfaces-issues] [JBoss JIRA] Created: (RF-5219) dropSupport: typeMapping attribute have wrong description.

Mikhail Vitenkov (JIRA) jira-events at lists.jboss.org
Thu Dec 4 06:48:36 EST 2008


dropSupport: typeMapping attribute have wrong description.
----------------------------------------------------------

                 Key: RF-5219
                 URL: https://jira.jboss.org/jira/browse/RF-5219
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
         Environment: \trunk\docs\userguide\en\target\docbook\publish\en-US\html\
            Reporter: Mikhail Vitenkov
            Assignee: Svetlana mukhina


Currently displayed following description: Map between a draggable type and an indicator name on zone. it's defined with the pair (drag type:indicator name))
In truth, typeMapping accept string in JSON format({key1:value1,key2:value2...}), where key is a dragType and value is a parameter, defined in dropSupport, that will be passed to indicator content. IOW typeMapping allows to customize indicator(depend on dragType) through the parameters, defined in dropSupport.
For example,
dropSupport:
<rich:dropSupport acceptedTypes="text2" 
						typeMapping="{text2:dragType2,text1:dragType1}">
							<rich:dndParam name="dragType1" value="dragType1"></rich:dndParam>
							<rich:dndParam name="dragType2" value="dragType2"></rich:dndParam>
					</rich:dropSupport>
dragIndicator:
<rich:dragIndicator id="indicator">
			<f:facet name="single">
				<f:verbatim>
					{marker} <b>{dragType1}{dragType2}</b>				
				</f:verbatim>
			</f:facet>
		</rich:dragIndicator>
And two dragSupport with dragType equal to "dragType1" and "dragType2" accordingly.
So, when you drag element with "dragType1" dragSupport to area with dropSupport, you will see dragType1 in indicator content. The same thing for "dragType2"

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