• 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
problem with stateless component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with stateless component


  • Subject: problem with stateless component
  • From: T Worman <email@hidden>
  • Date: Thu, 15 May 2008 13:22:17 -0700

All:

I'm having a problem using a stateless component and I'm not sure why. My app has a stateless component that has WOPopUpButtons for selecting hours and minutes for entering time-based data. I'm trying to abstract these WOPopUpButtons to a new stateless component in a supporting framework. In the new component I've overridden these:

public boolean synchronizesVariablesWithBindings() {
		return false;
}

public boolean isStateless() {
	return true;
}

public void reset() {
	reset stuff;
	super.reset();
}

The new component has one required binding for the time value(custom class). I've inserted the new component into the old one in place of the WOPopUpButtons that were there before. For some reason, every time I call the page I get:

Error: java.lang.IllegalStateException: <>: A stateless component can not have a stateful child ().

So far I've tried dumbing the new component down to the point where it only has the ivar to sync the required bound value and the display of the component is just some test text. Am I going crazy or did I forget a step somewhere in creating a stateless component?

Tim
_______________________________________________
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: problem with stateless component
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Localize WOLips project
  • Next by Date: Re: [OT] WOWODC Outing
  • Previous by thread: Re: Another goofy question: Images from database not showing up?
  • Next by thread: Re: problem with stateless component
  • Index(es):
    • Date
    • Thread