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
strange behaviour with items in WORepition
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
strange behaviour with items in WORepition
Subject
:
strange behaviour with items in WORepition
From: jacques couzteau <
email@hidden
>
Date: Tue, 9 Sep 2003 16:08:02 +0200
hello everyone,
i'm using a WORepition in 2 different components. In the first, called Strories, i'm looping through an NSArray that contains all my stories and displays its short version and a couple of other things.
With each story there are two associated links:
1. edit: this one takes to an edit component, where the story can be changed. This one is only visible if the user the is viewing the page is identical to the one that wrote the story.
2. view that displays the stories full length and the associated comments with each story. Each comment again has an edit button, which only appears, if the user the is viewing the page is identical to the one that wrote the comment.
To accomplish that i wrote a checkUser method in session which comes in two flavours:
1. One for comparing the user with the story author
2. One for comparing the user with the comment author
It is called from a method within each component with the story or comment in question as argument.
Now the strange part:
when i loop through the NSArray of Stories the checkuser method works fine. But when i loop through story.commentss in the comment-component the item is null, even though i'm using it in many other places within the component for displaying other things such as checkin-time and change-time. which works fine, so i know that the item isn't really null. it just seems as if the method doesn't have access to it.
I've found a workaround, which is to pass the NSArray of Comments (storyItem.commentss) to my comment-component as initialisation and use that for my WORepition.
My qustion is: Is that really necessary (Is that a bug in WO or did i miss something)? I'm quite new to WO so i'm confused.
cheers
couzteau
_______
OSX 10.2.6 / mysql / WO 5.2.1 / mysql-connector-java-3.0.8-stable-bin.jar
_______________________________________________
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: strange behaviour with items in WORepition
From:
Arturo PĂ©rez <email@hidden>
Prev by Date:
Re: WebObjects application without a browser?
Next by Date:
Re: JDBCAdaptor failed to provide new primary keys
Previous by thread:
Re: WebObjects application without a browser?
Next by thread:
Re: strange behaviour with items in WORepition
Index(es):
Date
Thread