Re: Statless Component and component Action
Re: Statless Component and component Action
- Subject: Re: Statless Component and component Action
- From: Kieran Kelleher <email@hidden>
- Date: Sun, 10 Sep 2006 07:47:36 -0400
Yes you can.
Almost every top level page in my application is stateful and almost
every custom subcomponent in my app is stateless. This was just a
design decision up front to help memory and in general I like the
predictability of knowing that my subcomponents are reset before each
phase of the RR loop. In stateless subcomponents, you can still bind
up and fire component actions as normal.
If you are just getting into stateless subcomponents, the one thing
that is a PITA is remembering to reset iVars, especially as you do
iterative changes to the stateless subcomponents. After having a few
bugs bite me from me forgetting to do this, I put together a generic
reset that uses reflection to make the use of stateless components
much more palatable.
http://homepage.mac.com/kelleherk/iblog/C1133025376/E1146937278/
index.html
Also, some intro to stateless components:
http://homepage.mac.com/kelleherk/iblog/C1133025376/E1896801830/
index.html
HTH,
Regards, Kieran
On Sep 10, 2006, at 3:41 AM, Ute Hoffmann wrote:
Hallo,
Is it possible to have a component Action inside of a stateless
component or are only direct Actions allowd/possible in Stateless
components?
Regards
Ute
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
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