Mattias,

Thanks for the example. You're absolutely right I didn't need it.

I was trying to ensure my popup component ran in both worlds, and had simply
copied the same component structure for both pages and then added my
ui:composition tags.

Thanks both for your assistance.

Danny

On 12/6/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:

Danny,

I have no problems when adding the choose/inputDate duo to my page
containing a metaContainer facet.

Why are you using the <f:verbatim> ? No need for verbatim in facelets.

here is my page which uses dojo dnd integration (and now the date
components)

Thx,
Matthias




<!--
  Copyright 2006 The Apache Software Foundation.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<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>




--
Chordiant Software Inc.
www.chordiant.com

Reply via email to