Re: WROXComponent Example
Re: WROXComponent Example
- Subject: Re: WROXComponent Example
- From: Kieran Kelleher <email@hidden>
- Date: Tue, 16 Mar 2004 16:18:29 -0500
Here is my code for these 2 when I did the example last year. It
compiled and worked fine in Project Builder back then.
//
// WROXPage.java
// Menu
//
// Created by Kieran Kelleher on Mon Jul 28 2003.
// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//
import com.webobjects.foundation.*;
import com.webobjects.appserver.*;
import com.webobjects.eocontrol.*;
public abstract class WROXPage extends WROXComponent {
public WROXPage( WOContext context) {
super(context);
}
public WROXPage getPage() {
return (WROXPage)context().page();
}
}
//
// WROXComponent.java
// Menu
//
// Created by Kieran Kelleher on Mon Jul 28 2003.
// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//
import com.webobjects.foundation.*;
import com.webobjects.appserver.*;
import com.webobjects.eocontrol.*;
public abstract class WROXComponent extends WOComponent {
public WROXComponent( WOContext context) {
super(context);
}
abstract public String getArea();
}
________________________________________________________________
Config = OS X 10.3.2 / Java 1.4.1 / WO 5.2.2 / MySQL 4.0.18 /
Connector-J 3.0.11
Blog: http://webobjects.webhop.org/
On Mar 16, 2004, at 1:17 PM, Franck Leveneur wrote:
> Hi,
>
> I'm new to WO and Java. I was wondering if someone could help me.
> I'm trying to build 2 components based on example from WO 5.0 with Java
> (WROX). (page 166).
> I followed the direction (New file, choosed Java Class). The java class
> are under WebComponents folder (in XCode).
> I choose Application Server as the target when adding the file.
>
> I'm getting the error for WROXPage.java: cannot resolve symbol :
> constructor WROXComponent()
>
> Thx a lot.
>
> WROXComponent.java
>
> import com.webobjects.foundation.*;
> import com.webobjects.eocontrol.*;
> import com.webobjects.appserver.*;
>
> public abstract class WROXComponent extends WOComponent {
>
> public WROXComponent(WOContext context) {
> super(context);
> }
> public abstract String getArea();
>
> }
>
>
>
> WROXPage.java
>
> import com.webobjects.foundation.*;
> import com.webobjects.eocontrol.*;
> import com.webobjects.appserver.*;
>
>
> public abstract class WROXPage extends WROXComponent {
> public WROXPage getPage() {
>
> return (WROXPage)context().page();
> }
>
> }
> _______________________________________________
> 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.
_______________________________________________
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.