public String listJs() {

        StringBuffer js = new StringBuffer(1024);
        CmsMessages messages = Messages.get().getBundle(getWp().getLocale());
        js.append("<script type='text/javascript' src='");
        js.append(CmsWorkplace.getSkinUri());
        js.append("jquery/unpacked/jquery.js'></script>\n");
        js.append("<script type='text/javascript' src='");
        js.append(CmsWorkplace.getSkinUri());
        js.append("jquery/unpacked/jquery.hint.js'></script>\n");
        js.append("<script type='text/javascript' src='");
        js.append(CmsWorkplace.getSkinUri());
        js.append("admin/javascript/list.js'></script>\n");
        if (!m_metadata.getMultiActions().isEmpty()) {
            js.append("<script type='text/javascript'>\n");
            js.append("\tvar ");
            js.append(NO_SELECTION_HELP_VAR);
            js.append(" = '");
            js.append(CmsStringUtil.escapeJavaScript(messages.key(Messages.GUI_LIST_ACTION_NO_SELECTION_0)));
            js.append("';\n");
            Iterator<CmsListMultiAction> it = m_metadata.getMultiActions().iterator();
            while (it.hasNext()) {
                CmsListMultiAction action = it.next();
                if (action instanceof CmsListRadioMultiAction) {
                    CmsListRadioMultiAction rAction = (CmsListRadioMultiAction)action;
                    js.append("\tvar ");
                    js.append(NO_SELECTION_MATCH_HELP_VAR);
                    js.append(rAction.getId());
                    js.append(" = '");
                    js.append(
                        CmsStringUtil.escapeJavaScript(
                            messages.key(
                                Messages.GUI_LIST_ACTION_NO_SELECTION_MATCH_1,
                                new Integer(rAction.getSelections()))));
                    js.append("';\n");
                }
            }
            js.append("</script>\n");
        }
        return js.toString();
    }
public String listJs ( ) { StringBuffer js = new StringBuffer ( 1024 ) ; CmsMessages messages = Messages . get ( ) . getBundle ( getWp ( ) . getLocale ( ) ) ; js . append ( "<script type='text/javascript' src='" ) ; js . append ( CmsWorkplace . getSkinUri ( ) ) ; js . append ( "jquery/unpacked/jquery.js'></script>\n" ) ; js . append ( "<script type='text/javascript' src='" ) ; js . append ( CmsWorkplace . getSkinUri ( ) ) ; js . append ( "jquery/unpacked/jquery.hint.js'></script>\n" ) ; js . append ( "<script type='text/javascript' src='" ) ; js . append ( CmsWorkplace . getSkinUri ( ) ) ; js . append ( "admin/javascript/list.js'></script>\n" ) ; if ( ! m_metadata . getMultiActions ( ) . isEmpty ( ) ) { js . append ( "<script type='text/javascript'>\n" ) ; js . append ( "\tvar " ) ; js . append ( NO_SELECTION_HELP_VAR ) ; js . append ( " = '" ) ; js . append ( CmsStringUtil . escapeJavaScript ( messages . key ( Messages . GUI_LIST_ACTION_NO_SELECTION_0 ) ) ) ; js . append ( "';\n" ) ; Iterator < CmsListMultiAction > it = m_metadata . getMultiActions ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { CmsListMultiAction action = it . next ( ) ; if ( action instanceof CmsListRadioMultiAction ) { CmsListRadioMultiAction rAction = ( CmsListRadioMultiAction ) action ; js . append ( "\tvar " ) ; js . append ( NO_SELECTION_MATCH_HELP_VAR ) ; js . append ( rAction . getId ( ) ) ; js . append ( " = '" ) ; js . append ( CmsStringUtil . escapeJavaScript ( messages . key ( Messages . GUI_LIST_ACTION_NO_SELECTION_MATCH_1 , new Integer ( rAction . getSelections ( ) ) ) ) ) ; js . append ( "';\n" ) ; } } js . append ( "</script>\n" ) ; } return js . toString ( ) ; }
Generate the need js code for the list.<p>

@return js code