1

I'd like to execute Javascript after an Ajax-request in JSF? I can execute Javascript with the onevent listener, but the code I want to execute should be sent in the Ajax-response.

But apparently, JSF strips out script tags in the Ajax response. So what's the official way to do this?

1 Answer 1

1

To execute js on every ajax request use Omnifaces onloadScript component:

Omnifaces onloadScript showcase

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.