Comment afficher un modalPanel lors d'un drag and drop avec Richfaces
Bonjour,
J'utilise JSF2.0 avec richfaces 3.3. Je suis entrain de tester la drag and drop.
je dois déplacer un rich:panel d'une colonne à une autre. ça marche, mais le problème que je veux afficher un modalPanel avant que le drag ne soit effectué.
Voici le code de ma page:
Code:
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
|
<rich:panel style=" width : 300px; height:700px">
<f:facet name="header" style="align:center">
<h:outputText value="#{msg.toDo}" styleClass="name"/>
</f:facet>
<rich:dropSupport acceptedTypes="inProgress,done"
dropListener="#{myBean.transitionToDo}"
reRender="progressTable, src, doneTable" />
<rich:dataGrid id="src" columns="1" elements="4"
value="#{myBean.toDoList}" var="todo">
<h:column>
<a4j:outputPanel layout="block" style="cursor: move">
<rich:dragSupport dragType="todo" dragValue="#{todo}" >
</rich:dragSupport>
<rich:panel>
</rich:panel>
</a4j:outputPanel>
</h:column>
</rich:dataGrid>
</rich:panel>
<rich:panel style=" width : 300px; height:700px">
<f:facet name="header" style="align:center">
<h:outputText value="#{msg.inProgress}" styleClass="name" />
</f:facet>
<rich:dropSupport acceptedTypes="todo"
dropListener="#{myBean.fromTodoToInprogress}"
reRender="progressTable, src, doneTable" >
</rich:dropSupport>
<rich:dataGrid id="progressTable" columns="1" elements="4"
value="#{myBean.inProgressList}" var="in">
<h:column>
<a4j:outputPanel layout="block" style="cursor: move">
<rich:dragSupport dragType="inProgress" dragValue="#{in}">
</rich:dragSupport>
</a4j:outputPanel>
</h:column>
</rich:dataGrid>
</rich:panel> |