Hello. I want to include into my project dojo-0.4.2, therefore I put it into WebContent/js/dojo/(WebContent/js/dojo/dojo.js) and define the next page: <html jwcid="@Shell" title="Tapestry-4.1.1" browserLogLevel="debug" debugEnabled="true" consoleEnabled="true" parseWidgets="true" dojoSource="asset:dojoSource" dojoPath="asset:dojoPath"> <body jwcid="@Body"> <div dojoType="datepicker" widgetId="foo"></div> </body> </html>
and following page specification: <?xml version="1.0"?> <!DOCTYPE page-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.1//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_1.dtd"> <page-specification class="tapestryproba.HomePage"> <asset name="dojoSource" path="context:/js/dojo/dojo.js"/> <asset name="dojoPath" path="context:/js/dojo"/> </page-specification> and result rendered html: [skipped] <script type="text/javascript">djConfig = {"isDebug":true,"debugContainerId":"debug","baseRelativePath":"/tapestry-proba1/js/dojo","preventBackButtonFix":false,"parseWidgets":true,"locale":"ru"} </script> <script type="text/javascript" src="/tapestry-proba1/js/dojo/dojo.js"></script> <script type="text/javascript"> dojo.registerModulePath("tapestry", "/tapestry-proba1/app?service=asset&path=%2Ftapestry%2F"); </script> <script type="text/javascript" src="/tapestry-proba1/app?service=asset&path=%2Ftapestry%2Fcore.js"></script> [/skipped] DatePicker widget again does't appear on the result html page. Could anyone show where is my mistake? Thanks a lot. > Asking questions is fine - nothing rash about it. ;) > > P.S. That widget is already integrated - > http://tapestry.apache.org/tapestry4.1/components/dojo/dropdowndatepicker.html. > > > P.P.S. All date related components (including the old DatePicker) also > support using a JodaTime object now as well, but you have to provide your > own translators for that as I haven't added them yet. > > On 5/5/07, Denis Burlaka <[EMAIL PROTECTED]> wrote: >> >> Denis Burlaka wrote: >> >> Hello All. >> >> I'm trying use Dojo in Tapestry 4.1.1. >> I have made the next page: >> <html jwcid="@Shell" >> title="Tapestry-4.1.1" >> browserLogLevel="debug" >> debugEnabled="true" >> consoleEnabled="true"> >> <body jwcid="@Body"> >> <span jwcid="[EMAIL PROTECTED]" script="literal: >> DojoInclude.script"/> >> <div dojoType="datepicker" widgetId="widgetId"></div> >> </body> >> </html> >> >> DojoInclude.script: >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE script PUBLIC >> "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN" >> >> "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd"<http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd> >> > >> <script> >> <body> >> dojo.require("dojo.widget.*"); >> </body> >> </script> >> >> but DatePicker widget does't appear on the result html page. >> >> What I'm doing wrong? Please, help me. >> >> Thanks a lot. >> >> Sorry for rash question. I have already found solution. I must set >> "parseWidgets" attribute in "true". --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]