Changeset 16213
- Timestamp:
- 14/07/08 16:49:21 (1 month ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/intermine/web/main/src/org/intermine/web/struts/BagDetailsController.java
r16212 r16213 26 26 import org.apache.struts.tiles.ComponentContext; 27 27 import org.apache.struts.tiles.actions.TilesAction; 28 import org.intermine.metadata.FieldDescriptor; 28 29 import org.intermine.metadata.Model; 29 30 import org.intermine.objectstore.ObjectStore; … … 66 67 ServletContext servletContext = session.getServletContext(); 67 68 ObjectStore os = (ObjectStore) servletContext.getAttribute(Constants.OBJECTSTORE); 68 69 Map<String, List<FieldDescriptor>> classKeys = getClassKeys(servletContext); 69 70 String bagName = request.getParameter("bagName"); 70 71 Boolean myBag = Boolean.FALSE; … … 185 186 } 186 187 188 request.setAttribute("firstSelectedFields", 189 pagedResults.getFirstSelectedFieldsStrings(os, classKeys)); 190 191 187 192 if (page == -1) { 188 193 // use the page from the URL … … 201 206 return null; 202 207 } 208 209 @SuppressWarnings("unchecked") 210 private static Map<String, List<FieldDescriptor>> getClassKeys(ServletContext servletContext) { 211 return (Map) servletContext.getAttribute(Constants.CLASS_KEYS); 212 } 213 203 214 } 204 215 216
