File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSF
Bookmark "custom event problem" Watch "custom event problem" New topic

custom event problem

Alex Din

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

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?
I agree. Here's the link:
subject: custom event problem
It's not a secret anymore!