I am using JSF framework in my application. I need to run a specific script before the render response phase in my Phase Listener class.
Condition for running this script is that, if the request triggered is a Ajax request i need to run the script, if the request triggered is a Http request i should not run that script.
Can anyone please help me to differentiate the requests recieved.?