Hi again,

that´s great!
I´m trying to integrate the sandbox with facelets and JSF 1.2(RI) with the 
following steps:

1. put the latest sandbox jar in /WEB-INF/lib directory
2. register another facelets-taglib in web.xml

<context-param>
  <param-name>facelets.LIBRARIES</param-name>
    
<param-value>/WEB-INF/facelets-tomahawk.xml;/WEB-INF/facelets-sandbox.xml</param-value>
</context-param>

3. add the modalDialog Tag to the facelets-sandbox.xml

   <tag>
      <tag-name>modalDialog</tag-name>
      <component>
         <component-type>org.apache.myfaces.ModalDialog</component-type>
         <renderer-type>org.apache.myfaces.ModalDialog</renderer-type>
      </component>
   </tag>

4. And register in the JSF - XHTML Site the sandbox namespace:

<html ...
   xmlns:s="http://myfaces.apache.org/sandbox"/>

5. Call the component:

<h:form>
<h:commandLink value="Edit"   
onclick="dojoDialog.showModalDialog();document.getElementById('cancel').focus();"
 />
  
                        <s:modalDialog
                          dialogId="dialog"
                          dialogVar="dojoDialog"
                          dialogAttr="bgColor='white' bgOpacity='0.5' 
toggle='fade' toggleDuration='20'"
                          hiderIds="cancel"
                          styleClass="dojoDialog">
                          <t:commandButton id="cancel" forceId="true" 
value="Cancel" />
                        </s:modalDialog>
</h:form>

These lines make the browser opacity, but don't display the dialog with the 
button. But when the site loads initially the dialog appear shortly and 
immediately disappear.

What is the Problem?
Is there any sandbox configuration I forgot?

I want this behaviour: 
http://www.irian.at/myfaces-sandbox/dojo/dojoDialog.jsf

Kind regards
DaWorm

Reply via email to