Hi. 
I run the JSF project on a TomCat 8. If I use the index.html from folder 
trunk/demos/<any folder>/ , it works, but if I try to use the same code on 
new file index.xhtml it doesn`t work.
Prompt in what there may be a problem?

using code


   1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
   "http://www.w3.org/TR/html4/loose.dtd";>
   2. <html xmlns="http://www.w3.org/1999/xhtml";
   3.       xmlns:h="http://java.sun.com/jsf/html";
   4.       xmlns:f="http://java.sun.com/jsf/core";
   5.       xmlns:ui="http://java.sun.com/jsf/facelets";
   6.       xmlns:p="http://primefaces.org/ui";>
   7. 
   8.     <f:view contentType="text/html">
   9.         <h:head>
   10.             <h:outputScript library="../../" 
   name="blockly_compressed.js"/>
   11.             <h:outputScript library="../../" 
   name="blocks_compressed.js"/>
   12.             <h:outputScript library="../../msg/js/" name="en.js"/>
   13.             <h:outputScript library="../../" 
   name="javascript_compressed.js"/>
   14.             <f:facet name="first">
   15.                 <meta content='text/html; charset=UTF-8' 
   http-equiv="Content-Type"/>
   16.                 <title>Blockly Demo: MyTest</title>
   17.             </f:facet>                  
   18.         </h:head>
   19. 
   20.         <h:body> 
   21.             <p:layout fullPage="true">
   22.                 <p:layoutUnit position="north" size="100" 
   resizable="true" closable="true" collapsible="true">
   23.                     Header
   24.                 </p:layoutUnit>
   25.                 <p:layoutUnit position="south" size="100" 
   closable="true" collapsible="true">
   26.                     Footer
   27.                 </p:layoutUnit>
   28. 
   29.                 <p:layoutUnit position="center"> 
   30.                     <div  id = "blocklyDiv" style="height: 600px; 
   width: 800px;"></div>
   31.                    <!-- <h:panelGrid id = "blocklyDiv">             
              
   32.                     </h:panelGrid>-->
   33. 
   34.                     <script type="text/javascript">
   35.                         var toolbox = '<xml>';
   36.                         toolbox += '  <block 
   type="controls_if"></block>';
   37.                         toolbox += '  <block 
   type="controls_whileUntil"></block>';
   38.                         toolbox += '</xml>';
   39.                         
   Blockly.inject(document.getElementById('blocklyDiv'),
   40.                                 {path: '../../', toolbox: toolbox});
   41.                     </script>
   42. 
   43.                 </p:layoutUnit>
   44.             </p:layout>
   45.         </h:body>
   46.     </f:view>
   47. </html>
   

-- 
You received this message because you are subscribed to the Google Groups 
"Project Hosting on Google Code" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-code-hosting.
For more options, visit https://groups.google.com/d/optout.

Reply via email to