コード例 #1
0
 /** {@inheritDoc} */
 @Override
 public void beforeList() throws JspException {
   // <script src="/javascript/tree.js" type="text/javascript"></script>
   ListTagUtil.write(pageContext, IMPORT_TREE_JS);
   ListTagUtil.write(pageContext, String.format(NEW_VAR_SCRIPT, listName));
   LocalizationService ls = LocalizationService.getInstance();
   ListTagUtil.write(
       pageContext,
       String.format(
           SHOW_ALL_SCRIPT,
           listName,
           ls.getMessage("show.all"),
           listName,
           ls.getMessage("hide.all")));
 }
コード例 #2
0
 /** {@inheritDoc} */
 @Override
 public void afterList() throws JspException {
   ListTag list = getCurrentList();
   ListTagUtil.write(
       pageContext,
       String.format(LOAD_SCRIPT, list.getColumnCount(), list.getStyleId(), listName, listName));
 }