Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Hari Krishnan R
Document Library Sorting.
31 de marzo de 2009 5:53
Respuesta

Hari Krishnan R

Ranking: Junior Member

Mensajes: 60

Fecha de incorporación: 16 de diciembre de 2008

Mensajes recientes

Hi liferay guys,

i need to make a sorting for document library how can do this..

any body help me very urgent....


thanks in advance...
Victor Zorin
RE: Document Library Sorting.
31 de marzo de 2009 19:15
Respuesta

Victor Zorin

Ranking: Liferay Legend

Mensajes: 1178

Fecha de incorporación: 14 de abril de 2008

Mensajes recientes

Currently documents are lined up by their title. Not much else can be done out of box, unless you override the default behavior.
These are the files to look at:
- ROOT/html/portlet/document_library/view.jsp
- com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl, method getFileEntriesAndShortcuts(...), in portal-impl pack
- com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinderImpl, method findByFolderIds(...), in portal-impl pack
- portal-impl/src/custom-sql/documentlibrary.xml, sql id="com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder.findByFolderIds", in portal-impl pack
delang j
RE: Document Library Sorting.
12 de noviembre de 2009 1:04
Respuesta

delang j

Ranking: Regular Member

Mensajes: 249

Fecha de incorporación: 13 de julio de 2008

Mensajes recientes

hi victor,

i tried with re-build service document library portlet after changing 'order by' to service.xml:
1        <order by="desc">
2            <order-column name="createDate" />
3        </order>


to make latest uploaded file on top. build succuessful when i 'ant deploy' and restart tomcat, it give me error.

  1SEVERE: Error listenerStart
  2Nov 12, 2009 8:45:14 AM org.apache.catalina.core.StandardContext start
  3SEVERE: Context [] startup failed due to previous errors
  4Nov 12, 2009 8:45:14 AM org.apache.catalina.loader.WebappClassLoader loadClass
  5INFO: Illegal access: this web application instance has been stopped already.  Could not load org.apache.commons.logging.impl.LogFactoryImpl
  6.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread whic
  7h caused the illegal access, and has no functional impact.
  8java.lang.IllegalStateException
  9        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1246)
 10        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
 11        at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1131)
 12        at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:1065)
 13        at java.security.AccessController.doPrivileged(Native Method)
 14        at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:1062)
 15        at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:650)
 16        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:704)
 17        at com.liferay.portal.log.CommonsLogFactoryImpl.getLog(CommonsLogFactoryImpl.java:41)
 18        at com.liferay.portal.kernel.log.LogFactoryWrapper.getLog(LogFactoryWrapper.java:78)
 19        at com.liferay.portal.kernel.log.LogFactoryWrapper.getLog(LogFactoryWrapper.java:66)
 20        at com.liferay.portal.kernel.log.LogFactoryUtil.getLog(LogFactoryUtil.java:42)
 21        at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.<clinit>(PortalClassLoaderFilter.java:110)
 22        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 23        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 24        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 25        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 26        at java.lang.Class.newInstance0(Class.java:355)
 27        at java.lang.Class.newInstance(Class.java:308)
 28        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255)
 29        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
 30        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
 31        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
 32        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
 33        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 34        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 35        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 36        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
 37        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
 38        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
 39        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
 40        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 41        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 42        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 43        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
 44        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 45        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 46        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
 47        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 48        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
 49        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 50        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 51        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 52        at java.lang.reflect.Method.invoke(Method.java:597)
 53        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 54        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 55Nov 12, 2009 8:45:14 AM org.apache.catalina.loader.WebappClassLoader loadClass
 56INFO: Illegal access: this web application instance has been stopped already.  Could not load org.apache.commons.logging.impl.LogFactoryImpl
 57$3.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread wh
 58ich caused the illegal access, and has no functional impact.
 59java.lang.IllegalStateException
 60        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1246)
 61        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
 62        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
 63        at org.apache.commons.logging.impl.LogFactoryImpl.getParentClassLoader(LogFactoryImpl.java:700)
 64        at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1187)
 65        at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
 66        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
 67        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
 68        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:704)
 69        at com.liferay.portal.log.CommonsLogFactoryImpl.getLog(CommonsLogFactoryImpl.java:41)
 70        at com.liferay.portal.kernel.log.LogFactoryWrapper.getLog(LogFactoryWrapper.java:78)
 71        at com.liferay.portal.kernel.log.LogFactoryWrapper.getLog(LogFactoryWrapper.java:66)
 72        at com.liferay.portal.kernel.log.LogFactoryUtil.getLog(LogFactoryUtil.java:42)
 73        at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.<clinit>(PortalClassLoaderFilter.java:110)
 74        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 75        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 76        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 77        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 78        at java.lang.Class.newInstance0(Class.java:355)
 79        at java.lang.Class.newInstance(Class.java:308)
 80        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255)
 81        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
 82        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
 83        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
 84        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
 85        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 86        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 87        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 88        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
 89        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
 90        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
 91        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
 92        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 93        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 94        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 95        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
 96        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 97        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 98        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
 99        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
100        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
101        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
102        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
103        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
104        at java.lang.reflect.Method.invoke(Method.java:597)
105        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
106        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)


am i miss something because i do the same thing on image gallery portlet. btw i use LR511.