Example usage for com.liferay.portal.kernel.util SetUtil fromString

List of usage examples for com.liferay.portal.kernel.util SetUtil fromString

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util SetUtil fromString.

Prototype

public static Set<String> fromString(String s) 

Source Link

Usage

From source file:com.liferay.frontend.taglib.soy.servlet.taglib.TemplateRendererTag.java

License:Open Source License

protected void renderJavaScript(JspWriter jspWriter, Map<String, Object> context)
        throws Exception, IOException {

    SoyJavaScriptRenderer javaScriptComponentRenderer = _getJavaScriptComponentRenderer();

    if (!context.containsKey("element")) {
        context.put("element", getElementSelector());
    }/*from   w  ww  .ja va  2s. co m*/

    String componentJavaScript = javaScriptComponentRenderer.getJavaScript(context, getComponentId(),
            SetUtil.fromString(getModule()));

    jspWriter.write(componentJavaScript);
}