Do you have something like the following at the top of your page?
<html jwcid="@Shell" title="message:mainMenu.title">
@Shell is needed for Tapestry to include the references to dojo. If
you look at demo.appfuse.org/appfuse-tapestry and login, the mainMenu
seems to have all the required JavaScript files.
Matt
On 9/26/07, cpnguyen <[EMAIL PROTECTED]> wrote:
>
> Firebug reports "dojo is not defined" at "dojo.addOnLoad( function (e)" when
> attempting to load the form. Clicking on the calendar icon throws a
> "calendar_name has no properties" error.
>
> In Firebug, under the script tab, dojo.js does not appear. Here is a list
> of the loaded scripts:
>
> from project/scripts:
> builder.js
> controls.js
> dragdrop.js
> effects.js
> global.js
> prototype.js
> stripaculous.js
> slider.js
>
> from project/assets/static/org/apache/tapestry/form:
> DatePicker.js
>
>
> mraible wrote:
> >
> > Have you tried using Firebug to verify that you're getting a 404 for
> > dojo.js?
> >
> > On 9/26/07, cpnguyen <[EMAIL PROTECTED]> wrote:
> >>
> >> I am using a brand-new 2.0 project. I pulled the latest appfuse version
> >> via
> >> maven and started recopying all of my personal files over and performing
> >> diffs on common files. Not the best method, but I have been able to get
> >> things to work. What is broken now is the DatePicker.
> >>
> >>
> >>
> >>
> >> mraible wrote:
> >> >
> >> > The dojo.js is served up by Tapestry, not by AppFuse. Are you using a
> >> > brand-new 2.0 project or are you upgrading?
> >> >
> >> > Matt
> >> >
> >> > On 9/26/07, cpnguyen <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> Thanks for the response Matt.
> >> >>
> >> >> I've added that line into tapestry.application but it doesn't appear
> >> to
> >> >> help
> >> >> (with the DatePicker issue - I have not tried using tacos components
> >> >> yet).
> >> >> I think the issue is dojo.js (or the script file where dojo variable
> >> is
> >> >> defined) is missing. The target/project/scripts/dojo folder only
> >> >> contains a
> >> >> test.html file. It is the same in Appfuse 2.0 M5, but the DatePicker
> >> is
> >> >> working in that version.
> >> >>
> >> >> I've tried copying the dojo.js(.uncompressed.js) file from the latest
> >> >> dojo
> >> >> 0.9 build, but no luck there either.
> >> >>
> >> >> Where is dojo configured in appfuse-tapestry? From the docs I've been
> >> >> reading, it seems that something like:
> >> >> <script type="text/javascript">
> >> >> djConfig = { isDebug: false,
> >> >> baseRelativePath:
> >> "/project/scripts/dojo/dojo/",
> >> >> preventBackButtonFix: false };
> >> >> </script>
> >> >> <script type="text/javascript"
> >> >> src="/project/scripts/dojo/dojo.js"></script>
> >> >> should appear in the generated header.
> >> >>
> >> >> I will keep hacking away, but please let me know if you have any ideas
> >> on
> >> >> what is missing. Thanks.
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> mraible wrote:
> >> >> >
> >> >> > Looking at the user guide
> >> >> > (http://tacos.sourceforge.net/userguide/Setup.html), it looks like
> >> we
> >> >> > might've forgot one essentials step - adding Tacos to
> >> >> > tapestry.application:
> >> >> >
> >> >> > <library id="tacos"
> >> specification-path="/net/sf/tacos/Tacos.library"/>
> >> >> >
> >> >> > Can you try that and see if it helps?
> >> >> >
> >> >> > Thanks,
> >> >> >
> >> >> > Matt
> >> >> >
> >> >> > On 9/25/07, cpnguyen <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >> Also, is there any documentation on how to use Tacos in Appfuse 2.0
> >> >> >> (since it
> >> >> >> is now integrated)?
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >> http://www.nabble.com/Appfuse-2.0%3A-Tapestry-4.1%2C-Dojo%2C-DatePicker-DropdownDatePicker-tf4518754s2369.html#a12891241
> >> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> > --
> >> >> > http://raibledesigns.com
> >> >> >
> >> >> >
> >> ---------------------------------------------------------------------
> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >>
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/Appfuse-2.0%3A-Tapestry-4.1%2C-Dojo%2C-DatePicker-DropdownDatePicker-tf4518754s2369.html#a12905575
> >> >>
> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > http://raibledesigns.com
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Appfuse-2.0%3A-Tapestry-4.1%2C-Dojo%2C-DatePicker-DropdownDatePicker-tf4518754s2369.html#a12906501
> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > http://raibledesigns.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Appfuse-2.0%3A-Tapestry-4.1%2C-Dojo%2C-DatePicker-DropdownDatePicker-tf4518754s2369.html#a12907790
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]