You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by Steve Hanson <st...@gmail.com> on 2006/03/28 19:58:49 UTC
NetUI Controller methods onCreate() and onDestroy() are "Callback"s?
Hi all:
Looking at the Controller file in samples\netui-blank\web\, the two methods
onCreate() and onDestroy() are labeled as "Callback"s?
Is this correct? If it is, what does that mean in the context of NetUI?
Thanks,
Steveh.
Re: NetUI Controller methods onCreate() and onDestroy() are "Callback"s?
Posted by Eddie O'Neil <ek...@gmail.com>.
Sure; go for it. :)
Eddie
On 3/28/06, Steve Hanson <st...@gmail.com> wrote:
> Thanks for the clarification.
>
> I propose we change the comments on these methods to something like:
>
> "Method that is invoked when this controller instance is created."
>
> "Method that is invoked when this controller instance is destroyed."
>
> On 3/28/06, Eddie O'Neil <ek...@gmail.com> wrote:
> >
> > Steve--
> >
> > Good point -- theyr'e not really "callbacks" in the true sense of
> > the word as this doesn't happen because of an event. So, the phrasing
> > could be a little more clear.
> >
> > These methods are Page Flow lifecycle methods that can be handled by
> > a Page Flow implementation that subclasses PageFlowController and
> > overrides the method from the base class. More information can be
> > found here:
> >
> > http://beehive.apache.org/docs/1.0.1/netui/lifecycleAndState.html
> >
> > Hope that helps.
> >
> > Eddie
> >
> >
> >
> > On 3/28/06, Steve Hanson <st...@gmail.com> wrote:
> > > Hi all:
> > >
> > > Looking at the Controller file in samples\netui-blank\web\, the two
> > methods
> > > onCreate() and onDestroy() are labeled as "Callback"s?
> > >
> > > Is this correct? If it is, what does that mean in the context of NetUI?
> > >
> > > Thanks,
> > > Steveh.
> > >
> > >
> >
>
>
Re: NetUI Controller methods onCreate() and onDestroy() are "Callback"s?
Posted by Steve Hanson <st...@gmail.com>.
Thanks for the clarification.
I propose we change the comments on these methods to something like:
"Method that is invoked when this controller instance is created."
"Method that is invoked when this controller instance is destroyed."
On 3/28/06, Eddie O'Neil <ek...@gmail.com> wrote:
>
> Steve--
>
> Good point -- theyr'e not really "callbacks" in the true sense of
> the word as this doesn't happen because of an event. So, the phrasing
> could be a little more clear.
>
> These methods are Page Flow lifecycle methods that can be handled by
> a Page Flow implementation that subclasses PageFlowController and
> overrides the method from the base class. More information can be
> found here:
>
> http://beehive.apache.org/docs/1.0.1/netui/lifecycleAndState.html
>
> Hope that helps.
>
> Eddie
>
>
>
> On 3/28/06, Steve Hanson <st...@gmail.com> wrote:
> > Hi all:
> >
> > Looking at the Controller file in samples\netui-blank\web\, the two
> methods
> > onCreate() and onDestroy() are labeled as "Callback"s?
> >
> > Is this correct? If it is, what does that mean in the context of NetUI?
> >
> > Thanks,
> > Steveh.
> >
> >
>
Re: NetUI Controller methods onCreate() and onDestroy() are "Callback"s?
Posted by Eddie O'Neil <ek...@gmail.com>.
Steve--
Good point -- theyr'e not really "callbacks" in the true sense of
the word as this doesn't happen because of an event. So, the phrasing
could be a little more clear.
These methods are Page Flow lifecycle methods that can be handled by
a Page Flow implementation that subclasses PageFlowController and
overrides the method from the base class. More information can be
found here:
http://beehive.apache.org/docs/1.0.1/netui/lifecycleAndState.html
Hope that helps.
Eddie
On 3/28/06, Steve Hanson <st...@gmail.com> wrote:
> Hi all:
>
> Looking at the Controller file in samples\netui-blank\web\, the two methods
> onCreate() and onDestroy() are labeled as "Callback"s?
>
> Is this correct? If it is, what does that mean in the context of NetUI?
>
> Thanks,
> Steveh.
>
>