My guess is that there is something not-quite-right in the logic that the 
ComponentEditor uses to find the corresponding .java file for the Component. I 
believe you can name the Component using the full package of the java class to 
make it more likely to use the right one.

The thing is that it is perfectly valid to have the .java file in a different 
project than the .wo so the Component Editor needs to know how to look in other 
projects and sometimes it matches the wrong one.

Dave

On Aug 25, 2011, at 4:33 AM, Theodore Petrosky wrote:

> 
> I was getting this same error a lot. And, different components were not 
> verifying. 
> 
> I was looking at a component what would keep telling me that an Entity did 
> not have an attribute
> 
> <wo:if negate = "true" condition = 
> "$session.currentUser.securitySettings.seesUserManagement">
> 
> currentUser did indeed have the attribute in question. 
> 
> but a different project had a currentUser that had no securitySettings. it 
> was called something else. so I changed the first project to:
> 
> <wo:if negate = "true" condition = 
> "$session.theCurrentUser.securitySettings.seesUserManagement">
> 
> I renamed the accessor in Session to theCurrentUser and all the problems went 
> away and have stayed away.
> 
> I have no idea why this would work.
> 
> Ted 
> 
> 
> 
>> 
>> Message: 1
>> Date: Wed, 24 Aug 2011 10:51:08 -0700
>> From: Chuck Hill <ch...@global-village.net>
>> Subject: Re: Baffling WOD error
>> To: Valerio Luccio <valerio.luc...@nyu.edu>
>> Cc: WebObjects Development <webobjects-dev@lists.apple.com>
>> Message-ID: <619e364c-bbb9-4750-953c-bb595134d...@global-village.net>
>> Content-Type: text/plain; charset=us-ascii
>> 
>> That is probably just Eclipse going insane.  You can
>> delete the errors from the Problems view.  They usually
>> don't come back.
>> 
>> 
>> On 2011-08-24, at 10:38 AM, Valerio Luccio wrote:
>> 
>>> I have a project that I hadn't worked on in a while.
>> When I opened it in Eclipse yesterday I got some baffling
>> error in WOD validation, although the application works.
>>> 
>>> First some info:
>>> O/S: X 10.6.8
>>> Eclipse: 3.6.1
>>> WOLips: 3.6.6212
>>> Error: "'item' must be bounded when 'list' is bound"
>>> Example WOD snippet:
>>> DayRep: WORepetition {
>>>    index = dayIndex;
>>>    item = dayEntries_;
>>>    list = dayEntriesArray_;
>>> }
>>> All variables are declared as public in the .java
>> source.
>>> 
>>> I tried clean/rebuild just in case, but it didn't
>> help. I'm confused.
>>> -- 
>>> Valerio Luccio         
>>               (212)
>> 998-8736
>>> Center for Brain Imaging   
>>    4 Wshington Place, Room 158
>>> New York University         
>>     New York, NY 10003
>>> 
>> -- 
>> Chuck Hill         
>>    Senior Consultant / VP Development
>> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
> 
> This email sent to webobje...@avendasora.com
> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to