Re: Baffling WOD error

2011-08-25 Thread David Avendasora
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
> 
>  "$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:
> 
>  "$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 
>> Subject: Re: Baffling WOD error
>> To: Valerio Luccio 
>> Cc: WebObjects Development 
>> 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


Re: Baffling WOD error

2011-08-24 Thread Theodore Petrosky

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



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:



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 
> Subject: Re: Baffling WOD error
> To: Valerio Luccio 
> Cc: WebObjects Development 
> 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/archive%40mail-archive.com

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


Re: Baffling WOD error

2011-08-24 Thread John & Kim Larson
I've had that happen too. Instead of clean, I've found that a refresh of the 
project makes it go away. 

John

Sent from my iPhone

On Aug 24, 2011, at 12:38 PM, 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
> 
>  "In an open world, who needs windows or gates ?"
> ___
> 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/the_larsons%40mac.com
> 
> This email sent to the_lars...@mac.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


Re: Baffling WOD error

2011-08-24 Thread Chuck Hill

On 2011-08-24, at 10:55 AM, Valerio Luccio wrote:

> Chuck Hill wrote:
>> That is probably just Eclipse going insane.  You can delete the errors from 
>> the Problems view.  They usually don't come back.
> Good to know it's Eclipse going insane and not me ... alright, maybe I'm 
> already insane, but that's another story :-P


:-P  It is always a contest at my desk too.


-- 
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







 ___
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


Re: Baffling WOD error

2011-08-24 Thread Valerio Luccio

Chuck Hill wrote:

That is probably just Eclipse going insane.  You can delete the errors from the 
Problems view.  They usually don't come back.
Good to know it's Eclipse going insane and not me ... alright, maybe I'm 
already insane, but that's another story :-P


--
Valerio Luccio(212) 998-8736
Center for Brain Imaging   4 Wshington Place, Room 158
New York University  New York, NY 10003

 "In an open world, who needs windows or gates ?"

___
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


Re: Baffling WOD error

2011-08-24 Thread Chuck Hill
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
> 
>  "In an open world, who needs windows or gates ?"
> 
> ___
> 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/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







 ___
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


Baffling WOD error

2011-08-24 Thread Valerio Luccio
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

 "In an open world, who needs windows or gates ?"

 ___
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