Solution for WOBuilder problem with session/application/displayGroups
Solution for WOBuilder problem with session/application/displayGroups
- Subject: Solution for WOBuilder problem with session/application/displayGroups
- From: Timo Höpfner <email@hidden>
- Date: Thu, 18 Mar 2004 14:15:06 +0100
Hi,
I had the problem, that for some of my components, session and
application were not showing up in the browse panel. Even worse:
DisplayGroups showed up, but weren't usable/configurable.
After an hour of digging around, I found out that WOBuilder is picky
about the import statements in the java file of the component:
I'm using IntelliJ IDEA for development, which offers the option to
optimize the import statements (remove unused ones). It optimized the
components and replaced the import for the whole package
com.webobjects.appserver.* with separate import statements for classes
directly referenced in the code:
import com.webobjects.appserver.WOComponent;
import com.webobjects.appserver.WODisplayGroup;
import com.webobjects.appserver.WOContext;
Well. The code compiles, but WOBuilder doesn't like it...
When the line
import com.webobjects.appserver.*;
is missing, the above described problems arise. After adding this
import line again, everything works fine.
Nevertheless I still have a problem: As long as Session is not in the
default package, the contents of session as showed in WOBuilder are
always empty. But when Session is in the default package, I cannot
access it from code which is not in the default package. Any solution
for that?
Timo
_______________________________________________
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.