Can you send us your onload-config.xml?

___

Kito D. Mann | @kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
http://www.JSFCentral.com | @jsfcentral
+1 203-998-0403

* Listen to the Enterprise Java Newscast: *http://w
<http://blogs.jsfcentral.com/JSFNewscast/>ww.enterprisejavanews.com
<http://ww.enterprisejavanews.com>*
* JSFCentral Interviews Podcast:
http://www.jsfcentral.com/resources/jsfcentralpodcasts/
* Sign up for the JSFCentral Newsletter: http://oi.vresp.com/?fid=ac048d0e17


On Fri, Jan 31, 2014 at 2:21 AM, Atul Joshi <[email protected]> wrote:

> Hi,
>
> Below is the method definition :
>        @Override
>         public PhaseId getPhaseId() {
>                 return PhaseId.RENDER_RESPONSE;
>         }
>
> The strange part is , the viewId is returned correctly for all the
> other urls except those which are targeted for onload-config.xml.That
> is urls which are mentioned in onload-config.xml are getting affected.
>
> On 1/30/14, Kito Mann <[email protected]> wrote:
> > Atul, what does getPhaseId() return for the phase listener?
> >
> > ___
> >
> > Kito D. Mann | @kito99 | Author, JSF in Action
> > Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and
> consulting
> > http://www.JSFCentral.com | @jsfcentral
> > +1 203-998-0403
> >
> > * Listen to the Enterprise Java Newscast: *http://w
> > <http://blogs.jsfcentral.com/JSFNewscast/>ww.enterprisejavanews.com
> > <http://ww.enterprisejavanews.com>*
> > * JSFCentral Interviews Podcast:
> > http://www.jsfcentral.com/resources/jsfcentralpodcasts/
> > * Sign up for the JSFCentral Newsletter:
> > http://oi.vresp.com/?fid=ac048d0e17
> >
> >
> > On Thu, Jan 30, 2014 at 5:49 AM, Atul Joshi <[email protected]>
> wrote:
> >
> >> Hi,
> >>
> >> We are migrating from JSF 1.2 to JSF2 . We are using apache my faces 2.1
> >>
> >> I have onload-listener configured in my faces-config.xml as :
> >> <lifecycle>
> >>
> >>
> >>
> <phase-listener>net.sf.jsfcomp.ext.onload.OnLoadPhaseListener</phase-listener>
> >> </lifecycle>
> >>
> >> The issue is , FacesContext.getViewRoot.getViewId always returns NULL
> >> inside this phase listener.
> >> I have found out this by subclassing the above class and printing the
> log
> >> statements.
> >>
> >> Because of above issue , none of urls configured to work for
> >> onload-config.xml are not working.
> >> It used to work earlier for JSF 1.2.
> >> Please help.
> >>
> >> Regards,
> >> Atul
> >>
> >
>

Reply via email to