Adds new script to render at the end of page. Is the same script already set to render ( lookup by equals() method ), no new object added.
162163164165166167168169170171172
@Override protected void preEncodeBegin(FacesContext facesContext, UIComponent component) throws IOException { ScriptString script = prepareCSVMessageScript(facesContext); JavaScriptService jsService = ServiceTracker.getService(JavaScriptService.class); jsService.addScript(facesContext, script); } /** * Prepares client-side validation script for {@link SelectLabelValueValidator} */