Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic