Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: So what is a good approach to learning WebObjects?



On Nov 15, 2003, at 9:34 PM, Arturo Pirez wrote:

Here's a contrived example. I have a bunch of pets with associated owners.
I create a popup list to display the pets' names. When a pet's name is selected and
I hit submit I want to display the owner's address. How would you go about
doing that?


A similar example, but one which I used a lot in training since it brings together a number of ideas that are essential to full understanding of how WebObjects works (perhaps most importantly, the way bindings are established, and that they can be made to *methods* as well as variables):

Suppose you have an array of objects, and you want to allow the user to make an arbitrary selection from that list using checkboxes. Given that WOCheckbox has a single binding for the value checked, how would you do that?

A detailed answer is given here:
<http://www.stepwise.com/Articles/Technical/WOF_Checkboxes.html>
The example code is now somewhat out of date, so I've put a WO5.22 version here:
<http://homepage.mac.com/mmalc/WOExamples/CheckBoxes5.zip>


mmalc
_______________________________________________
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.

References: 
 >So what is a good approach to learning WebObjects? (From: Alice Oaks <email@hidden>)
 >Re: So what is a good approach to learning WebObjects? (From: Arturo PĂ©rez <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.