• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Ajax in ProjectWonder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ajax in ProjectWonder


  • Subject: Ajax in ProjectWonder
  • From: "Yung-Luen Lan" <email@hidden>
  • Date: Mon, 14 Apr 2008 22:31:06 +0800

Hi,

I leveraged the Ajax support in ProjectWonder into my project recently and have several questions:

1. It will automatically include prototype + scriptaculous in the header of output html. However, my html have jquery included, and they will conflict! The $()
have different semantics in jquery and prototype. Using the AjaxUpdatingArea will render my existing _javascript_ useless. (Say, $('#id') no longer find the correct element.) Is re-writing all my _javascript_ with prototype + scriptaculous the only way I can fix that?

2. This question is not about ProjectWonder. I want to have my WO app look consistent without copy-n-paste html code on each page, so I make a component like this:

Template.html
================================
<html>
    <head>
         // other css and js stuff
         <title><webobject name="Title" /></title>
    </head>
    <body>
        // page structure
        <webobject name="Content" />
    </body>
</html>
================================

Template.wod
================================
Content: WOComponentContent {}
Title: WOString { value = title; }
================================

In each page, I could simply write

<webobject name="Template">
    // This page's content here
</webobject>

My problem is, using this method, I can't break my css into little part and assign to corresponding page. How will you solve this problem?

3. I found the examples come with Xcode / ProjectWonder is hard to run for a newbie. I can't get any example running until I saw this screencast:
http://www.wocommunity.org/podcasts/WO54_Examples.mov

Unfortunately, most of the example except the HelloWorld still can't run. Eclipse whining:

Caused by: java.lang.IllegalStateException: <com.webobjects.foundation.NSBundle> warning: There is already a unique instance for Bundle named 'JavaWOExtensions'.  Use NSBundle.bundleForName(JavaWOExtensions) to access it: <com.webobjects.foundation.NSBundle name:'JavaWOExtensions' bundlePath:'/Library/WebObjects/lib/JavaWOExtensions.jar' packages:'( com.webobjects.woextensions )' 56 classes >

or

Caused by: java.lang.IllegalStateException: Main bundle 'Properties' file can't be read.

That's very frustrated for a beginner. I mean, why don't Apple make it right at the first time? Examples are very useful for a beginner comparing to javadocs. We can't run the example by simply click the build and run button with standard installation, what's wrong with that?

Regards,
yllan
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Ajax in ProjectWonder
      • From: Chuck Hill <email@hidden>
    • Re: Ajax in ProjectWonder
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: WO deployment on WebSphere
  • Next by Date: Re: [Reminder] WOWODC 2008
  • Previous by thread: Re: EOGJavaSource.eotemplate for veogen?
  • Next by thread: Re: Ajax in ProjectWonder
  • Index(es):
    • Date
    • Thread