Package pt.ist.fenixWebFramework.renderers.components

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlScript


                return container;

            }

            private HtmlComponent getScript() {
                HtmlScript script = new HtmlScript();

                script.setContentType("text/javascript");
                script.setConditional(true);
                script.setScript("\n" + "function addTag(field, tag) {\n" + "var element = document.getElementById(field);\n"
                        + "var tags = element.value;\n"
                        + "if (!tags.match('^' + tag + '$|\\\\s' + tag + '\\\\s|\\\\s' + tag + '$')) {\n"
                        + "if (tags.length > 0) {\n" + "element.value = tags + ' ' + tag;\n" + "}\n" + "else {\n"
                        + "element.value = tag;\n" + "}\n" + "element.focus();\n" + "}\n" + "}\n");
                return script;
View Full Code Here

TOP

Related Classes of pt.ist.fenixWebFramework.renderers.components.HtmlScript

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.