Re: Web Application: how to add ressources (images, CSS, javascript,...)
Re: Web Application: how to add ressources (images, CSS, javascript,...)
- Subject: Re: Web Application: how to add ressources (images, CSS, javascript,...)
- From: Dev WO <email@hidden>
- Date: Tue, 26 Aug 2003 23:49:49 +0200
For quick answer, you add them to the "Web Server Resources".
Thanks Adam, I'll try this later this week (my internet connection is
KO today)
-All the stamp will be in a MySQL database/tables, is there any way
to generate some part of the web pages (like the list of the stamp
for a collection, or the form where you select them to add to the
shopping cart)? How would you do that?
Direct To Web takes an eomodel and creates Web pages that support
fetching, inserting, deleting, and updating objects. But these pages
are usually not exactly what a developer wants to end up with, so they
must usually be customized. For someone new to WO, concentrating on a
traditional WO app might be a better way to start. You'll probably
learn more by creating your own Web pages yourself at first.
I'm already developing and designing websites, and I wanted to use WO
to be able to offer better solutions. So you think it's easier and
better to start a WO app than to customize a Direct to Web?
-Is there a sample shopping cart for WO available somewhere to see
how it works?
Because a shopping cart page is usually designed specifically for the
intended use, a generic shopping cart implementation may not be too
useful.
Basically, a shopping cart can be implemented by declaring in your
Session class a NSMutableArray instance variable with appropriate
accessor methods (e.g., addToShoppingCart(), removeFromShoppingCart(),
shoppingCart()). Then in each page in which objects can be added to
the shopping cart, invoke
((Session)session()).addToShoppingCart(anObject). You would also
include a ShoppingCart page that displays the shopping cart items in a
WOTable with a WORepetition that adds a table row for each object in
((Session)session()).shoppingCart(). The shopping cart table's
columns would display attributes of the object (e.g., description,
price) that would allow the customer to identify each object. You
would also want to be able to specify the quantity of each item, be
able to delete items, recalculate the total price, etc. This isn't
difficult to implement in WO.
Any place to look to have a look to an already written code (I didn't
do any programming for a long time;))? I'll try with my friend to set
something like this, I'll let you know how it works;)
Thanks Art
<diatribe>
You know just about every WO newbie asks this cart question. And just
about every time the answer is the same:
It's really easy! You just ...
Now, personally, I agree that it's easy (having done it). 99.99% of
the effort in making the shopping cart
is in getting it to meet the desires of the people asking for the
cart. But I also watched a senior engineer
struggle with a cart for over 2 months. Part of it was that I gave
him a framework that did all the validation
and database work. He spent at least 4 weeks trying to understand the
validation logic. To me it was strange
because it was
instantiate one of these do addOtBSoRwK, instantiate one of those do
addOtBSoRwK, etc.
save it and catch the validation errors and make the user do it right.
But he didn't get it. So now I'm not too sure that it is as easy as
we all know it to be.
</diatribe>
All that hot air being vented is it really as easy as pointing the
newbies to WOPetStore?
I'm sure it's not obvious for anyone, but It's always a good point to
have someone else's logic or point of view to start working on it, or
just be inspired!
What do you mean with this WOPetStore?
Thanks again Art
Check:
http://developer.apple.com/documentation/WebObjects/JavaForWODev/
JavaForWODev.pdf
Go down to the "Test My Java Skills" Section. This document teaches
the core WO concepts using a shopping cart application as an example.
Thanks ilant, I downloaded it, I'm reading it tonight...
And now a new set of questions!;)
-Can you make web pages that are not HTML 3.2, but rather HTML4 or XML?
I think it's not really a restriction, but the portion of the code
generated by WO will be 3.2...
-I already ask that, but I'll try to clear things: Is it possible to
use other web technology inside a .woa component: like having a part of
php that is used by Apache AFTER the WO component is called?
-What do you think of EO Modeler? how do you use it in your own project?
Thanks a lot everyone.
Xavier
_______________________________________________
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.