Bonjour,
J'essaye depuis un certain temps de créer un composant draggable avec RichFaces poour ce faire je me suis basé sur cet exemple
et j'ai commencé à rendre les composants draggable dans ma cette exemple mais le problème que le composant ne donne aucune indication qu'on peut faire du drag and drop:
Environement:Spring 2.5.5,Richfaces 3.3.2,jsf 1.2
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 <!---------------- Indicator --------> <rich:dragIndicator id="indicator" /> <h:form> <table border="0"> <tr> <td valign="top"><rich:panel> <rich:tree> ... </rich:tree> </rich:panel></td> <td valign="top"><rich:panel id="afficherTest"> <rich:dataGrid value="#{afficherTestBean.listTest}" var="test" columns="2" elements="6" width="600px"> <rich:panel style="cursor: move"> <!---------------draggable Zone--------------------> <rich:dragSupport dragIndicator=":indicator" dragType="#{test.nomTest}" dragValue="#{test.nomTest}"> <rich:dndParam name="label" value="#{test.nomTest}" /> </rich:dragSupport> <f:facet name="header"> <h:outputText value="#{test.categorie}"></h:outputText> </f:facet> <h:panelGrid columns="2"> <h:outputText value="Nom Test:" styleClass="label"></h:outputText> <h:outputText value="#{test.nomTest}" /> <h:outputText value="Description Test:" styleClass="label"></h:outputText> <h:outputText value="{test.description}" /> <a4j:commandLink value="Ajouter"></a4j:commandLink> </h:panelGrid> </rich:panel> <f:facet name="footer"> <rich:datascroller></rich:datascroller> </f:facet> </rich:dataGrid> </rich:panel></td> </tr> </table> </h:form> </html>
Merci d'avance pour votre aide
Partager