Changeset 4886


Ignore:
Timestamp:
Apr 3, 2009, 3:02:54 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

References #1271: Add extension points to all toolbars

Added code for displaying extensions to all pages in the administration menu.

Location:
trunk
Files:
58 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/extensions/toolbar/ToolbarUtil.java

    r4884 r4886  
    6868      Item.PLATEGEOMETRY, Item.PLATEMAPPING,
    6969      Item.ARRAYDESIGN, Item.ARRAYBATCH, Item.ARRAYSLIDE,
    70       Item.FEATURE
     70      Item.FEATURE,
     71      Item.USER, Item.GROUP, Item.ROLE, Item.QUOTA, Item.QUOTATYPE, Item.NEWS,
     72      Item.SOFTWARE, Item.SOFTWARETYPE, Item.HARDWARE, Item.HARDWARETYPE,
     73      Item.PROTOCOL, Item.PROTOCOLTYPE, Item.CLIENT, Item.HELP,
     74      Item.PLATFORM, Item.PLATFORMVARIANT, Item.DATAFILETYPE, Item.FILETYPE,
     75      Item.PLUGINDEFINITION, Item.PLUGINTYPE, Item.PLUGINCONFIGURATION, Item.JOBAGENT,
     76      Item.MIMETYPE, Item.REPORTERTYPE, Item.EXTRAVALUETYPE,
     77      Item.ANNOTATIONTYPE, Item.ANNOTATIONTYPECATEGORY, Item.QUANTITY, Item.UNIT
    7178    };
    7279
  • trunk/www/admin/annotationtypecategories/list_categories.jsp

    r4698 r4886  
    5555  import="net.sf.basedb.util.formatter.Formatter"
    5656  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     57  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     58  import="net.sf.basedb.clients.web.extensions.JspContext"
     59  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     60  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     61  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5762  import="java.util.Date"
    5863  import="java.util.Iterator"
     
    6469<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    6570<%@ taglib prefix="m" uri="/WEB-INF/menu.tld" %>
     71<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6672<%!
    6773  private static final Item itemType = Item.ANNOTATIONTYPECATEGORY;
     
    102108  }
    103109  int numListed = 0;
     110  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     111  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    104112  %>
    105113  <base:page title="<%=title==null ? "Annotation type categories" : title%>" type="<%=mode.getPageType()%>">
    106114 
    107115  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     116    <ext:scripts context="<%=jspContext%>" />
     117    <ext:stylesheets context="<%=jspContext%>" />
    108118    <script language="JavaScript">
    109119    var submitPage = 'index.jsp';
     
    340350          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    341351        />
     352        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     353          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    342354      </tbl:toolbar>
    343355      <tbl:navigator
  • trunk/www/admin/annotationtypecategories/view_category.jsp

    r4698 r4886  
    5252  import="net.sf.basedb.util.formatter.Formatter"
    5353  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     54  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     55  import="net.sf.basedb.clients.web.extensions.JspContext"
     56  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     57  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     58  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5459  import="java.util.Date"
    5560  import="java.util.Collections"
     
    6166<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    6267<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     68<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6369<%!
    6470  private static final Item itemType = Item.ANNOTATIONTYPECATEGORY;
     
    8894  final boolean isUsed = isRemoved && annotationTypeCategory.isUsed();
    8995  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     96  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, annotationTypeCategory);
     97  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    9098  %>
    9199  <base:page title="<%=title%>">
    92100  <base:head scripts="tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     101    <ext:scripts context="<%=jspContext%>" />
     102    <ext:stylesheets context="<%=jspContext%>" />
    93103    <script language="JavaScript">
    94104    function editItem()
     
    200210        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    201211      />
     212      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     213        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    202214      <tbl:button
    203215        image="help.gif"
  • trunk/www/admin/annotationtypes/list_annotationtypes.jsp

    r4698 r4886  
    5656  import="net.sf.basedb.util.formatter.Formatter"
    5757  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     58  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     59  import="net.sf.basedb.clients.web.extensions.JspContext"
     60  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     61  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     62  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5863  import="java.util.Date"
    5964  import="java.util.Iterator"
     
    6570<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    6671<%@ taglib prefix="m" uri="/WEB-INF/menu.tld" %>
     72<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6773<%!
    6874  private static final Item itemType = Item.ANNOTATIONTYPE;
     
    121127  }
    122128  int numListed = 0;
     129  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     130  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    123131  %>
    124132  <base:page title="<%=title==null ? "Annotation types" : title%>" type="<%=mode.getPageType()%>">
     
    140148 
    141149  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     150    <ext:scripts context="<%=jspContext%>" />
     151    <ext:stylesheets context="<%=jspContext%>" />
    142152    <script language="JavaScript">
    143153    var submitPage = 'index.jsp';
     
    476486          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    477487        />
     488        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     489          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    478490      </tbl:toolbar>
    479491      <tbl:navigator
  • trunk/www/admin/annotationtypes/view_annotationtype.jsp

    r4698 r4886  
    5454  import="net.sf.basedb.util.formatter.Formatter"
    5555  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     56  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     57  import="net.sf.basedb.clients.web.extensions.JspContext"
     58  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     59  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     60  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5661  import="java.util.Map"
    5762  import="java.util.Collections"
     
    6368<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    6469<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     70<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6571<%!
    6672  private static final Item itemType = Item.ANNOTATIONTYPE;
     
    9096  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    9197  Formatter dateFormatter = FormatterFactory.getDateFormatter(sc);
     98  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, annotationType);
     99  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    92100  %>
    93101  <base:page title="<%=title%>">
    94102  <base:head scripts="tabcontrol.js ,table.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     103    <ext:scripts context="<%=jspContext%>" />
     104    <ext:stylesheets context="<%=jspContext%>" />
    95105    <script language="JavaScript">
    96106    function editItem()
     
    202212        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    203213      />
     214      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     215        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    204216      <tbl:button
    205217        image="help.gif"
  • trunk/www/admin/clients/help/list_help.jsp

    r4510 r4886  
    4646  import="net.sf.basedb.clients.web.ModeInfo"
    4747  import="net.sf.basedb.clients.web.util.HTML"
     48  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     49  import="net.sf.basedb.clients.web.extensions.JspContext"
     50  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     51  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     52  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4853  import="net.sf.basedb.util.Values"
    4954  import="java.util.List"
     
    5459<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5560<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     61<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5662<%!
    5763  private static final Item itemType = Item.HELP;
     
    8793  }
    8894  int numListed = 0;
     95  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, client);
     96  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8997  %>
    9098  <base:page title="<%=title%>" type="<%=mode.getPageType()%>">
    9199  <base:head scripts="table.js,tabcontrol.js" styles="table.css,headertabcontrol.css,path.css,help.css">
     100    <ext:scripts context="<%=jspContext%>" />
     101    <ext:stylesheets context="<%=jspContext%>" />
    92102    <script language="JavaScript">
    93103    var submitPage = 'index.jsp';
     
    299309          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    300310        />
     311        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     312          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    301313      </tbl:toolbar>
    302314      <tbl:navigator
  • trunk/www/admin/clients/help/view_help.jsp

    r4510 r4886  
    4141  import="net.sf.basedb.clients.web.util.HTML"
    4242  import="net.sf.basedb.util.Values"
     43  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     44  import="net.sf.basedb.clients.web.extensions.JspContext"
     45  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     46  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     47  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4348  import="java.util.Date"
    4449  import="java.util.Map"
     
    4954<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    5055<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     56<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5157<%!
    5258  private static final Item itemType = Item.HELP;
     
    7177  final boolean writePermission = help.hasPermission(Permission.WRITE);
    7278  final boolean deletePermission = help.hasPermission(Permission.DELETE);
     79  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, help);
     80  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    7381  %>
    74 
    7582  <base:page title="<%=title%>">
    7683  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     84    <ext:scripts context="<%=jspContext%>" />
     85    <ext:stylesheets context="<%=jspContext%>" />
    7786    <script language="JavaScript">
    7887    function editItem()
     
    149158        tooltip="Check how this help will look like when viewed by the users"
    150159      />
     160      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     161        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    151162      <tbl:button
    152163        image="help.gif"
  • trunk/www/admin/clients/list_clients.jsp

    r4698 r4886  
    5050  import="net.sf.basedb.util.formatter.Formatter"
    5151  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     52  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     53  import="net.sf.basedb.clients.web.extensions.JspContext"
     54  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     55  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     56  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5257  import="java.util.Date"
    5358  import="java.util.Iterator"
     
    5762<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5863<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     64<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5965<%!
    6066  private static final Item itemType = Item.CLIENT;
     
    8793  }
    8894  int numListed = 0;
     95  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     96  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8997  %>
    9098  <base:page title="<%=title==null ? "Client applications" : title%>" type="<%=mode.getPageType()%>">
    9199  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     100    <ext:scripts context="<%=jspContext%>" />
     101    <ext:stylesheets context="<%=jspContext%>" />
    92102    <script language="JavaScript">
    93103    var submitPage = 'index.jsp';
     
    326336          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    327337        />
     338        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     339          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    328340      </tbl:toolbar>
    329341      <tbl:navigator
  • trunk/www/admin/clients/view_client.jsp

    r4698 r4886  
    4747  import="net.sf.basedb.util.formatter.Formatter"
    4848  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     49  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     50  import="net.sf.basedb.clients.web.extensions.JspContext"
     51  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     52  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     53  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4954  import="java.util.Date"
    5055  import="java.util.Collections"
     
    5661<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5762<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     63<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5864<%!
    5965  private static final Item itemType = Item.CLIENT;
     
    8389  final boolean isUsed = isRemoved && client.isUsed();
    8490  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     91  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, client);
     92  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8593  %>
    8694  <base:page title="<%=title%>">
    8795  <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     96    <ext:scripts context="<%=jspContext%>" />
     97    <ext:stylesheets context="<%=jspContext%>" />
    8898    <script language="JavaScript">
    8999    function editItem()
     
    210220        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    211221      />
     222      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     223        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    212224      <tbl:button
    213225        image="help.gif"
  • trunk/www/admin/datafiletypes/list_filetypes.jsp

    r4711 r4886  
    5555  import="net.sf.basedb.util.formatter.Formatter"
    5656  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     57  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     58  import="net.sf.basedb.clients.web.extensions.JspContext"
     59  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     60  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     61  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5762  import="net.sf.basedb.util.Values"
    5863  import="java.util.List"
     
    6267<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    6368<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     69<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6470<%!
    6571  private static final Item itemType = Item.DATAFILETYPE;
     
    116122  }
    117123  int numListed = 0;
     124  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     125  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    118126  %>
    119127  <base:page title="<%=title==null ? "Data file types" : title%>" type="<%=mode.getPageType()%>">
    120128  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     129    <ext:scripts context="<%=jspContext%>" />
     130    <ext:stylesheets context="<%=jspContext%>" />
    121131    <script language="JavaScript">
    122132    var submitPage = 'index.jsp';
     
    380390          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    381391        />
     392        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     393          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    382394      </tbl:toolbar>
    383395      <tbl:navigator
  • trunk/www/admin/datafiletypes/view_filetype.jsp

    r4711 r4886  
    3333  import="net.sf.basedb.core.Platform"
    3434  import="net.sf.basedb.core.PlatformVariant"
     35  import="net.sf.basedb.core.PlatformFileType"
     36  import="net.sf.basedb.core.Include"
    3537  import="net.sf.basedb.core.ItemQuery"
    3638  import="net.sf.basedb.core.ItemResultList"
     
    4648  import="net.sf.basedb.util.formatter.Formatter"
    4749  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     50  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     51  import="net.sf.basedb.clients.web.extensions.JspContext"
     52  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     53  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     54  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4855  import="net.sf.basedb.util.Values"
    4956  import="java.util.Map"
     
    5461<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5562<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     63<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5664<%!
    5765  private static final Item itemType = Item.DATAFILETYPE;
     
    7785  final boolean isUsed = isRemoved && fileType.isUsed();
    7886  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     87  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, fileType);
     88  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    7989  %>
    80 
    81   <%@page import="net.sf.basedb.core.PlatformFileType"%>
    82 <%@page import="net.sf.basedb.core.Include"%>
    83 <base:page title="<%=title%>">
     90  <base:page title="<%=title%>">
    8491  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
     92    <ext:scripts context="<%=jspContext%>" />
     93    <ext:stylesheets context="<%=jspContext%>" />
    8594    <script language="JavaScript">
    8695    function editItem()
     
    170179        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    171180      />
     181      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     182        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    172183      <tbl:button
    173184        image="help.gif"
  • trunk/www/admin/extravaluetypes/list_extravaluetypes.jsp

    r4698 r4886  
    5050  import="net.sf.basedb.util.formatter.Formatter"
    5151  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     52  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     53  import="net.sf.basedb.clients.web.extensions.JspContext"
     54  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     55  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     56  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5257  import="java.util.Date"
    5358  import="java.util.List"
     
    5661<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5762<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     63<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5864<%!
    5965  private static final Item itemType = Item.EXTRAVALUETYPE;
     
    101107  }
    102108  int numListed = 0;
     109  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     110  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    103111  %>
    104112  <base:page title="<%=title==null ? "Extra value types" : title%>" type="<%=mode.getPageType()%>">
    105113  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     114    <ext:scripts context="<%=jspContext%>" />
     115    <ext:stylesheets context="<%=jspContext%>" />
    106116    <script language="JavaScript">
    107117    var submitPage = 'index.jsp';
     
    366376          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    367377        />
     378        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     379          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    368380      </tbl:toolbar>
    369381      <tbl:navigator
  • trunk/www/admin/extravaluetypes/view_extravaluetype.jsp

    r4698 r4886  
    4242  import="net.sf.basedb.util.formatter.Formatter"
    4343  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     44  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     45  import="net.sf.basedb.clients.web.extensions.JspContext"
     46  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     47  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     48  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4449  import="java.util.Date"
    4550  import="java.util.Map"
     
    4954<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5055<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     56<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5157<%!
    5258  private static final Item itemType = Item.EXTRAVALUETYPE;
     
    7480  final boolean isUsed = isRemoved && extraValueType.isUsed();
    7581  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     82  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, extraValueType);
     83  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    7684  %>
    77 
    7885  <base:page title="<%=title%>">
    7986  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css">
     87    <ext:scripts context="<%=jspContext%>" />
     88    <ext:stylesheets context="<%=jspContext%>" />
    8089    <script language="JavaScript">
    8190    function editItem()
     
    165174        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    166175      />
     176      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     177        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    167178      <tbl:button
    168179        image="help.gif"
  • trunk/www/admin/filetypes/list_filetypes.jsp

    r4698 r4886  
    4848  import="net.sf.basedb.util.formatter.Formatter"
    4949  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     50  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     51  import="net.sf.basedb.clients.web.extensions.JspContext"
     52  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     53  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     54  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5055  import="java.util.Date"
    5156  import="java.util.List"
     
    5459<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5560<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     61<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5662<%!
    5763  private static final Item itemType = Item.FILETYPE;
     
    8490  }
    8591  int numListed = 0;
     92  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     93  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8694  %>
    8795  <base:page title="<%=title==null ? "File types" : title%>" type="<%=mode.getPageType()%>">
    8896  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     97    <ext:scripts context="<%=jspContext%>" />
     98    <ext:stylesheets context="<%=jspContext%>" />
    8999    <script language="JavaScript">
    90100    var submitPage = 'index.jsp';
     
    224234          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    225235        />
     236        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     237          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    226238      </tbl:toolbar>
    227239      <tbl:navigator
  • trunk/www/admin/filetypes/view_filetype.jsp

    r4698 r4886  
    4141  import="net.sf.basedb.util.formatter.Formatter"
    4242  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     43  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     44  import="net.sf.basedb.clients.web.extensions.JspContext"
     45  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     46  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     47  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4348  import="java.util.Date"
    4449  import="java.util.Map"
     
    4853<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    4954<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     55<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5056<%!
    5157  private static final Item itemType = Item.FILETYPE;
     
    6874 
    6975  final boolean writePermission = fileType.hasPermission(Permission.WRITE);
     76  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, fileType);
     77  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    7078  %>
    71 
    7279  <base:page title="<%=title%>">
    7380  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css">
     81    <ext:scripts context="<%=jspContext%>" />
     82    <ext:stylesheets context="<%=jspContext%>" />
    7483    <script language="JavaScript">
    7584    function editItem()
     
    116125        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    117126      />
     127      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     128        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    118129      <tbl:button
    119130        image="help.gif"
  • trunk/www/admin/groups/list_groups.jsp

    r4698 r4886  
    5252  import="net.sf.basedb.util.formatter.Formatter"
    5353  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     54  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     55  import="net.sf.basedb.clients.web.extensions.JspContext"
     56  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     57  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     58  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5459  import="java.util.Date"
    5560  import="java.util.List"
     
    5863<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5964<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.GROUP;
     
    103109  }
    104110  int numListed = 0;
     111  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     112  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    105113  %>
    106114  <base:page title="<%=title==null ? "Groups" : title%>" type="<%=mode.getPageType()%>">
    107115  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     116    <ext:scripts context="<%=jspContext%>" />
     117    <ext:stylesheets context="<%=jspContext%>" />
    108118    <script language="JavaScript">
    109119    var submitPage = 'index.jsp';
     
    335345          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    336346        />
     347        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     348          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    337349      </tbl:toolbar>
    338350      <tbl:navigator
  • trunk/www/admin/groups/view_group.jsp

    r4698 r4886  
    4949  import="net.sf.basedb.util.formatter.Formatter"
    5050  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     51  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     52  import="net.sf.basedb.clients.web.extensions.JspContext"
     53  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     54  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     55  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5156  import="java.util.Date"
    5257  import="java.util.Map"
     
    5661<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5762<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     63<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5864<%!
    5965  private static final Item itemType = Item.GROUP;
     
    8086  final boolean isUsed = isRemoved && group.isUsed();
    8187  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     88  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, group);
     89  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8290  %>
    83 
    8491  <base:page title="<%=title%>">
    8592  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     93    <ext:scripts context="<%=jspContext%>" />
     94    <ext:stylesheets context="<%=jspContext%>" />
    8695    <script language="JavaScript">
    8796    function editItem()
     
    171180        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    172181      />
     182      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     183        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    173184      <tbl:button
    174185        image="help.gif"
  • trunk/www/admin/hardware/list_hardware.jsp

    r4698 r4886  
    5151  import="net.sf.basedb.util.formatter.Formatter"
    5252  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     53  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     54  import="net.sf.basedb.clients.web.extensions.JspContext"
     55  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     56  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     57  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5358  import="java.util.Date"
    5459  import="java.util.Iterator"
     
    5863<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5964<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.HARDWARE;
     
    9298  }
    9399  int numListed = 0;
     100  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     101  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    94102  %>
    95103  <base:page title="<%=title==null ? "Hardware" : title%>" type="<%=mode.getPageType()%>">
    96104  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     105    <ext:scripts context="<%=jspContext%>" />
     106    <ext:stylesheets context="<%=jspContext%>" />
    97107    <script language="JavaScript">
    98108    var submitPage = 'index.jsp';
     
    349359          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    350360        />
     361        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     362          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    351363      </tbl:toolbar>
    352364      <tbl:navigator
  • trunk/www/admin/hardware/view_hardware.jsp

    r4698 r4886  
    4848  import="net.sf.basedb.util.formatter.Formatter"
    4949  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     50  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     51  import="net.sf.basedb.clients.web.extensions.JspContext"
     52  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     53  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     54  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5055  import="java.util.Date"
    5156  import="java.util.Collections"
     
    5762<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5863<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     64<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5965<%!
    6066  private static final Item itemType = Item.HARDWARE;
     
    8490  final boolean isUsed = isRemoved && hardware.isUsed();
    8591  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     92  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, hardware);
     93  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8694  %>
    8795  <base:page title="<%=title%>">
    8896  <base:head scripts="table,js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     97    <ext:scripts context="<%=jspContext%>" />
     98    <ext:stylesheets context="<%=jspContext%>" />
    8999    <script language="JavaScript">
    90100    function editItem()
     
    196206        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    197207      />
     208      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     209        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    198210      <tbl:button
    199211        image="help.gif"
  • trunk/www/admin/hardwaretypes/list_hardwaretypes.jsp

    r4698 r4886  
    5252  import="net.sf.basedb.util.formatter.Formatter"
    5353  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     54  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     55  import="net.sf.basedb.clients.web.extensions.JspContext"
     56  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     57  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     58  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5459  import="java.util.Date"
    5560  import="java.util.List"
     
    5863<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5964<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.HARDWARETYPE;
     
    98104  }
    99105  int numListed = 0;
     106  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     107  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    100108  %>
    101109  <base:page title="<%=title==null ? "Hardware types" : title%>" type="<%=mode.getPageType()%>">
    102110  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     111    <ext:scripts context="<%=jspContext%>" />
     112    <ext:stylesheets context="<%=jspContext%>" />
    103113    <script language="JavaScript">
    104114    var submitPage = 'index.jsp';
     
    302312          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    303313        />
     314        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     315          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    304316      </tbl:toolbar>
    305317      <tbl:navigator
  • trunk/www/admin/hardwaretypes/view_hardwaretype.jsp

    r4698 r4886  
    4747  import="net.sf.basedb.util.formatter.Formatter"
    4848  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     49  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     50  import="net.sf.basedb.clients.web.extensions.JspContext"
     51  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     52  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     53  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4954  import="java.util.Date"
    5055  import="java.util.Map"
     
    5459<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5560<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     61<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5662<%!
    5763  private static final Item itemType = Item.HARDWARETYPE;
     
    7985  final boolean isUsed = isRemoved && hardwareType.isUsed();
    8086  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     87  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, hardwareType);
     88  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8189  %>
    82 
    8390  <base:page title="<%=title%>">
    8491  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
     92    <ext:scripts context="<%=jspContext%>" />
     93    <ext:stylesheets context="<%=jspContext%>" />
    8594    <script language="JavaScript">
    8695    function editItem()
     
    174183        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    175184      />
     185      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     186        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    176187      <tbl:button
    177188        image="help.gif"
  • trunk/www/admin/jobagents/list_agents.jsp

    r4609 r4886  
    5353  import="net.sf.basedb.clients.web.util.HTML"
    5454  import="net.sf.basedb.util.Values"
     55  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     56  import="net.sf.basedb.clients.web.extensions.JspContext"
     57  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     58  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     59  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5560  import="java.util.Iterator"
    5661  import="java.util.List"
     
    6065<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    6166<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     67<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6268<%!
    6369  private static final Item itemType = Item.JOBAGENT;
     
    94100  }
    95101  int numListed = 0;
     102  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     103  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    96104  %>
    97105  <base:page title="<%=title==null ? "Job agents" : title%>" type="<%=mode.getPageType()%>">
    98106  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     107    <ext:scripts context="<%=jspContext%>" />
     108    <ext:stylesheets context="<%=jspContext%>" />
    99109    <script language="JavaScript">
    100110    var submitPage = 'index.jsp';
     
    384394          tooltip="Start the selected job agents"
    385395        />
     396        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     397          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    386398      </tbl:toolbar>
    387399      <tbl:navigator
  • trunk/www/admin/jobagents/view_agent.jsp

    r4578 r4886  
    5757  import="net.sf.basedb.util.formatter.Formatter"
    5858  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     59  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     60  import="net.sf.basedb.clients.web.extensions.JspContext"
     61  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     62  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     63  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5964  import="java.util.Map"
    6065  import="java.util.Set"
     
    6671<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    6772<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     73<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6874<%!
    6975  private static final Item itemType = Item.JOBAGENT;
     
    96102  final boolean isUsed = isRemoved && agent.isUsed();
    97103  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     104  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, agent);
     105  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    98106  %>
    99107  <base:page title="<%=title%>">
    100108  <base:head scripts="tabcontrol.js,table.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css,progressbar.css">
     109    <ext:scripts context="<%=jspContext%>" />
     110    <ext:stylesheets context="<%=jspContext%>" />
    101111    <script language="JavaScript">
    102112    function editItem()
     
    226236        visible="<%=writePermission && paused != null && paused == false%>"
    227237      />
     238      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     239        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    228240      <tbl:button
    229241        image="help.gif"
  • trunk/www/admin/mimetypes/list_mimetypes.jsp

    r4698 r4886  
    4949  import="net.sf.basedb.util.formatter.Formatter"
    5050  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     51  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     52  import="net.sf.basedb.clients.web.extensions.JspContext"
     53  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     54  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     55  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5156  import="java.util.Date"
    5257  import="java.util.List"
     
    5560<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5661<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     62<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5763<%!
    5864  private static final Item itemType = Item.MIMETYPE;
     
    9298  }
    9399  int numListed = 0;
     100  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     101  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    94102  %>
    95103  <base:page title="<%=title==null ? "MIME types" : title%>" type="<%=mode.getPageType()%>">
    96104  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     105    <ext:scripts context="<%=jspContext%>" />
     106    <ext:stylesheets context="<%=jspContext%>" />
    97107    <script language="JavaScript">
    98108    var submitPage = 'index.jsp';
     
    322332          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    323333        />
     334        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     335          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    324336      </tbl:toolbar>
    325337      <tbl:navigator
  • trunk/www/admin/mimetypes/view_mimetype.jsp

    r4698 r4886  
    4141  import="net.sf.basedb.util.formatter.Formatter"
    4242  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     43  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     44  import="net.sf.basedb.clients.web.extensions.JspContext"
     45  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     46  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     47  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4348  import="java.util.Date"
    4449  import="java.util.Map"
     
    4853<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    4954<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     55<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5056<%!
    5157  private static final Item itemType = Item.MIMETYPE;
     
    7278  final boolean isUsed = isRemoved && mimeType.isUsed();
    7379  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     80  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, mimeType);
     81  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    7482  %>
    75 
    7683  <base:page title="<%=title%>">
    7784  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css">
     85    <ext:scripts context="<%=jspContext%>" />
     86    <ext:stylesheets context="<%=jspContext%>" />
    7887    <script language="JavaScript">
    7988    function editItem()
     
    163172        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    164173      />
     174      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     175        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    165176      <tbl:button
    166177        image="help.gif"
  • trunk/www/admin/news/list_news.jsp

    r4698 r4886  
    4747  import="net.sf.basedb.util.formatter.Formatter"
    4848  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     49  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     50  import="net.sf.basedb.clients.web.extensions.JspContext"
     51  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     52  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     53  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4954  import="net.sf.basedb.util.Values"
    5055  import="java.util.List"
     
    5459<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5560<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     61<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5662<%!
    5763  private static final Item itemType = Item.NEWS;
     
    8692  int numListed = 0;
    8793  Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc);
     94  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     95  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8896  %>
    8997  <base:page title="<%=title==null ? "News" : title%>" type="<%=mode.getPageType()%>">
    9098  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     99    <ext:scripts context="<%=jspContext%>" />
     100    <ext:stylesheets context="<%=jspContext%>" />
    91101    <script language="JavaScript">
    92102    var submitPage = 'index.jsp';
     
    306316          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    307317        />
     318        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     319          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    308320      </tbl:toolbar>
    309321      <tbl:navigator
  • trunk/www/admin/news/view_news.jsp

    r4698 r4886  
    4040  import="net.sf.basedb.util.formatter.Formatter"
    4141  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     42  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     43  import="net.sf.basedb.clients.web.extensions.JspContext"
     44  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     45  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     46  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4247  import="net.sf.basedb.util.Values"
    4348  import="java.util.Map"
     
    4853<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    4954<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     55<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5056<%!
    5157  private static final Item itemType = Item.NEWS;
     
    7278  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    7379  Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc);
     80  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, news);
     81  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    7482  %>
    75 
    7683  <base:page title="<%=title%>">
    7784  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css">
     85    <ext:scripts context="<%=jspContext%>" />
     86    <ext:stylesheets context="<%=jspContext%>" />
    7887    <script language="JavaScript">
    7988    function editItem()
     
    163172        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    164173      />
     174      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     175        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    165176      <tbl:button
    166177        image="help.gif"
  • trunk/www/admin/platforms/list_platforms.jsp

    r4609 r4886  
    5151  import="net.sf.basedb.util.formatter.Formatter"
    5252  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     53  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     54  import="net.sf.basedb.clients.web.extensions.JspContext"
     55  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     56  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     57  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5358  import="net.sf.basedb.util.Values"
    5459  import="java.util.List"
     
    5863<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5964<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.PLATFORM;
     
    95101  }
    96102  int numListed = 0;
     103  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     104  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    97105  %>
    98106  <base:page title="<%=title==null ? "Platforms" : title%>" type="<%=mode.getPageType()%>">
    99107  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     108    <ext:scripts context="<%=jspContext%>" />
     109    <ext:stylesheets context="<%=jspContext%>" />
    100110    <script language="JavaScript">
    101111    var submitPage = 'index.jsp';
     
    323333          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    324334        />
     335        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     336          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    325337      </tbl:toolbar>
    326338      <tbl:navigator
  • trunk/www/admin/platforms/variants/list_variants.jsp

    r4510 r4886  
    4848  import="net.sf.basedb.clients.web.util.HTML"
    4949  import="net.sf.basedb.util.Values"
     50  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     51  import="net.sf.basedb.clients.web.extensions.JspContext"
     52  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     53  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     54  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5055  import="java.util.List"
    5156  import="java.util.Map"
     
    5560<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5661<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     62<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5763<%!
    5864  private static final Item itemType = Item.PLATFORMVARIANT;
     
    8894  }
    8995  int numListed = 0;
     96  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, platform);
     97  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    9098  %>
    9199  <base:page title="<%=title%>" type="<%=mode.getPageType()%>">
    92100  <base:head scripts="table.js,tabcontrol.js" styles="table.css,headertabcontrol.css,path.css,help.css">
     101    <ext:scripts context="<%=jspContext%>" />
     102    <ext:stylesheets context="<%=jspContext%>" />
    93103    <script language="JavaScript">
    94104    var submitPage = 'index.jsp';
     
    331341          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    332342        />
     343        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     344          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    333345      </tbl:toolbar>
    334346      <tbl:navigator
  • trunk/www/admin/platforms/variants/view_variant.jsp

    r4510 r4886  
    2828  import="net.sf.basedb.core.SystemItems"
    2929  import="net.sf.basedb.core.Item"
     30  import="net.sf.basedb.core.Include"
    3031  import="net.sf.basedb.core.ItemContext"
    3132  import="net.sf.basedb.core.Permission"
     
    4748  import="net.sf.basedb.clients.web.util.HTML"
    4849  import="net.sf.basedb.util.Values"
     50  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     51  import="net.sf.basedb.clients.web.extensions.JspContext"
     52  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     53  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     54  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4955  import="java.util.Date"
    5056  import="java.util.Map"
     
    5561<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    5662<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     63<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5764<%!
    5865  private static final Item itemType = Item.PLATFORMVARIANT;
     
    8087  final boolean isUsed = isRemoved && variant.isUsed();
    8188  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     89  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, variant);
     90  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8291  %>
    83 
    84   <%@page import="net.sf.basedb.core.Include"%>
    85 <base:page title="<%=title%>">
     92  <base:page title="<%=title%>">
    8693  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     94    <ext:scripts context="<%=jspContext%>" />
     95    <ext:stylesheets context="<%=jspContext%>" />
    8796    <script language="JavaScript">
    8897    function editItem()
     
    175184        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    176185      />
     186      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     187        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    177188      <tbl:button
    178189        image="help.gif"
  • trunk/www/admin/platforms/view_platform.jsp

    r4510 r4886  
    3333  import="net.sf.basedb.core.Platform"
    3434  import="net.sf.basedb.core.PlatformVariant"
     35  import="net.sf.basedb.core.PlatformFileType"
    3536  import="net.sf.basedb.core.DataFileType"
    3637  import="net.sf.basedb.core.RawDataType"
     
    4849  import="net.sf.basedb.util.formatter.Formatter"
    4950  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     51  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     52  import="net.sf.basedb.clients.web.extensions.JspContext"
     53  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     54  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     55  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5056  import="net.sf.basedb.util.Values"
    5157  import="java.util.Map"
     
    5662<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5763<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     64<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5865<%!
    5966  private static final Item itemType = Item.PLATFORM;
     
    7986  final boolean isUsed = isRemoved && platform.isUsed();
    8087  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     88  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, platform);
     89  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8190  %>
    82 
    83   <%@page import="net.sf.basedb.core.PlatformFileType"%>
    84 <base:page title="<%=title%>">
     91  <base:page title="<%=title%>">
    8592  <base:head scripts="tabcontrol.js,table.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
     93    <ext:scripts context="<%=jspContext%>" />
     94    <ext:stylesheets context="<%=jspContext%>" />
    8695    <script language="JavaScript">
    8796    function editItem()
     
    197206        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    198207      />
     208      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     209        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    199210      <tbl:button
    200211        image="help.gif"
  • trunk/www/admin/pluginconfigurations/list_configurations.jsp

    r4698 r4886  
    5454  import="net.sf.basedb.util.formatter.Formatter"
    5555  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     56  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     57  import="net.sf.basedb.clients.web.extensions.JspContext"
     58  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     59  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     60  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5661  import="java.util.Date"
    5762  import="java.util.Iterator"
     
    6469<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    6570<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     71<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6672<%!
    6773  private static final Item itemType = Item.PLUGINCONFIGURATION;
     
    114120  }
    115121  int numListed = 0;
     122  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     123  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    116124  %>
    117125  <base:page title="<%=title==null ? "Plugin configurations" : title%>" type="<%=mode.getPageType()%>">
    118126  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     127    <ext:scripts context="<%=jspContext%>" />
     128    <ext:stylesheets context="<%=jspContext%>" />
    119129    <script language="JavaScript">
    120130    var submitPage = 'index.jsp';
     
    396406          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    397407        />
     408        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     409          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    398410      </tbl:toolbar>
    399411      <tbl:navigator
  • trunk/www/admin/pluginconfigurations/view_configuration.jsp

    r4698 r4886  
    5555  import="net.sf.basedb.util.formatter.Formatter"
    5656  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     57  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     58  import="net.sf.basedb.clients.web.extensions.JspContext"
     59  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     60  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     61  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5762  import="java.util.Map"
    5863  import="java.util.Set"
     
    6671<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    6772<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     73<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6874<%!
    6975  private static final Item itemType = Item.PLUGINCONFIGURATION;
     
    112118    readPlugin = false;
    113119  }
     120  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, configuration);
     121  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    114122  %>
    115 
    116123  <base:page title="<%=title%>">
    117124  <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     125    <ext:scripts context="<%=jspContext%>" />
     126    <ext:stylesheets context="<%=jspContext%>" />
    118127    <script language="JavaScript">
    119128    function editItem()
     
    246255        visible="<%=configurable && writePermission%>"
    247256      />
     257      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     258        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    248259      <tbl:button
    249260        image="help.gif"
  • trunk/www/admin/plugindefinitions/list_plugins.jsp

    r4698 r4886  
    5656  import="net.sf.basedb.util.formatter.Formatter"
    5757  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     58  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     59  import="net.sf.basedb.clients.web.extensions.JspContext"
     60  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     61  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     62  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5863  import="java.util.Date"
    5964  import="java.util.Iterator"
     
    6671<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    6772<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     73<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6874<%!
    6975  private static final Item itemType = Item.PLUGINDEFINITION;
     
    122128  }
    123129  int numListed = 0;
     130  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     131  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    124132  %>
    125133  <base:page title="<%=title==null ? "Plugins" : title%>" type="<%=mode.getPageType()%>">
    126134  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     135    <ext:scripts context="<%=jspContext%>" />
     136    <ext:stylesheets context="<%=jspContext%>" />
    127137    <script language="JavaScript">
    128138    var submitPage = 'index.jsp';
     
    540550          tooltip="Unload plugins"
    541551        />
     552        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     553          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    542554        </tbl:toolbar>
    543555      <tbl:navigator
  • trunk/www/admin/plugindefinitions/view_plugin.jsp

    r4698 r4886  
    5959  import="net.sf.basedb.util.formatter.Formatter"
    6060  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     61  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     62  import="net.sf.basedb.clients.web.extensions.JspContext"
     63  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     64  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     65  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6166  import="java.util.Date"
    6267  import="java.util.Collections"
     
    7075<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    7176<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     77<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7278<%!
    7379  private static final Item itemType = Item.PLUGINDEFINITION;
     
    127133    warning = ex.getMessage();
    128134  }
     135  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, plugin);
     136  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    129137  %>
    130138  <base:page title="<%=title%>">
    131139  <base:head scripts="tabcontrol.js,table.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
     140    <ext:scripts context="<%=jspContext%>" />
     141    <ext:stylesheets context="<%=jspContext%>" />
    132142    <script language="JavaScript">
    133143    function editItem()
     
    268278        visible="<%=loaded && !internal%>"
    269279      />
     280      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     281        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    270282      <tbl:button
    271283        image="help.gif"
  • trunk/www/admin/plugintypes/list_plugintypes.jsp

    r4698 r4886  
    5252  import="net.sf.basedb.util.formatter.Formatter"
    5353  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     54  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     55  import="net.sf.basedb.clients.web.extensions.JspContext"
     56  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     57  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     58  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5459  import="java.util.Date"
    5560  import="java.util.List"
     
    5863<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5964<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.PLUGINTYPE;
     
    97103  }
    98104  int numListed = 0;
     105  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     106  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    99107  %>
    100108  <base:page title="<%=title==null ? "Plugin types" : title%>" type="<%=mode.getPageType()%>">
    101109  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     110    <ext:scripts context="<%=jspContext%>" />
     111    <ext:stylesheets context="<%=jspContext%>" />
    102112    <script language="JavaScript">
    103113    var submitPage = 'index.jsp';
     
    313323          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    314324        />
     325        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     326          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    315327      </tbl:toolbar>
    316328      <tbl:navigator
  • trunk/www/admin/plugintypes/view_plugintype.jsp

    r4698 r4886  
    4848  import="net.sf.basedb.util.formatter.Formatter"
    4949  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     50  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     51  import="net.sf.basedb.clients.web.extensions.JspContext"
     52  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     53  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     54  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5055  import="java.util.Date"
    5156  import="java.util.Map"
     
    5560<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5661<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     62<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5763<%!
    5864  private static final Item itemType = Item.PLUGINTYPE;
     
    7985  final boolean isUsed = isRemoved && pluginType.isUsed();
    8086  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     87  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, pluginType);
     88  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8189  %>
    82 
    8390  <base:page title="<%=title%>">
    8491  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
     92    <ext:scripts context="<%=jspContext%>" />
     93    <ext:stylesheets context="<%=jspContext%>" />
    8594    <script language="JavaScript">
    8695    function editItem()
     
    170179        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    171180      />
     181      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     182        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    172183      <tbl:button
    173184        image="help.gif"
  • trunk/www/admin/protocols/list_protocol.jsp

    r4698 r4886  
    5151  import="net.sf.basedb.util.formatter.Formatter"
    5252  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     53  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     54  import="net.sf.basedb.clients.web.extensions.JspContext"
     55  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     56  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     57  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5358  import="java.util.Date"
    5459  import="java.util.Iterator"
     
    5863<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5964<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.PROTOCOL;
     
    9298  }
    9399  int numListed = 0;
     100  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     101  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    94102  %>
    95103  <base:page title="<%=title==null ? "Protocols" : title%>" type="<%=mode.getPageType()%>">
    96104  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     105    <ext:scripts context="<%=jspContext%>" />
     106    <ext:stylesheets context="<%=jspContext%>" />
    97107    <script language="JavaScript">
    98108    var submitPage = 'index.jsp';
     
    349359          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    350360        />
     361        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     362          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    351363      </tbl:toolbar>
    352364      <tbl:navigator
  • trunk/www/admin/protocols/view_protocol.jsp

    r4698 r4886  
    5454  import="net.sf.basedb.util.formatter.Formatter"
    5555  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     56  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     57  import="net.sf.basedb.clients.web.extensions.JspContext"
     58  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     59  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     60  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5661  import="java.util.Date"
    5762  import="net.sf.basedb.util.Values"
     
    6469<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    6570<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     71<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6672<%!
    6773  private static final Item itemType = Item.PROTOCOL;
     
    9197  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    9298  final boolean isOwner = protocol.isOwner();
     99  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, protocol);
     100  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    93101  %>
    94102  <base:page title="<%=title%>">
    95103  <base:head scripts="tabcontrol.js,table.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
     104    <ext:scripts context="<%=jspContext%>" />
     105    <ext:stylesheets context="<%=jspContext%>" />
    96106    <script language="JavaScript">
    97107    function editItem()
     
    203213        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    204214      />
     215      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     216        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    205217      <tbl:button
    206218        image="help.gif"
  • trunk/www/admin/protocoltypes/list_protocoltype.jsp

    r4698 r4886  
    5252  import="net.sf.basedb.util.formatter.Formatter"
    5353  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     54  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     55  import="net.sf.basedb.clients.web.extensions.JspContext"
     56  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     57  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     58  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5459  import="java.util.Date"
    5560  import="java.util.List"
     
    5863<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5964<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.PROTOCOLTYPE;
     
    97103  }
    98104  int numListed = 0;
     105  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     106  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    99107  %>
    100108  <base:page title="<%=title==null ? "Protocol types" : title%>" type="<%=mode.getPageType()%>">
    101109  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     110    <ext:scripts context="<%=jspContext%>" />
     111    <ext:stylesheets context="<%=jspContext%>" />
    102112    <script language="JavaScript">
    103113    var submitPage = 'index.jsp';
     
    308318          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    309319        />
     320        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     321          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    310322      </tbl:toolbar>
    311323      <tbl:navigator
  • trunk/www/admin/protocoltypes/view_protocoltype.jsp

    r4698 r4886  
    4747  import="net.sf.basedb.util.formatter.Formatter"
    4848  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     49  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     50  import="net.sf.basedb.clients.web.extensions.JspContext"
     51  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     52  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     53  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4954  import="java.util.Date"
    5055  import="java.util.Map"
     
    5459<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5560<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     61<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5662<%!
    5763  private static final Item itemType = Item.PROTOCOLTYPE;
     
    7985  final boolean isUsed = isRemoved && protocolType.isUsed();
    8086  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     87  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, protocolType);
     88  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8189  %>
    82 
    8390  <base:page title="<%=title%>">
    8491  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
     92    <ext:scripts context="<%=jspContext%>" />
     93    <ext:stylesheets context="<%=jspContext%>" />
    8594    <script language="JavaScript">
    8695    function editItem()
     
    181190        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    182191      />
     192      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     193        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    183194      <tbl:button
    184195        image="help.gif"
  • trunk/www/admin/quantities/list_quantities.jsp

    r4609 r4886  
    5151  import="net.sf.basedb.clients.web.util.HTML"
    5252  import="net.sf.basedb.util.Values"
     53  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     54  import="net.sf.basedb.clients.web.extensions.JspContext"
     55  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     56  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     57  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5358  import="java.util.List"
    5459  import="java.util.Map"
     
    5661<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5762<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     63<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5864<%!
    5965  private static final Item itemType = Item.QUANTITY;
     
    94100  }
    95101  int numListed = 0;
     102  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     103  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    96104  %>
    97105  <base:page title="<%=title==null ? "Quantities" : title%>" type="<%=mode.getPageType()%>">
    98106  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     107    <ext:scripts context="<%=jspContext%>" />
     108    <ext:stylesheets context="<%=jspContext%>" />
    99109    <script language="JavaScript">
    100110    var submitPage = 'index.jsp';
     
    308318          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    309319        />
     320        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     321          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    310322      </tbl:toolbar>
    311323      <tbl:navigator
  • trunk/www/admin/quantities/units/view_unit.jsp

    r4543 r4886  
    4141  import="net.sf.basedb.clients.web.util.HTML"
    4242  import="net.sf.basedb.util.Values"
     43  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     44  import="net.sf.basedb.clients.web.extensions.JspContext"
     45  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     46  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     47  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4348  import="java.util.Date"
    4449  import="java.util.Map"
     
    4954<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    5055<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     56<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5157<%!
    5258  private static final Item itemType = Item.UNIT;
     
    9096  final boolean isUsed = isRemoved && unit.isUsed();
    9197  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     98  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, unit);
     99  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    92100  %>
    93 
    94101  <base:page title="<%=title%>">
    95102  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     103    <ext:scripts context="<%=jspContext%>" />
     104    <ext:stylesheets context="<%=jspContext%>" />
    96105    <script language="JavaScript">
    97106    function editItem()
     
    185194        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    186195      />
     196      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     197        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    187198      <tbl:button
    188199        image="help.gif"
  • trunk/www/admin/quantities/view_quantity.jsp

    r4565 r4886  
    4545  import="net.sf.basedb.clients.web.util.HTML"
    4646  import="net.sf.basedb.util.Values"
     47  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     48  import="net.sf.basedb.clients.web.extensions.JspContext"
     49  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     50  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     51  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4752  import="java.util.Map"
    4853  import="java.util.Set"
     
    5257<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5358<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     59<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5460<%!
    5561  private static final Item itemType = Item.QUANTITY;
     
    7682  final boolean isUsed = isRemoved && quantity.isUsed();
    7783  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     84  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, quantity);
     85  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    7886  %>
    79 
    8087  <base:page title="<%=title%>">
    8188  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
     89    <ext:scripts context="<%=jspContext%>" />
     90    <ext:stylesheets context="<%=jspContext%>" />
    8291    <script language="JavaScript">
    8392    function editItem()
     
    178187        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    179188      />
     189      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     190        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    180191      <tbl:button
    181192        image="help.gif"
  • trunk/www/admin/quota/list_quota.jsp

    r4510 r4886  
    4949  import="net.sf.basedb.clients.web.util.HTML"
    5050  import="net.sf.basedb.util.Values"
     51  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     52  import="net.sf.basedb.clients.web.extensions.JspContext"
     53  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     54  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     55  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5156  import="java.util.List"
    5257  import="java.util.Map"
     
    5459<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5560<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     61<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5662<%!
    5763  private static final Item itemType = Item.QUOTA;
     
    8692  }
    8793  int numListed = 0;
     94  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     95  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8896  %>
    8997  <base:page title="<%=title==null ? "Quota" : title%>" type="<%=mode.getPageType()%>">
    9098  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     99    <ext:scripts context="<%=jspContext%>" />
     100    <ext:stylesheets context="<%=jspContext%>" />
    91101    <script language="JavaScript">
    92102    var submitPage = 'index.jsp';
     
    280290          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    281291        />
     292        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     293          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    282294      </tbl:toolbar>
    283295      <tbl:navigator
  • trunk/www/admin/quota/view_quota.jsp

    r4510 r4886  
    4646  import="net.sf.basedb.clients.web.util.HTML"
    4747  import="net.sf.basedb.util.Values"
     48  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     49  import="net.sf.basedb.clients.web.extensions.JspContext"
     50  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     51  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     52  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4853  import="java.util.Map"
    4954%>
     
    5257<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5358<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     59<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5460<%!
    5561  private static final Item itemType = Item.QUOTA;
     
    104110  );
    105111  quotaTypeQuery.setCacheResult(true);
     112  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, quota);
     113  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    106114  %>
    107 
    108115  <base:page title="<%=title%>">
    109116  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css">
     117    <ext:scripts context="<%=jspContext%>" />
     118    <ext:stylesheets context="<%=jspContext%>" />
    110119    <script language="JavaScript">
    111120    function editItem()
     
    195204        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    196205      />
     206      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     207        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    197208      <tbl:button
    198209        image="help.gif"
  • trunk/www/admin/quotatypes/list_quotatypes.jsp

    r4698 r4886  
    4848  import="net.sf.basedb.util.formatter.Formatter"
    4949  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     50  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     51  import="net.sf.basedb.clients.web.extensions.JspContext"
     52  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     53  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     54  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5055  import="java.util.Date"
    5156  import="java.util.List"
     
    5459<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5560<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     61<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5662<%!
    5763  private static final Item itemType = Item.QUOTATYPE;
     
    8490  }
    8591  int numListed = 0;
     92  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     93  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8694  %>
    8795  <base:page title="<%=title==null ? "Quota types" : title%>" type="<%=mode.getPageType()%>">
    8896  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     97    <ext:scripts context="<%=jspContext%>" />
     98    <ext:stylesheets context="<%=jspContext%>" />
    8999    <script language="JavaScript">
    90100    var submitPage = 'index.jsp';
     
    224234          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    225235        />       
     236        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     237          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    226238      </tbl:toolbar>
    227239      <tbl:navigator
  • trunk/www/admin/quotatypes/view_quotatype.jsp

    r4698 r4886  
    4141  import="net.sf.basedb.util.formatter.Formatter"
    4242  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     43  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     44  import="net.sf.basedb.clients.web.extensions.JspContext"
     45  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     46  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     47  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4348  import="java.util.Date"
    4449  import="java.util.Map"
     
    4853<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    4954<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     55<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5056<%!
    5157  private static final Item itemType = Item.QUOTATYPE;
     
    6874 
    6975  final boolean writePermission = quotaType.hasPermission(Permission.WRITE);
     76  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, quotaType);
     77  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    7078  %>
    71 
    7279  <base:page title="<%=title%>">
    7380  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css">
     81    <ext:scripts context="<%=jspContext%>" />
     82    <ext:stylesheets context="<%=jspContext%>" />
    7483    <script language="JavaScript">
    7584    function editItem()
     
    116125        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    117126      />
     127      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     128        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    118129      <tbl:button
    119130        image="help.gif"
  • trunk/www/admin/reportertypes/list_reportertypes.jsp

    r4698 r4886  
    4848  import="net.sf.basedb.util.formatter.Formatter"
    4949  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     50  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     51  import="net.sf.basedb.clients.web.extensions.JspContext"
     52  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     53  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     54  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5055  import="java.util.Date"
    5156  import="java.util.List"
     
    5459<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5560<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     61<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5662<%!
    5763  private static final Item itemType = Item.REPORTERTYPE;
     
    8692  }
    8793  int numListed = 0;
     94  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     95  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8896  %>
    8997  <base:page title="<%=title==null ? "Reporter types" : title%>" type="<%=mode.getPageType()%>">
    9098  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     99    <ext:scripts context="<%=jspContext%>" />
     100    <ext:stylesheets context="<%=jspContext%>" />
    91101    <script language="JavaScript">
    92102    var submitPage = 'index.jsp';
     
    276286          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    277287        />
     288        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     289          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    278290      </tbl:toolbar>
    279291      <tbl:navigator
  • trunk/www/admin/reportertypes/view_reportertype.jsp

    r4698 r4886  
    4141  import="net.sf.basedb.util.formatter.Formatter"
    4242  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     43  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     44  import="net.sf.basedb.clients.web.extensions.JspContext"
     45  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     46  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     47  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4348  import="java.util.Date"
    4449  import="java.util.Map"
     
    4853<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    4954<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     55<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5056<%!
    5157  private static final Item itemType = Item.REPORTERTYPE;
     
    7278  final boolean isUsed = isRemoved && reporterType.isUsed();
    7379  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     80  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, reporterType);
     81  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    7482  %>
    75 
    7683  <base:page title="<%=title%>">
    7784  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css">
     85    <ext:scripts context="<%=jspContext%>" />
     86    <ext:stylesheets context="<%=jspContext%>" />
    7887    <script language="JavaScript">
    7988    function editItem()
     
    163172        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    164173      />
     174      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     175        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    165176      <tbl:button
    166177        image="help.gif"
  • trunk/www/admin/roles/list_roles.jsp

    r4698 r4886  
    5252  import="net.sf.basedb.util.formatter.Formatter"
    5353  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     54  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     55  import="net.sf.basedb.clients.web.extensions.JspContext"
     56  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     57  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     58  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5459  import="java.util.Date"
    5560  import="java.util.List"
     
    5863<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5964<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.ROLE;
     
    96102  }
    97103  int numListed = 0;
     104  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     105  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    98106  %>
    99107  <base:page title="<%=title==null ? "Roles" : title%>" type="<%=mode.getPageType()%>">
    100108  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     109    <ext:scripts context="<%=jspContext%>" />
     110    <ext:stylesheets context="<%=jspContext%>" />
    101111    <script language="JavaScript">
    102112    var submitPage = 'index.jsp';
     
    312322          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    313323        />
     324        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     325          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    314326      </tbl:toolbar>
    315327      <tbl:navigator
  • trunk/www/admin/roles/view_role.jsp

    r4698 r4886  
    4949  import="net.sf.basedb.util.formatter.Formatter"
    5050  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     51  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     52  import="net.sf.basedb.clients.web.extensions.JspContext"
     53  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     54  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     55  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5156  import="java.util.Date"
    5257  import="java.util.Map"
     
    5863<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5964<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.ROLE;
     
    101107  final boolean isUsed = isRemoved && role.isUsed();
    102108  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     109  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, role);
     110  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    103111  %>
    104 
    105112  <base:page title="<%=title%>">
    106113  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     114    <ext:scripts context="<%=jspContext%>" />
     115    <ext:stylesheets context="<%=jspContext%>" />
    107116    <script language="JavaScript">
    108117    function editItem()
     
    204213        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    205214      />
     215      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     216        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    206217      <tbl:button
    207218        image="help.gif"
  • trunk/www/admin/software/list_software.jsp

    r4698 r4886  
    5151  import="net.sf.basedb.util.formatter.Formatter"
    5252  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     53  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     54  import="net.sf.basedb.clients.web.extensions.JspContext"
     55  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     56  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     57  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5358  import="java.util.Date"
    5459  import="java.util.Iterator"
     
    5863<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5964<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.SOFTWARE;
     
    9298  }
    9399  int numListed = 0;
     100  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     101  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    94102  %>
    95103  <base:page title="<%=title==null ? "Software" : title%>" type="<%=mode.getPageType()%>">
    96104  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     105    <ext:scripts context="<%=jspContext%>" />
     106    <ext:stylesheets context="<%=jspContext%>" />
    97107    <script language="JavaScript">
    98108    var submitPage = 'index.jsp';
     
    349359          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    350360        />
     361        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     362          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    351363      </tbl:toolbar>
    352364      <tbl:navigator
  • trunk/www/admin/software/view_software.jsp

    r4698 r4886  
    4848  import="net.sf.basedb.util.formatter.Formatter"
    4949  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     50  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     51  import="net.sf.basedb.clients.web.extensions.JspContext"
     52  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     53  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     54  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5055  import="java.util.Date"
    5156  import="java.util.Collections"
     
    5762<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5863<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     64<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5965<%!
    6066  private static final Item itemType = Item.SOFTWARE;
     
    8490  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    8591  final boolean isOwner = software.isOwner();
     92  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, software);
     93  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8694  %>
    8795  <base:page title="<%=title%>">
    8896  <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     97    <ext:scripts context="<%=jspContext%>" />
     98    <ext:stylesheets context="<%=jspContext%>" />
    8999    <script language="JavaScript">
    90100    function editItem()
     
    195205        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    196206      />
     207      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     208        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    197209      <tbl:button
    198210        image="help.gif"
  • trunk/www/admin/softwaretypes/list_softwaretypes.jsp

    r4698 r4886  
    5252  import="net.sf.basedb.util.formatter.Formatter"
    5353  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     54  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     55  import="net.sf.basedb.clients.web.extensions.JspContext"
     56  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     57  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     58  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5459  import="java.util.Date"
    5560  import="java.util.List"
     
    5863<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5964<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     65<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6066<%!
    6167  private static final Item itemType = Item.SOFTWARETYPE;
     
    95101  }
    96102  int numListed = 0;
     103  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     104  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    97105  %>
    98106  <base:page title="<%=title==null ? "Software types" : title%>" type="<%=mode.getPageType()%>">
    99107  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     108    <ext:scripts context="<%=jspContext%>" />
     109    <ext:stylesheets context="<%=jspContext%>" />
    100110    <script language="JavaScript">
    101111    var submitPage = 'index.jsp';
     
    246256          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    247257        />
     258        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     259          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    248260      </tbl:toolbar>
    249261      <tbl:navigator
  • trunk/www/admin/softwaretypes/view_softwaretype.jsp

    r4698 r4886  
    4747  import="net.sf.basedb.util.formatter.Formatter"
    4848  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     49  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     50  import="net.sf.basedb.clients.web.extensions.JspContext"
     51  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     52  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     53  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4954  import="java.util.Date"
    5055  import="java.util.Map"
     
    5459<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    5560<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     61<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5662<%!
    5763  private static final Item itemType = Item.SOFTWARETYPE;
     
    7581  final boolean usePermission = softwareType.hasPermission(Permission.USE);
    7682  final boolean writePermission = softwareType.hasPermission(Permission.WRITE);
     83  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, softwareType);
     84  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    7785  %>
    78 
    7986  <base:page title="<%=title%>">
    8087  <base:head scripts="tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
     88    <ext:scripts context="<%=jspContext%>" />
     89    <ext:stylesheets context="<%=jspContext%>" />
    8190    <script language="JavaScript">
    8291    function editItem()
     
    134143        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    135144      />
     145      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     146        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    136147      <tbl:button
    137148        image="help.gif"
  • trunk/www/admin/users/list_users.jsp

    r4698 r4886  
    5555  import="net.sf.basedb.util.formatter.Formatter"
    5656  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     57  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     58  import="net.sf.basedb.clients.web.extensions.JspContext"
     59  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     60  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     61  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5762  import="java.util.List"
    5863  import="java.util.Map"
     
    6166<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    6267<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     68<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6369<%!
    6470  private static final Item itemType = Item.USER;
     
    110116  }
    111117  int numListed = 0;
     118  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     119  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    112120  %>
    113121  <base:page title="<%=title==null ? "Users" : title%>" type="<%=mode.getPageType()%>">
    114122  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     123    <ext:scripts context="<%=jspContext%>" />
     124    <ext:stylesheets context="<%=jspContext%>" />
    115125    <script language="JavaScript">
    116126    var submitPage = 'index.jsp';
     
    499509          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    500510        />
     511        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     512          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    501513      </tbl:toolbar>
    502514      <tbl:navigator
  • trunk/www/admin/users/view_user.jsp

    r4698 r4886  
    5353  import="net.sf.basedb.util.formatter.Formatter"
    5454  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     55  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     56  import="net.sf.basedb.clients.web.extensions.JspContext"
     57  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     58  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     59  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    5560  import="java.util.Map"
    5661  import="java.util.Date"
     
    6166<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    6267<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     68<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6369<%!
    6470  private static final Item itemType = Item.USER;
     
    8591  final boolean isUsed = isRemoved && user.isUsed();
    8692  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     93  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, user);
     94  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8795  %>
    88 
    8996  <base:page title="<%=title%>">
    9097  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     98    <ext:scripts context="<%=jspContext%>" />
     99    <ext:stylesheets context="<%=jspContext%>" />
    91100    <script language="JavaScript">
    92101    function editItem()
     
    176185        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    177186      />
     187      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     188        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    178189      <tbl:button
    179190        image="help.gif"
Note: See TracChangeset for help on using the changeset viewer.