my dog learned polymorphism*
The moose likes JSF and the fly likes custom event problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "custom event problem" Watch "custom event problem" New topic
Author

custom event problem

Alex Din
Greenhorn

Joined: Nov 04, 2010
Posts: 2
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!

JavaServer faces....
Alex Din
Greenhorn

Joined: Nov 04, 2010
Posts: 2
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?
 
wood burning stoves
 
subject: custom event problem