I'm using the JSF framework with primefaces 6.0 and as I'm new, I'm having trouble calling a javascript when finalizing a method with a @RequestScoped scope bean. How can I do this? Is there any other way using this scope?
I want to call a script to show a feedback notification of the result to the user.
Remembering that there may be some error when starting the page in @PostConstruct init, bean initializer method, so I need to call the script without the action of a button.