Bonjour
j'utilise modal panel dans mon application, j'ai essayé de suivre l'exemple dans http://livedemo.exadel.com/richfaces...modalPanel.jsf
mais chez moi le panel se montre une seconde et il se disparaisse rapidement
voici mon code
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
 
 <script>
         function getRightTop(ref) {
           var position = new Object();
           position.top = 0; //ref.offsetTop;
           position.left =0; // ref.offsetLeft+ref.clientWidth+6;
           return position;
         }
        </script>
        <rich:modalPanel  id="mp" minHeight="200" minWidth="450" 
            height="200" width="500" zindex="2000">
            <f:facet name="header">
                <h:outputText value="Modal Panel Title" />
            </f:facet>
            <f:facet name="controls">
            </f:facet>
                <p>Any JSF content might be inside the panel. In case of using 
                Facelets or JSF 1.2, it might be any mixed content.</p> 
 
                <p>The RichFaces modal panel is good with &lt;a4j:include&gt; to create
                a wizard like behavior.</p>
                <p>The model panel is open and closed from the javascript function
                on <i>Richfaces</i> object. The following code 
                <a href="javascript:Richfaces.hideModalPanel('form:panel')" >hide this panel</a>:
               </p>
        </rich:modalPanel>
 
 
    <h:commandButton id="link"   styleClass="f-submit" value="Valider" >
   <rich:componentControl for="mp" attachTo="link" operation="show" event="onclick"/>
     </h:commandButton>
je ne sais pas pourquoi car dans l'exemple ça marche bien
merci