Changeset 4884


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

References #1271: Add extension points to all toolbars

Added code for displaying extensions to all array lims pages.

Location:
trunk
Files:
22 edited

Legend:

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

    r4882 r4884  
    6363      Item.BIOSOURCE, Item.SAMPLE, Item.EXTRACT,
    6464      Item.LABELEDEXTRACT, Item.LABEL, Item.BIOMATERIALEVENT,
    65       Item.BIOMATERIALLIST, Item.BIOPLATE, Item.BIOWELL
     65      Item.BIOMATERIALLIST, Item.BIOPLATE, Item.BIOWELL,
     66      Item.PLATE, Item.WELL, Item.PLATEEVENT,
     67      Item.PLATETYPE, Item.PLATEEVENTTYPE,
     68      Item.PLATEGEOMETRY, Item.PLATEMAPPING,
     69      Item.ARRAYDESIGN, Item.ARRAYBATCH, Item.ARRAYSLIDE,
     70      Item.FEATURE
    6671    };
    6772
  • trunk/www/lims/arraybatches/list_batches.jsp

    r4698 r4884  
    5656  import="net.sf.basedb.clients.web.util.HTML"
    5757  import="net.sf.basedb.util.formatter.Formatter"
    58   import="net.sf.basedb.clients.web.formatter.FormatterFactory"
    5958  import="net.sf.basedb.util.Values"
    6059  import="net.sf.basedb.util.formatter.Formatter"
    6160  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"
    6266  import="java.util.Date"
    6367  import="java.util.ArrayList"
     
    6872<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    6973<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     74<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7075<%!
    7176  private static final Item itemType = Item.ARRAYBATCH;
     
    109114  }
    110115  int numListed = 0;
     116  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     117  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    111118  %>
    112119  <base:page title="<%=title==null ? "Array batches" : title%>" type="<%=mode.getPageType()%>">
    113120  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     121    <ext:scripts context="<%=jspContext%>" />
     122    <ext:stylesheets context="<%=jspContext%>" />
    114123    <script language="JavaScript">
    115124    var submitPage = 'index.jsp';
     
    412421          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    413422        />
     423        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     424          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    414425      </tbl:toolbar>
    415426      <tbl:navigator
  • trunk/www/lims/arraybatches/view_batch.jsp

    r4746 r4884  
    5858  import="net.sf.basedb.util.formatter.Formatter"
    5959  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     60  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     61  import="net.sf.basedb.clients.web.extensions.JspContext"
     62  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     63  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     64  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6065  import="java.util.Collections"
    6166  import="java.util.Date"
     
    6873<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    6974<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     75<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7076<%!
    7177  private static final Item itemType = Item.ARRAYBATCH;
     
    97103  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    98104  final boolean isOwner = batch.isOwner();
     105  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, batch);
     106  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    99107  %>
    100 
    101108  <base:page title="<%=title%>">
    102109  <base:head scripts="tabcontrol.js,table.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     110    <ext:scripts context="<%=jspContext%>" />
     111    <ext:stylesheets context="<%=jspContext%>" />
    103112    <script language="JavaScript">
    104113    function editItem()
     
    243252        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    244253      />
     254      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     255        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    245256      <tbl:button
    246257        image="help.gif"
  • trunk/www/lims/arraydesigns/features/list_features.jsp

    r4866 r4884  
    6565  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
    6666  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     67  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     68  import="net.sf.basedb.clients.web.extensions.JspContext"
     69  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     70  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     71  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6772  import="java.util.List"
    6873  import="java.util.Map"
     
    7378<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    7479<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     80<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7581<%!
    7682  private static final Item itemType = Item.FEATURE;
     
    131137  }
    132138  int numListed = 0;
     139  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     140  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    133141  %>
    134 <base:page title="<%=title%>">
     142  <base:page title="<%=title%>">
    135143  <base:head scripts="table.js,tabcontrol.js" styles="table.css,headertabcontrol.css,path.css">
     144    <ext:scripts context="<%=jspContext%>" />
     145    <ext:stylesheets context="<%=jspContext%>" />
    136146    <script language="JavaScript">
    137147    var submitPage = 'index.jsp';
     
    541551          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    542552        />
     553        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     554          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    543555      </tbl:toolbar>
    544556      <tbl:navigator
  • trunk/www/lims/arraydesigns/list_designs.jsp

    r4698 r4884  
    6464  import="net.sf.basedb.util.formatter.Formatter"
    6565  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     66  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     67  import="net.sf.basedb.clients.web.extensions.JspContext"
     68  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     69  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     70  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6671  import="java.util.Iterator"
    6772  import="java.util.List"
     
    7176<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    7277<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     78<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7379<%!
    7480  private static final Item itemType = Item.ARRAYDESIGN;
     
    134140  Formatter<Date> dateTimeFormatter = FormatterFactory.getDateTimeFormatter(sc);
    135141  Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc);
     142  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     143  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    136144  %>
    137145  <base:page title="<%=title==null ? "Array designs" : title%>" type="<%=mode.getPageType()%>">
    138146  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     147    <ext:scripts context="<%=jspContext%>" />
     148    <ext:stylesheets context="<%=jspContext%>" />
    139149    <script language="JavaScript">
    140150    var submitPage = 'index.jsp';
     
    506516          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    507517        />
     518        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     519          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    508520      </tbl:toolbar>
    509521      <tbl:navigator
  • trunk/www/lims/arraydesigns/view_design.jsp

    r4746 r4884  
    6363  import="net.sf.basedb.util.Values"
    6464  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     65  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     66  import="net.sf.basedb.clients.web.extensions.JspContext"
     67  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     68  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     69  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6570  import="java.util.Collections"
    6671  import="java.util.Date"
     
    7479<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    7580<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     81<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7682<%!
    7783  private static final Item itemType = Item.ARRAYDESIGN;
     
    115121  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    116122  final boolean isOwner = design.isOwner();
     123  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, design);
     124  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    117125  %>
    118 
    119126  <base:page title="<%=title%>">
    120127  <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     128    <ext:scripts context="<%=jspContext%>" />
     129    <ext:stylesheets context="<%=jspContext%>" />
    121130    <script language="JavaScript">
    122131    function editItem()
     
    272281        visible="<%=writePermission && !design.hasFeatures() && !design.isAffyChip()%>"
    273282      />
     283      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     284        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    274285      <tbl:button
    275286        image="help.gif"
  • trunk/www/lims/arrayslides/list_slides.jsp

    r4698 r4884  
    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"
     
    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.ARRAYSLIDE;
     
    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 ? "Array slides" : 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';
     
    422432          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    423433        />
     434        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     435          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    424436      </tbl:toolbar>
    425437      <tbl:navigator
  • trunk/www/lims/arrayslides/view_slide.jsp

    r4746 r4884  
    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.Collections"
    6065  import="java.util.Date"
     
    6772<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    6873<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     74<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6975<%!
    7076  private static final Item itemType = Item.ARRAYSLIDE;
     
    95101  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    96102  final boolean isOwner = slide.isOwner();
     103  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, slide);
     104  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    97105  %>
    98 
    99106  <base:page title="<%=title%>">
    100107  <base:head scripts="tabcontrol.js,table.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     108    <ext:scripts context="<%=jspContext%>" />
     109    <ext:stylesheets context="<%=jspContext%>" />
    101110    <script language="JavaScript">
    102111    function editItem()
     
    219228        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    220229      />
     230      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     231        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    221232      <tbl:button
    222233        image="help.gif"
  • trunk/www/lims/geometries/list_geometries.jsp

    r4698 r4884  
    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.PLATEGEOMETRY;
     
    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 ? "Plate geometries" : 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';
     
    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/lims/geometries/view_geometry.jsp

    r4698 r4884  
    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"
     
    5661<%@ taglib prefix="tbl" uri="/WEB-INF/table.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.PLATEGEOMETRY;
     
    8288  final boolean isUsed = isRemoved && geometry.isUsed();
    8389  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
     90  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, geometry);
     91  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8492  %>
    85 
    8693  <base:page title="<%=title%>">
    8794  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     95    <ext:scripts context="<%=jspContext%>" />
     96    <ext:stylesheets context="<%=jspContext%>" />
    8897    <script language="JavaScript">
    8998    function editItem()
     
    184193        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    185194      />
     195      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     196        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    186197      <tbl:button
    187198        image="help.gif"
  • trunk/www/lims/platemappings/list_mappings.jsp

    r4711 r4884  
    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"
     
    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.PLATEMAPPING;
     
    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 ? "Plate mappings" : 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';
     
    376386          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    377387        />
     388        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     389          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    378390      </tbl:toolbar>
    379391      <tbl:navigator
  • trunk/www/lims/platemappings/view_mapping.jsp

    r4698 r4884  
    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.Collections"
    5762  import="java.util.Date"
     
    6469<%@ taglib prefix="tbl" uri="/WEB-INF/table.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.PLATEMAPPING;
     
    98104  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    99105  final boolean isOwner = mapping.isOwner();
     106  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, mapping);
     107  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    100108  %>
    101 
    102109  <base:page title="<%=title%>">
    103110  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     111    <ext:scripts context="<%=jspContext%>" />
     112    <ext:stylesheets context="<%=jspContext%>" />
    104113    <script language="JavaScript">
    105114    function editItem()
     
    210219        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    211220      />
     221      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     222        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    212223      <tbl:button
    213224        image="help.gif"
  • trunk/www/lims/plates/events/list_events.jsp

    r4511 r4884  
    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.List"
    5358  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.PLATEEVENT;
     
    9298  }
    9399  int numListed = 0;
     100  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, plate);
     101  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    94102  %>
    95103  <base:page title="<%=title%>" type="<%=mode.getPageType()%>">
    96104  <base:head scripts="table.js,tabcontrol.js" styles="table.css,headertabcontrol.css,path.css">
     105    <ext:scripts context="<%=jspContext%>" />
     106    <ext:stylesheets context="<%=jspContext%>" />
    97107    <script language="JavaScript">
    98108    var submitPage = 'index.jsp';
     
    346356          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    347357        />
     358        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     359          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    348360      </tbl:toolbar>
    349361      <tbl:navigator
  • trunk/www/lims/plates/events/view_event.jsp

    r4511 r4884  
    4444  import="net.sf.basedb.util.formatter.Formatter"
    4545  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     46  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     47  import="net.sf.basedb.clients.web.extensions.JspContext"
     48  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     49  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     50  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    4651  import="java.util.Date"
    4752  import="java.util.Map"
     
    5257<%@ taglib prefix="tbl" uri="/WEB-INF/table.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.PLATEEVENT;
     
    8692  final boolean writePermission = event.hasPermission(Permission.WRITE);
    8793  final boolean deletePermission = event.hasPermission(Permission.DELETE);
     94  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, event);
     95  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8896  %>
    89 
    9097  <base:page title="<%=title%>">
    9198  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     99    <ext:scripts context="<%=jspContext%>" />
     100    <ext:stylesheets context="<%=jspContext%>" />
    92101    <script language="JavaScript">
    93102    function editItem()
     
    158167        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    159168      />
     169      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     170        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    160171      <tbl:button
    161172        image="help.gif"
  • trunk/www/lims/plates/list_plates.jsp

    r4698 r4884  
    6060  import="net.sf.basedb.util.formatter.Formatter"
    6161  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     62  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     63  import="net.sf.basedb.clients.web.extensions.JspContext"
     64  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     65  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     66  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6267  import="java.util.Date"
    6368  import="java.util.Iterator"
     
    6772<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    6873<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     74<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6975<%!
    7076  private static final Item itemType = Item.PLATE;
     
    119125  }
    120126  int numListed = 0;
     127  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     128  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    121129  %>
    122130  <base:page title="<%=title==null ? "Plates" : title%>" type="<%=mode.getPageType()%>">
    123131  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     132    <ext:scripts context="<%=jspContext%>" />
     133    <ext:stylesheets context="<%=jspContext%>" />
    124134    <script language="JavaScript">
    125135    var submitPage = 'index.jsp';
     
    454464          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    455465        />
     466        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     467          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    456468      </tbl:toolbar>
    457469      <tbl:navigator
  • trunk/www/lims/plates/view_plate.jsp

    r4698 r4884  
    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.Collections"
    6065  import="java.util.Date"
     
    6772<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    6873<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     74<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6975<%!
    7076  private static final Item itemType = Item.PLATE;
     
    103109  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    104110  final boolean isOwner = plate.isOwner();
     111  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, plate);
     112  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    105113  %>
    106114  <base:page title="<%=title%>">
    107115  <base:head scripts="tabcontrol.js,table.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     116    <ext:scripts context="<%=jspContext%>" />
     117    <ext:stylesheets context="<%=jspContext%>" />
    108118    <script language="JavaScript">
    109119    function editItem()
     
    237247        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    238248      />
     249      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     250        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    239251      <tbl:button
    240252        image="help.gif"
  • trunk/www/lims/plates/wells/list_wells.jsp

    r4866 r4884  
    6060  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
    6161  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     62  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     63  import="net.sf.basedb.clients.web.extensions.JspContext"
     64  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     65  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     66  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6267  import="java.util.ArrayList"
    6368  import="java.util.List"
     
    6974<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    7075<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     76<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7177<%!
    7278  private static final Item itemType = Item.WELL;
     
    122128  }
    123129  int numListed = 0;
     130  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, plate);
     131  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    124132  %>
    125133  <base:page title="<%=title%>" type="<%=mode.getPageType()%>">
    126134  <base:head scripts="table.js,tabcontrol.js" styles="table.css,headertabcontrol.css,path.css">
     135    <ext:scripts context="<%=jspContext%>" />
     136    <ext:stylesheets context="<%=jspContext%>" />
    127137    <script language="JavaScript">
    128138    var submitPage = 'index.jsp';
     
    444454          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    445455        />
     456        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     457          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    446458      </tbl:toolbar>
    447459      <tbl:navigator
  • trunk/www/lims/plates/wells/view_well.jsp

    r4860 r4884  
    4848  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
    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"
     
    5762<%@ taglib prefix="tbl" uri="/WEB-INF/table.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.WELL;
     
    109115  final boolean writePermission = well.hasPermission(Permission.WRITE);
    110116  final boolean deletePermission = well.hasPermission(Permission.DELETE);
     117  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, well);
     118  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    111119  %>
    112 
    113120  <base:page title="<%=title%>">
    114121  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     122    <ext:scripts context="<%=jspContext%>" />
     123    <ext:stylesheets context="<%=jspContext%>" />
    115124    <script language="JavaScript">
    116125    function editItem()
     
    167176        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    168177      />
     178      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     179        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    169180      <tbl:button
    170181        image="help.gif"
  • trunk/www/lims/platetypes/eventtypes/list_eventtypes.jsp

    r4511 r4884  
    4747  import="net.sf.basedb.clients.web.util.HTML"
    4848  import="net.sf.basedb.util.Values"
     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.List"
    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.PLATEEVENTTYPE;
     
    8793  }
    8894  int numListed = 0;
     95  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, plateType);
     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">
     100    <ext:scripts context="<%=jspContext%>" />
     101    <ext:stylesheets context="<%=jspContext%>" />
    92102    <script language="JavaScript">
    93103    var submitPage = 'index.jsp';
     
    300310          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    301311        />
     312        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     313          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    302314      </tbl:toolbar>
    303315      <tbl:navigator
  • trunk/www/lims/platetypes/eventtypes/view_eventtype.jsp

    r4511 r4884  
    4242  import="net.sf.basedb.clients.web.util.HTML"
    4343  import="net.sf.basedb.util.Values"
     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"
     
    5055<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    5156<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     57<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5258<%!
    5359  private static final Item itemType = Item.PLATEEVENTTYPE;
     
    8389  final boolean writePermission = eventType.hasPermission(Permission.WRITE);
    8490  final boolean deletePermission = eventType.hasPermission(Permission.DELETE);
     91  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, eventType);
     92  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8593  %>
    86 
    8794  <base:page title="<%=title%>">
    8895  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
     96    <ext:scripts context="<%=jspContext%>" />
     97    <ext:stylesheets context="<%=jspContext%>" />
    8998    <script language="JavaScript">
    9099    function editItem()
     
    155164        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    156165      />
     166      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     167        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    157168        <tbl:button
    158169          image="help.gif"
  • trunk/www/lims/platetypes/list_platetypes.jsp

    r4698 r4884  
    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.Date"
    6065  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.PLATETYPE;
     
    104110  }
    105111  int numListed = 0;
     112  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     113  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    106114  %>
    107115  <base:page title="<%=title==null ? "Plate types" : title%>" type="<%=mode.getPageType()%>">
    108116  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     117    <ext:scripts context="<%=jspContext%>" />
     118    <ext:stylesheets context="<%=jspContext%>" />
    109119    <script language="JavaScript">
    110120    var submitPage = 'index.jsp';
     
    356366          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    357367        />
     368        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     369          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    358370      </tbl:toolbar>
    359371      <tbl:navigator
  • trunk/www/lims/platetypes/view_platetype.jsp

    r4698 r4884  
    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.Collections"
    5762  import="java.util.Date"
     
    6469<%@ taglib prefix="p" uri="/WEB-INF/path.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.PLATETYPE;
     
    9298  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    9399  final boolean isOwner = plateType.isOwner();
     100  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, plateType);
     101  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    94102  %>
    95 
    96103  <base:page title="<%=title%>">
    97104  <base:head scripts="table.js,tabcontrol.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
     105    <ext:scripts context="<%=jspContext%>" />
     106    <ext:stylesheets context="<%=jspContext%>" />
    98107    <script language="JavaScript">
    99108    function editItem()
     
    220229          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    221230        />
     231        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     232          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    222233        <tbl:button
    223234          image="help.gif"
Note: See TracChangeset for help on using the changeset viewer.