I'm using a number of PrimeFaces <p:remoteCommand/>
s to call various action listeners on a page. In the javascript calls, I'm passing parameters. These parameters arrive in the request parameter map.
Now, I can extract the parameters from the map in the action listeners themselves. What I would like, however, is for the action listeners not to have to do that. Rather, they should just check that the appropriate value in the bean is not null and act accordingly.
I want to either centralize this in a single event or, better yet, have the request parameter values automatically injected into the bean somehow.
So my question is:
- Is there an event type that I can handle to process the request parameters before any action listeners are invoked?
- Better yet, is there a way to automatically have the request parameters injected into bean properties?