Re: 2 wod problems migrating to WOLips
Chuck Hill <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Tom,
This might be more appropriate to the WOLips list. Also knowing
which version of Eclipse, WOLips, and WO your are using can narrow
down potential issues.
On Nov 9, 2007, at 6:46 PM, Tom Woteki wrote:
> I'm making the leap but i have 2 problems. Any help much
> appreciated and thanks in advance:
>
> 1)
>
> I have a custom component declared as:
>
> package com.my.package;
> public class MyComponent extends WOComponent { ... }
>
> In a wod file I have:
>
> myComponent : com.my.package.MyComponent { ... }
>
> I get an error message on the wod saying: "The class for
> com.my.component.MyComponent is either missing or does not extend
> WOElement"
>
> However, the class is not missing. The class is in a framework that
> has been imported. And of course WOComponent extends WOElement.
>
> Help?
I usually chalk this up to "Eclipse being wigged out". Quit and
restart Eclipse, do a clean and build of the, er, afflicted projects.
> 2)
>
> In the java source for a component I have:
>
> public Producer producer; // Producer is imported form elsewhere.
>
> Producer has a method "producer", i.e. producer.producer() returns
> a String;
>
> In the wod file for the component I have:
>
> PopUpButton1: WOPopUpButton {
> displayString = producer.producer;
> ....
> }
>
> I get the error message on the wod saying: "There is no key
> 'producer' for the keypath 'producer' ... ". But of course there is.
>
> Help?
That might be the same problem. Is producer() public?
HTH
Chuck
--
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