You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Enrique Medina Montenegro <e....@gmail.com> on 2006/08/12 13:17:57 UTC

ViewController callbacks

Hi,

I've configured my JSF bean to be aware of ViewController callbacks, both
using annotations and extending AbstractViewController, but my prerender()
and preprocess() methods never get invoked.

I've seen that the ViewControllerCallbacks2 class has the callback
invocation of my methods, but I cannot see when or why this class is
invoked, as LifeCycleListener class doesn't use it at all.

Do I have to configure something?

Thanks.

Re: ViewController callbacks

Posted by Craig McClanahan <cr...@apache.org>.
On 8/12/06, Craig McClanahan <cr...@apache.org> wrote:
>
>
>
> On 8/12/06, Enrique Medina Montenegro <e....@gmail.com> wrote:
>
> > Hi,
> >
> > I've configured my JSF bean to be aware of ViewController callbacks,
> > both
> > using annotations and extending AbstractViewController, but my
> > prerender()
> > and preprocess() methods never get invoked.
>
>
> Hmm ... it looks like something broke for the @Prerender annotation with
> recent changes ... I'll look into that today.
>

This was indeed the case ... some changes made last week broke callbacks to
@Preprocess and @Prerender annotated methods.  This is fixed in tonight's
nightly build (20060813).

Craig

Re: ViewController callbacks

Posted by e....@gmail.com.
Craig,
Is there any workaround in the meantime?
Thanks. 
---  

-----Original Message-----
From: "Craig McClanahan" <cr...@apache.org>
Date: Sat, 12 Aug 2006 10:58:59 
To:user@shale.apache.org
Subject: Re: ViewController callbacks

On 8/12/06, Enrique Medina Montenegro <e....@gmail.com> wrote:
>
> Hi,
>
> I've configured my JSF bean to be aware of ViewController callbacks, both
> using annotations and extending AbstractViewController, but my prerender()
> and preprocess() methods never get invoked.


Hmm ... it looks like something broke for the @Prerender annotation with
recent changes ... I'll look into that today.

I've seen that the ViewControllerCallbacks2 class has the callback
> invocation of my methods, but I cannot see when or why this class is
> invoked, as LifeCycleListener class doesn't use it at all.



Do I have to configure something?


No, this doesn't need to be configured.  The basic idea is that shale-core
cofigures the non-annotations-based ViewControllerCallbacks instance by
default, but at startup time checks to see if the ViewControllerCallbacks2
class is available and uses that instead.  (This is probably what got
broken.)

Thanks.
>
>
Craig


Re: ViewController callbacks

Posted by Craig McClanahan <cr...@apache.org>.
On 8/12/06, e.medina.m@gmail.com <e....@gmail.com> wrote:
>
> Craig,
> Anyway, as you already commented in my other email, annotations are not
> currently compatible with Spring, so I tried to use that prerender()
> callback without them, but still not are called.
> Could the issue with annotations have also affected extension of
> AbstractViewController?


No, that should still be working (as long as the name of your managed bean
matches the expected mapping from your view identifier).  But I'll review
this issue as well over the weekend.

Craig

---
>
> -----Original Message-----
> From: "Craig McClanahan" <cr...@apache.org>
> Date: Sat, 12 Aug 2006 10:58:59
> To:user@shale.apache.org
> Subject: Re: ViewController callbacks
>
> On 8/12/06, Enrique Medina Montenegro <e....@gmail.com> wrote:
> >
> > Hi,
> >
> > I've configured my JSF bean to be aware of ViewController callbacks,
> both
> > using annotations and extending AbstractViewController, but my
> prerender()
> > and preprocess() methods never get invoked.
>
>
> Hmm ... it looks like something broke for the @Prerender annotation with
> recent changes ... I'll look into that today.
>
> I've seen that the ViewControllerCallbacks2 class has the callback
> > invocation of my methods, but I cannot see when or why this class is
> > invoked, as LifeCycleListener class doesn't use it at all.
>
>
>
> Do I have to configure something?
>
>
> No, this doesn't need to be configured.  The basic idea is that shale-core
> cofigures the non-annotations-based ViewControllerCallbacks instance by
> default, but at startup time checks to see if the ViewControllerCallbacks2
> class is available and uses that instead.  (This is probably what got
> broken.)
>
> Thanks.
> >
> >
> Craig
>
>

Re: ViewController callbacks

Posted by e....@gmail.com.
Craig,
Anyway, as you already commented in my other email, annotations are not currently compatible with Spring, so I tried to use that prerender() callback without them, but still not are called. 
Could the issue with annotations have also affected extension of AbstractViewController?

---  

-----Original Message-----
From: "Craig McClanahan" <cr...@apache.org>
Date: Sat, 12 Aug 2006 10:58:59 
To:user@shale.apache.org
Subject: Re: ViewController callbacks

On 8/12/06, Enrique Medina Montenegro <e....@gmail.com> wrote:
>
> Hi,
>
> I've configured my JSF bean to be aware of ViewController callbacks, both
> using annotations and extending AbstractViewController, but my prerender()
> and preprocess() methods never get invoked.


Hmm ... it looks like something broke for the @Prerender annotation with
recent changes ... I'll look into that today.

I've seen that the ViewControllerCallbacks2 class has the callback
> invocation of my methods, but I cannot see when or why this class is
> invoked, as LifeCycleListener class doesn't use it at all.



Do I have to configure something?


No, this doesn't need to be configured.  The basic idea is that shale-core
cofigures the non-annotations-based ViewControllerCallbacks instance by
default, but at startup time checks to see if the ViewControllerCallbacks2
class is available and uses that instead.  (This is probably what got
broken.)

Thanks.
>
>
Craig


Re: ViewController callbacks

Posted by Craig McClanahan <cr...@apache.org>.
On 8/12/06, Enrique Medina Montenegro <e....@gmail.com> wrote:
>
> Hi,
>
> I've configured my JSF bean to be aware of ViewController callbacks, both
> using annotations and extending AbstractViewController, but my prerender()
> and preprocess() methods never get invoked.


Hmm ... it looks like something broke for the @Prerender annotation with
recent changes ... I'll look into that today.

I've seen that the ViewControllerCallbacks2 class has the callback
> invocation of my methods, but I cannot see when or why this class is
> invoked, as LifeCycleListener class doesn't use it at all.



Do I have to configure something?


No, this doesn't need to be configured.  The basic idea is that shale-core
cofigures the non-annotations-based ViewControllerCallbacks instance by
default, but at startup time checks to see if the ViewControllerCallbacks2
class is available and uses that instead.  (This is probably what got
broken.)

Thanks.
>
>
Craig

Re: ViewController callbacks

Posted by Enrique Medina Montenegro <e....@gmail.com>.
Seems that there's a file called shale-config.xml within the
shale-core.jarfile that has chain commented both for preprocess() and
prerender().

Is there any reason why this is commented and disabled? How can I enable it?

On 8/12/06, Enrique Medina Montenegro <e....@gmail.com> wrote:
>
> Hi,
>
> I've configured my JSF bean to be aware of ViewController callbacks, both
> using annotations and extending AbstractViewController, but my prerender()
> and preprocess() methods never get invoked.
>
> I've seen that the ViewControllerCallbacks2 class has the callback
> invocation of my methods, but I cannot see when or why this class is
> invoked, as LifeCycleListener class doesn't use it at all.
>
> Do I have to configure something?
>
> Thanks.
>