-
1. Re: dragSupport usage... help!
ilya_shaikovsky Nov 8, 2007 4:55 AM (in response to epesh)include page snippet to your description.
-
2. Re: dragSupport usage... help!
epesh Nov 8, 2007 8:48 AM (in response to epesh)Section 1:
<h:outputLabel for="authors">
<rich:dropSupport reRender="authors" dropListener="#{addarticlebean.authorDropListener}"
acceptedTypes="author">
<h:outputText value="Authors:"/>
</rich:dropSupport>
</h:outputLabel>
<rich:dataList id="authors" binding="#{addarticlebean.authors}"/>
<h:message for="authors"/>
Section 2:
<rich:scrollableDataTable var="author" value="#{addarticlebean.authorList}">
<rich:column>
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
<a4j:outputPanel>
<rich:dragSupport dragType="author">
<rich:dndParam name="authorid" value="#{author.id}"/>
</rich:dragSupport>
<h:outputText value="#{author.lastname}"/>,
<h:outputText value="#{author.firstname}"/>
</a4j:outputPanel>
</rich:column>
</rich:scrollableDataTable>
I wouldn't be surprised if this was a MESS -- after all, this is me trying to figure out what the heck I'm doing.