• 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
Solution for WOBuilder problem with session/application/displayGroups
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Losing my mind
  • Next by Date: Booleans, 5.2.3, EOModeler etc.
  • Previous by thread: Re: Does This NSLog Readout Mean anything?
  • Next by thread: Re: Solution for WOBuilder problem with session/application/displayGroups
  • Index(es):
    • Date
    • Thread