• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PhaseListener Methods not called!

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am currently going bananas with my problem. This is by far one of the most strangest things I have seen in my short experience with JSF. I have included a PhaseListener in my application. When trying to debug, I have settled breakpoints in the constructor body, and first statements of the beforePhase and afterPhase events. When starting the application, the breakpoint in the constructor is hit correctly, but the other two are never hit!. How is it possible that I can navigate through several pages without hitting them? Even if breaking down in the RESTORE_VIEW phase, at least I should get the breakpoint in the beforePhase method hit, but I do not!. This is driving me crazy, since those methods perform managedbean related updates which are critical to the prompt behaviour of the application.

Any ideas? this had never happened before. can anybody guess what sort of code snipped can cause such behaviour. Apparenty those methods are not called, but that couldn't happen from my understanding sofar.

Thanks for your insights in advance.
Carlos.
 
Carlos Conti
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey! got it!
I was returning null from the getPhaseId() method...
Sorry for the inconvenience... but then does anybody know how can I find out the phase being currently executed, outside of the PhaseListener???
Regards,
Carlos.
reply
    Bookmark Topic Watch Topic
  • New Topic