Hi Matthias,

thanks a lot, dojo is running know in my trinidad environment. I'm using
Version 1.0.1, a very simple example looks like this:

<?xml version="1.0" encoding="ISO-8859-1"?>

<tr:document
  inlineStyle="width:100%; height:100%;"
  xmlns:ui="http://java.sun.com/jsf/facelets";
  xmlns:h="http://java.sun.com/jsf/html";
  xmlns:f="http://java.sun.com/jsf/core";
  xmlns:tr="http://myfaces.apache.org/trinidad";
  title="Dojo Integration to Trinidad">

<f:facet name="metaContainer">

<link rel="stylesheet" type="text/css"
href="#{facesContext.externalContext.requestContextPath}/dojo-release-1.0.1/dijit/themes/tundra/tundra.css"
/>
<link rel="stylesheet" type="text/css"
href="#{facesContext.externalContext.requestContextPath}/dojo-release-1.0.1/dojo/resources/dojo.css"
/>

<script type="text/javascript"
src="#{facesContext.externalContext.requestContextPath}/dojo-release-1.0.1/dojo/dojo.js"
djConfig="parseOnLoad: true"></script>

<script>
       dojo.require("dijit.layout.ContentPane");
       dojo.require("dijit.layout.LayoutContainer");
</script>

</f:facet>

<tr:form inlineStyle="width:100%; height:100%;">

<div dojoType="dijit.layout.LayoutContainer"
        style="width: 100%; height: 100%; padding: 0; margin: 0; border: 0;">

<div dojoType="dijit.layout.ContentPane" layoutAlign="top"
        style="background-color:red">
        Toolbar
</div>

<div dojoType="dijit.layout.ContentPane" layoutAlign="client"
        style="background-color:yellow">
        <p>Test for scrollable Area.</p>
        <p>Test for scrollable Area.</p>
        <p>Test for scrollable Area.</p>
        <p>Test for scrollable Area.</p>
        <p>Test for scrollable Area.</p>
        <p>Test for scrollable Area.</p>
        <p>Test for scrollable Area.</p>
</div>
</div>

</tr:form>
</tr:document>

btw: My first name is Daniel ;-)

Greetings
Daniel

-- 
View this message in context: 
http://www.nabble.com/-Trinidad--Use-Dojo-with-Trinidad-tf4880858.html#a13972207
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to