Changeset 4882


Ignore:
Timestamp:
Apr 3, 2009, 12:53:42 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

References #1271: Add extension points to all toolbars

Added code for displaying extensions to all biomaterial pages.

Location:
trunk
Files:
19 edited

Legend:

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

    r4879 r4882  
    6060      Item.RAWBIOASSAY, Item.RAWDATA, Item.FORMULA,
    6161      Item.REPORTER, Item.REPORTERLIST, Item.REPORTERSCORE,
    62       Item.SCAN, Item.IMAGE, Item.HYBRIDIZATION
     62      Item.SCAN, Item.IMAGE, Item.HYBRIDIZATION,
     63      Item.BIOSOURCE, Item.SAMPLE, Item.EXTRACT,
     64      Item.LABELEDEXTRACT, Item.LABEL, Item.BIOMATERIALEVENT,
     65      Item.BIOMATERIALLIST, Item.BIOPLATE, Item.BIOWELL
    6366    };
    6467
  • trunk/www/biomaterials/bioplates/list_bioplates.jsp

    r4732 r4882  
    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="net.sf.basedb.util.Values"
    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.BIOPLATE;
     
    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 ? "Bioplates" : 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';
     
    390400          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    391401        />
     402        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     403          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    392404      </tbl:toolbar>
    393405      <tbl:navigator
  • trunk/www/biomaterials/bioplates/view_bioplate.jsp

    r4864 r4882  
    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.Collections"
    5661  import="java.util.Date"
     
    6368<%@ taglib prefix="tbl" uri="/WEB-INF/table.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.BIOPLATE;
     
    9096  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    9197  final boolean isOwner = bioplate.isOwner();
     98  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, bioplate);
     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()
     
    216226        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    217227      />
     228      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     229        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    218230      <tbl:button
    219231        image="help.gif"
  • trunk/www/biomaterials/bioplates/wells/list_biowells.jsp

    r4869 r4882  
    5555  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
    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"
     
    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.BIOWELL;
     
    113119  }
    114120  int numListed = 0;
     121  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, bioplate);
     122  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    115123  %>
    116124  <base:page title="<%=title%>" type="<%=mode.getPageType()%>">
    117125  <base:head scripts="table.js,tabcontrol.js" styles="table.css,headertabcontrol.css,path.css">
     126    <ext:scripts context="<%=jspContext%>" />
     127    <ext:stylesheets context="<%=jspContext%>" />
    118128    <script language="JavaScript">
    119129    var submitPage = 'index.jsp';
     
    315325          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    316326        />
     327        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     328          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    317329      </tbl:toolbar>
    318330      <tbl:navigator
  • trunk/www/biomaterials/biosources/list_biosources.jsp

    r4728 r4882  
    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="net.sf.basedb.util.Values"
    5964  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.BIOSOURCE;
     
    103109  int numListed = 0;
    104110  Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc);
     111  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     112  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    105113  %>
    106114  <base:page title="<%=title==null ? "Biosources" : 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';
     
    405415          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    406416        />
     417        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     418          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    407419      </tbl:toolbar>
    408420      <tbl:navigator
  • trunk/www/biomaterials/biosources/view_biosource.jsp

    r4746 r4882  
    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.BIOSOURCE;
     
    96102  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    97103  final boolean isOwner = bioSource.isOwner();
     104  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, bioSource);
     105  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    98106  %>
    99 
    100107  <base:page title="<%=title%>">
    101108  <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     109    <ext:scripts context="<%=jspContext%>" />
     110    <ext:stylesheets context="<%=jspContext%>" />
    102111    <script language="JavaScript">
    103112    function editItem()
     
    232241        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    233242      />
     243      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     244        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    234245      <tbl:button
    235246        image="help.gif"
  • trunk/www/biomaterials/events/list_events.jsp

    r4746 r4882  
    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.List"
    5661  import="java.util.Map"
     
    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.BIOMATERIALEVENT;
     
    130136  int numListed = 0;
    131137  Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc);
     138  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, bioMaterial);
     139  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    132140  %>
    133141  <base:page title="<%=title%>" type="<%=mode.getPageType()%>">
    134142  <base:head scripts="table.js,tabcontrol.js" styles="table.css,headertabcontrol.css,path.css">
     143    <ext:scripts context="<%=jspContext%>" />
     144    <ext:stylesheets context="<%=jspContext%>" />
    135145    <script language="JavaScript">
    136146    var submitPage = 'index.jsp';
     
    387397          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    388398        />
     399        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     400          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    389401      </tbl:toolbar>
    390402      <tbl:navigator
  • trunk/www/biomaterials/events/view_event.jsp

    r4510 r4882  
    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.Map"
     
    5863<%@ taglib prefix="tbl" uri="/WEB-INF/table.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.BIOMATERIALEVENT;
     
    101107  final boolean writePermission = event.hasPermission(Permission.WRITE) && eventType == BioMaterialEvent.Type.OTHER;
    102108  final boolean deletePermission = event.hasPermission(Permission.DELETE);
     109  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, event);
     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()
     
    173182        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    174183      />
     184      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     185        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    175186      </tbl:toolbar>
    176187     
  • trunk/www/biomaterials/extracts/list_extracts.jsp

    r4869 r4882  
    6666  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
    6767  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     68  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     69  import="net.sf.basedb.clients.web.extensions.JspContext"
     70  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     71  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     72  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6873  import="net.sf.basedb.util.Values"
    6974  import="java.util.Iterator"
     
    7479<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    7580<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     81<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7682<%!
    7783  private static final Item itemType = Item.EXTRACT;
     
    126132    wellRows.add(Integer.toString(r), rowFormatter.format(r));
    127133  }
    128  
     134  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     135  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    129136  %>
    130137  <base:page title="<%=title==null ? "Extracts" : title%>" type="<%=mode.getPageType()%>">
    131138  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     139    <ext:scripts context="<%=jspContext%>" />
     140    <ext:stylesheets context="<%=jspContext%>" />
    132141    <script language="JavaScript">
    133142    var submitPage = 'index.jsp';
     
    533542          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    534543        />
     544        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     545          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    535546      </tbl:toolbar>
    536547      <tbl:navigator
  • trunk/www/biomaterials/extracts/view_extract.jsp

    r4869 r4882  
    6262  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
    6363  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     64  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     65  import="net.sf.basedb.clients.web.extensions.JspContext"
     66  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     67  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     68  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6469  import="java.util.ArrayList"
    6570  import="java.util.Collections"
     
    7378<%@ taglib prefix="tbl" uri="/WEB-INF/table.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.EXTRACT;
     
    106112  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    107113  final boolean isOwner = extract.isOwner(); 
     114  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, extract);
     115  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    108116  %>
    109 
    110117  <base:page title="<%=title%>">
    111118  <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     119    <ext:scripts context="<%=jspContext%>" />
     120    <ext:stylesheets context="<%=jspContext%>" />
    112121    <script language="JavaScript">
    113122    function editItem()
     
    250259        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    251260      />
     261      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     262        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    252263      <tbl:button
    253264        image="help.gif"
  • trunk/www/biomaterials/labeledextracts/list_labeledextracts.jsp

    r4869 r4882  
    6666  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
    6767  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     68  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     69  import="net.sf.basedb.clients.web.extensions.JspContext"
     70  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     71  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     72  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6873  import="net.sf.basedb.util.Values"
    6974  import="java.util.Iterator"
     
    7479<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    7580<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     81<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7682<%!
    7783  private static final Item itemType = Item.LABELEDEXTRACT;
     
    110116  int numListed = 0;
    111117  Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc);
    112  
    113118  WellCoordinateFormatter rowFormatter = new WellCoordinateFormatter(true);
    114119  WellCoordinateFormatter columnFormatter = new WellCoordinateFormatter(false);
     
    123128    wellRows.add(Integer.toString(r), rowFormatter.format(r));
    124129  }
     130  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     131  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    125132  %>
    126133  <base:page title="<%=title==null ? "Labeled extract" : title%>" type="<%=mode.getPageType()%>">
    127134  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     135    <ext:scripts context="<%=jspContext%>" />
     136    <ext:stylesheets context="<%=jspContext%>" />
    128137    <script language="JavaScript">
    129138    var submitPage = 'index.jsp';
     
    548557          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    549558        />
     559        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     560          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    550561      </tbl:toolbar>
    551562      <tbl:navigator
  • trunk/www/biomaterials/labeledextracts/view_labeledextract.jsp

    r4869 r4882  
    6161  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
    6262  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     63  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     64  import="net.sf.basedb.clients.web.extensions.JspContext"
     65  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     66  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     67  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6368  import="java.util.ArrayList"
    6469  import="java.util.Collections"
     
    7277<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
    7378<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     79<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7480<%!
    7581  private static final Item itemType = Item.LABELEDEXTRACT;
     
    105111  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    106112  final boolean isOwner = extract.isOwner();
     113  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, extract);
     114  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    107115  %>
    108 
    109116  <base:page title="<%=title%>">
    110117  <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     118    <ext:scripts context="<%=jspContext%>" />
     119    <ext:stylesheets context="<%=jspContext%>" />
    111120    <script language="JavaScript">
    112121    function editItem()
     
    249258        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    250259      />
     260      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     261        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    251262      <tbl:button
    252263        image="help.gif"
  • trunk/www/biomaterials/labels/list_labels.jsp

    r4698 r4882  
    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.Iterator"
     
    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.LABEL;
     
    8591  }
    8692  int numListed = 0;
     93  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     94  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8795  %>
    8896  <base:page title="<%=title==null ? "Labels" : title%>" type="<%=mode.getPageType()%>">
    8997  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     98    <ext:scripts context="<%=jspContext%>" />
     99    <ext:stylesheets context="<%=jspContext%>" />
    90100    <script language="JavaScript">
    91101    var submitPage = 'index.jsp';
     
    318328          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    319329        />
     330        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     331          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    320332      </tbl:toolbar>
    321333      <tbl:navigator
  • trunk/www/biomaterials/labels/view_label.jsp

    r4698 r4882  
    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.Date"
    5661  import="java.util.Collections"
     
    6267<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    6368<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     69<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6470<%!
    6571  private static final Item itemType = Item.LABEL;
     
    9096  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    9197  final boolean isOwner = label.isOwner();
     98  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, label);
     99  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    92100  %>
    93101  <base:page title="<%=title%>">
    94102  <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     103    <ext:scripts context="<%=jspContext%>" />
     104    <ext:stylesheets context="<%=jspContext%>" />
    95105    <script language="JavaScript">
    96106    function editItem()
     
    212222        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    213223      />
     224      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     225        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    214226      <tbl:button
    215227        image="help.gif"
  • trunk/www/biomaterials/lists/list_lists.jsp

    r4705 r4882  
    4646  import="net.sf.basedb.util.ShareableUtil"
    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.Iterator"
    4954  import="java.util.List"
     
    5257<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    5358<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     59<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    5460<%!
    5561  private static final Item itemType = Item.BIOMATERIALLIST;
     
    8995  }
    9096  int numListed = 0;
     97  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     98  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    9199  %>
    92100  <base:page title="<%=title==null ? "Biomaterial lists" : title%>" type="<%=mode.getPageType()%>">
    93101  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     102    <ext:scripts context="<%=jspContext%>" />
     103    <ext:stylesheets context="<%=jspContext%>" />
    94104    <script language="JavaScript">
    95105    var submitPage = 'index.jsp';
     
    337347          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    338348        />
     349        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     350          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    339351      </tbl:toolbar>
    340352      <tbl:navigator
  • trunk/www/biomaterials/lists/members/list_members.jsp

    r4681 r4882  
    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.Date"
    5661  import="java.util.Map"
     
    6267<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
    6368<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
     69<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    6470<%
    6571final int bioMaterialListId = Values.getInt(request.getParameter("list_id"));
     
    98104  int numListed = 0;
    99105  Formatter<Date> dateFormatter = FormatterFactory.getDateTimeFormatter(sc);
     106  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, list);
     107  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    100108  %>
    101  
    102109  <base:page title="<%=title%>" type="<%=mode.getPageType()%>">
    103110  <base:head scripts="table.js,tabcontrol.js" styles="table.css,headertabcontrol.css,path.css">
     111    <ext:scripts context="<%=jspContext%>" />
     112    <ext:stylesheets context="<%=jspContext%>" />
    104113    <script language="JavaScript">
    105114    var submitPage = 'index.jsp';
     
    413422          visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    414423        />
     424        <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     425          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    415426      </tbl:toolbar>
    416427      <tbl:navigator
  • trunk/www/biomaterials/lists/view_list.jsp

    r4705 r4882  
    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.Collections"
    5257  import="java.util.Map"
     
    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.BIOMATERIALLIST;
     
    8591  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    8692  final boolean isOwner = list.isOwner();
     93  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, list);
     94  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    8795  %>
    8896  <base:page title="<%=title%>">
    8997  <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     98    <ext:scripts context="<%=jspContext%>" />
     99    <ext:stylesheets context="<%=jspContext%>" />
    90100    <script language="JavaScript">
    91101    function editItem()
     
    236246        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    237247      />
     248      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     249        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    238250      <tbl:button
    239251        image="help.gif"
  • trunk/www/biomaterials/samples/list_samples.jsp

    r4869 r4882  
    6767  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
    6868  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
     69  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     70  import="net.sf.basedb.clients.web.extensions.JspContext"
     71  import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
     72  import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
     73  import="net.sf.basedb.util.extensions.ExtensionsInvoker"
    6974  import="java.util.Iterator"
    7075  import="java.util.List"
     
    7479<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    7580<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
     81<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
    7682<%!
    7783  private static final Item itemType = Item.SAMPLE;
     
    126132    wellRows.add(Integer.toString(r), rowFormatter.format(r));
    127133  }
     134  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, null);
     135  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    128136  %>
    129137  <base:page title="<%=title==null ? "Samples" : title%>" type="<%=mode.getPageType()%>">
    130138  <base:head scripts="menu.js,table.js" styles="menu.css,table.css">
     139    <ext:scripts context="<%=jspContext%>" />
     140    <ext:stylesheets context="<%=jspContext%>" />
    131141    <script language="JavaScript">
    132142    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/biomaterials/samples/view_sample.jsp

    r4869 r4882  
    5959  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
    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.ArrayList"
    6267  import="java.util.Collections"
     
    7075<%@ taglib prefix="tbl" uri="/WEB-INF/table.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.SAMPLE;
     
    103109  final boolean deletePermanentlyPermission = deletePermission && !isUsed;
    104110  final boolean isOwner = sample.isOwner();
     111  JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, sample);
     112  ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext);
    105113  %>
    106 
    107114  <base:page title="<%=title%>">
    108115  <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">
     116    <ext:scripts context="<%=jspContext%>" />
     117    <ext:stylesheets context="<%=jspContext%>" />
    109118    <script language="JavaScript">
    110119    function editItem()
     
    247256        visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    248257      /> 
     258      <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     259        wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    249260      <tbl:button
    250261        image="help.gif"
Note: See TracChangeset for help on using the changeset viewer.