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.?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…