This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

custom event problem

 
Alex Din
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone, i am writting own component and experiences some problems with that. My component works fine but wanted to add extra event to it and now i have a problem.
I created custom event that extends FacesEvents and follows the exact pattern:



why does it throws nullPointerException when i am trying to broadcast it to all apropriate listeners in the behaivour class?

i have a broadcast method there and it crashes when i call .queue() method:





Thanks for your help in advance!
 
Alex Din
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i found what was the cause of this problem



it seems that getters and setters are not permitted. But still the questions is: how can i access event's fields if they are set to private then?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic