Re: problem with stateless component
Re: problem with stateless component
- Subject: Re: problem with stateless component
- From: Chuck Hill <email@hidden>
- Date: Thu, 15 May 2008 14:02:27 -0700
On May 15, 2008, at 1:22 PM, T Worman wrote:
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;
}
isStateless == true implies synchronizesVariablesWithBindings ==
false, you only need to override isStateless
That is not the problem, just pointing that out.
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 ().
Is that the exact message?
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?
Probably need to see the .html and .wod to say any more. You probably
have a dynamic element that uses a component action.
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
_______________________________________________
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