fixed PrimeFaces compatibility (by sending the JavaScript code to create
the widgets that are replaced)