Here is a simple page, using Dojo's DnD
<tr:document
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"
onload="init();">
<f:facet name="metaContainer">
<style>
.drag-zone
{
border: 1px #B6B9B4 solid;
width: 150px;
overflow:auto;
height: 120px;
}
li{
cursor:move;
}
</style>
<script type="text/javascript">
var djConfig = { isDebug: true };
</script>
<script src="#{facesContext.externalContext.requestContextPath}/dojo.js"/>
<script>
dojo.require("dojo.dnd.*");
dojo.require("dojo.event.*");
</script>
<script src="#{facesContext.externalContext.requestContextPath}/foo.js"/>
<script>
dojo.event.connect(dojo, "loaded", "init");
</script>
</f:facet>
<tr:form>
<tr:inputDate chooseId="picker" label="Label 1" />
<tr:chooseDate id="picker" />
</tr:form>
<ul id="dragList1" class="drag-zone">
<li>Bitburger 0,5 Liter </li>
<li>Bitburger 0,5 Liter </li>
<li>Bitburger 0,5 Liter </li>
<li>Bitburger 0,5 Liter </li>
<li>Bitburger 0,5 Liter </li>
<li>Bitburger 0,5 Liter </li>
<li>Bitburger 0,5 Liter </li>
<li>Bitburger 0,5 Liter </li>
</ul>
<ul id="dragList2" class="drag-zone">
</ul>
</tr:document>
On Nov 27, 2007 11:51 AM, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> also document has an onload attribute (see [1]).
>
> -Matthias
>
> [1] http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_document.html
>
>
> On Nov 27, 2007 11:48 AM, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> > Hi Niklas,
> >
> > I used it last year. Inside a demo, to show the integration.
> > I can't find the source, but I was able to integrate it.
> >
> > I embedded the <script> inside of the tr:document's metaContainer facet
> >
> > I hadn't bothered myself to create a resourceloader ;-)
> >
> > -M
> >
> >
> > On Nov 27, 2007 11:27 AM, Daniel Niklas <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > i want to use the dojo-widges "LayoutContainer" and "ContentPane" in my
> > > trinidad-pages. How do i configure dojo correct?
> > > (I'am using facelets 1.1.14.)
> > >
> > > In a plain HTML page i would do something like this:
> > >
> > > <style type="text/css">
> > > @import "dojo-release-1.0.1/dijit/themes/tundra/tundra.css";
> > > @import "dojo-release-1.0.1/dojo/resources/dojo.css"
> > > </style>
> > >
> > > <script type="text/javascript" src="dojo-release-1.0.1/dojo/dojo.js"
> > > djConfig="parseOnLoad: true"></script>
> > >
> > > <script type="text/javascript">
> > > dojo.require("dijit.layout.ContentPane");
> > > dojo.require("dijit.layout.LayoutContainer");
> > > </script>
> > >
> > >
> > > Has anybody used dojo within a trinidad application? How did you do that?
> > > How did you make your own dojo-Build?
> > >
> > > Thanks in advance
> > > Daniel
> > >
> > > --
> > > View this message in context:
> > > http://www.nabble.com/-Trinidad--Use-Dojo-with-Trinidad-tf4880858.html#a13968204
> > > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> > >
> > >
> >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > sessions: http://www.slideshare.net/mwessendorf
> > mail: matzew-at-apache-dot-org
> >
>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org