Changeset 7761 for trunk/www/common/anytoany/list_anytoany.jsp
- Timestamp:
- Nov 27, 2019, 3:23:27 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/common/anytoany/list_anytoany.jsp
r7604 r7761 53 53 import="net.sf.basedb.clients.web.extensions.list.ListColumnAction" 54 54 import="net.sf.basedb.clients.web.extensions.list.ListColumnUtil" 55 import="net.sf.basedb.clients.web.extensions.fileviewer.FileViewerContext" 56 import="net.sf.basedb.clients.web.extensions.fileviewer.FileViewerUtil" 55 57 import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer" 56 58 import="java.util.List" … … 84 86 ExtensionsInvoker<ButtonAction> invoker = ToolbarUtil.useExtensions(jspContext); 85 87 ExtensionsInvoker<ListColumnAction<AnyToAny,?>> columnsInvoker = ListColumnUtil.useExtensions(jspContext); 88 FileViewerContext fileContext = FileViewerContext.anyToAny(item); 89 FileViewerUtil fileViewer = new FileViewerUtil(jspContext, fileContext); 86 90 %> 87 91 <base:page type="include"> 88 92 <base:head scripts="/common/anytoany/list.js" /> 89 93 <base:body> 94 <ext:scripts context="<%=jspContext%>" /> 90 95 <base:section 91 96 id="anytoany" … … 179 184 180 185 String toLink = ""; 181 if (to instanceof File) 182 { 183 File toFile = (File)to; 184 toLink = Base.getLinkedFile(ID, toFile, false, true, true, root); 185 } 186 else if (to instanceof Nameable) 186 if (to instanceof Nameable) 187 187 { 188 188 Nameable nameable = (Nameable)to; … … 204 204 { 205 205 toLink = Base.getLink(ID, to.toString(), to.getType(), to.getId(), true); 206 } 207 if (to instanceof File) 208 { 209 File toFile = (File)to; 210 fileContext.setCurrentAnyToAny(toFile, ata); 211 toLink += " " + fileViewer.renderAsString(); 206 212 } 207 213 if (to instanceof Subtypable)
Note: See TracChangeset
for help on using the changeset viewer.