• 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
Re: Using WebObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using WebObjects


  • Subject: Re: Using WebObjects
  • From: Cyril Godefroy <email@hidden>
  • Date: Fri, 5 Sep 2003 13:05:52 +0200

On vendredi, sep 5, 2003, at 12:22 Europe/Paris, Dev WO wrote:

Hello,
You've helped me a lot pointing me to the PetStore example (in fact there are some "update cart" problem in it;)), but after reading quite some documentation, I'm still feeling lost...


So if someone can correct me if I'm wrong:
There are 2 ways to develop WO for web application: DirectToWeb which uses a special framework that may requires more ressources from the server, almost code free, but not very personalized. And Web Application, which requires more Java knowledge as you have to right quite some code, but completely personalized.


Nope, there's also D2JC (java client).
So what I have to do now is a stamp store, on which there won't have credit card payment right now, if possible, generating a pdf of the shopping cart, and send it via postal mail with a cheque (later we should be able to add accounts and credit card payment).

I'm wondering which way to do it: Direct2Web or WebApp...I don't even know if Direct2Web is intend to do an e-commerce website!

D2web is not very qualified, you're right
As for EOModeler, I understand quite well what it is doing, but I don't understand how to "include" it in a project. and I don't know if it's "only" for Direct2Web (or if Direct2Web MUST have an EOModel), or if you should use it to develop a WebApp.
You need EOF to plug into a database with both. If you create a new WebApp project the 'wizard' will ask you if you want to add an EOModel at that moment.

Here's how I understand it:
-Create the EOModel of your business
-Filling the database (Do I have to do it with EOModeler, or should I use another program like YourSQL??)
-Launching Project Builder, choosing a Web Application, importing the EOModel and all my HTML files and images, etc
-Try to link all this ;)
You could also kill step 2 and use D2web to quickly have access to your db data. You shouldn't import HTML files per se.

Is EOModeler an important part, or is it easier for a beginner to start without it?
EOModeler is a very important par to do that.

Now for my project, there should be a browser detector (IE or a real standard browser) to determine a stylesheet to use (I don't know if a WebApp can use an external stylesheet or if the code must be written in the HTML page). If this is too hard (linking an external stylesheet), I can double the page, then make a php redirection just when user enter the site...but I'd rather like to make all this in WO.
There's been a discussion on browser detection with project Wonder's ERXBrowser class just this morning. Regarding CSS, I usually have a WOPage containing all the basic interface and this method:
public String pathForCSS(){
WOResourceManager rm = application().resourceManager();
return rm.urlForResourceNamed("my.css", null, null,context().request());
}
Add a browser context in there, and you'll be ok.
Then when you choose which stamp to order, I'd like a part of the page to be updated with the order, so the user can have a look at it while doing his shopping. Then when he's done, he reviews his shopping cart, can update quantities, then click order, got his pdf (and we got the copy of it by email).

Have a shopping cart component that takes an array as an argument (array of stamps chosen)
if NSMutableArray.count()==0 Component produces nothing
otherwise, add a worepetition taking the array as a source aStamp as iterator and print aStamp.name() etc in your component.
Your array should be a method and property of the Session.

Or should I do it with php to be on time and take some more time to develop it in WO.... :(


Don't do it in PHP (trash in, trash out) The time you'll win doing it in PHP will be lost when time comes to update or change page design.

thanks for reading through all of this, and thanks for your valuable help an comments. I hope I'll be able to help the other soon.

Have fun!
Cyril
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Using WebObjects
      • From: Dev WO <email@hidden>
References: 
 >Using WebObjects (From: Dev WO <email@hidden>)

  • Prev by Date: Re: Anyone tried to use a G5 yet?
  • Next by Date: Re: Using WebObjects
  • Previous by thread: Using WebObjects
  • Next by thread: Re: Using WebObjects
  • Index(es):
    • Date
    • Thread