• 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
API & Maven - This WOComponent does not have an instance variable of the name...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

API & Maven - This WOComponent does not have an instance variable of the name...


  • Subject: API & Maven - This WOComponent does not have an instance variable of the name...
  • From: Damian Stasiak <email@hidden>
  • Date: Wed, 18 May 2011 14:59:03 +0200

Hello everybody,
I have two classes: FirstClass and SecondClass.
In FirstClass WO I have:
<html>
<head></head>
<body>
    <webobject name = "secondClass"/>
</body>
</html>
--
secondClass : SecondClass {
    myVar = "whatever";
}
In SecondClass WO I have:
<webobject name = "myString"/>
--
myString : WOString {
    value = ^myVar;
}
and in API file I have variable myVar

In both java files I have:
@Override
    public boolean synchronizesVariablesWithBindings() {
        return false;
    }

When I create that project (Eclipse + m2j plugin) as new WebObjectsApplication everything works fine and when I run FirstClass I see "whatever". But when I create project with Maven (woapplication-archetype) and run those same files I get:
Application: test
Error: com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException exception
Reason:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [<your.app.components.SecondClass name: your.app.components.
SecondClass subcomponents: null > takeValueForKey()]: attempt to assign value to unknown key: 'myVar'.
This WOComponent does not have an instance variable of the name
myVar or _myVar, nor a method of the name setMyVar or _setMyVar

Program versions:
Eclipse: 3.6.2
Maven: 2.2.1
WOLips plugin: 3.6.70242
m2j: 0.13

Do you have any idea? Am I doing sth wrong or this is because of bad configuration?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: API & Maven - This WOComponent does not have an instance variable of the name...
      • From: Henrique Prange <email@hidden>
  • Prev by Date: Re: build.xml: Content is not allowed in prolog.
  • Next by Date: Consuming REST services
  • Previous by thread: Re: Moving to Brunei in July!
  • Next by thread: Re: API & Maven - This WOComponent does not have an instance variable of the name...
  • Index(es):
    • Date
    • Thread