Create new RichFaces Documentation Jira issue

This will launch the RichFaces Jira page - to complete your feedback please login if needed, and submit the Jira.

JBoss.orgCommunity Documentation

6.7.6.  <rich:dndParam> available since 3.0.0

The component is used for passing parameters during drag-and-drop operations.

The <rich:dndParam> is used during drag-and-drop operations for passing parameters to an indicator. To use the component it is necessary to set "type" attribute that specifies what kind of functionality the component will provide: dragging or dropping. Attributes "name" and "value" are also should be defiend. Instead of the "value" attribute definition it is possible to define value of the component using nested contents.

Variants of usage:


...
      <rich:dragSupport ... > 
        <rich:dndParam type="drag" name="dragging"> 
                <h:graphicImage value="/img/product1_small.png"/> 
        </rich:dndParam> 
        <h:graphicImage value="product1.png"/> 
</rich:dragSupport>
...

...
<rich:dragSupport ... > 
        <rich:dndParam type="drag" name="label" value="#{msg.subj}"/>
        ...
</rich:dragSupport>
...

...
<rich:dropSupport ... > 
        <rich:dndParam type="drop" name="comp" > 
                <h:graphicImage height="16" width="16" value="/images/comp.png"/> 
        </rich:dndParam>
        ...
</rich:dropSupport >
...

Table of <rich:dndParam> attributes.