09-25-2007 06:13 PM
11-27-2007 04:44 AM
try
{
Class clazz = Class.forName(getEvaluatorClassName());
objEvaluator = clazz.newInstance();
}
catch (Throwable err)
{
throw new AlfrescoRuntimeException("Unable to construct action evaluator: " + getEvaluatorClassName());
}
11-27-2007 10:27 AM
11-27-2007 10:35 AM
<% new org.alfresco.web.action.evaluator.SciRCFolderIsReview(); %>
Then browse any folder. If it throws an exception, post it there. Otherwise the truth is somewhere else :evil:
11-27-2007 10:51 AM
javax.faces.FacesException: Unable to compile class for JSP:
An error occurred at line: 463 in the jsp file: /jsp/browse/browse.jsp
org.alfresco.web.action.evaluator.SciRCFolderIsReview cannot be resolved to a type
460: <h:outputText id="col13-2-txt" value='#{r["gc:status"]}' />
461: </a:column>
462:
463: <% new org.alfresco.web.action.evaluator.SciRCFolderIsReview(); %>
464:
465: <%– Path column for search mode in details view mode –%>
466: <a:column id="col14" style="text-align:left" rendered="#{NavigationBean.searchContext != null && BrowseBean.browseViewMode == 'details'}">
Stacktrace:
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 463 in the jsp file: /jsp/browse/browse.jsp
org.alfresco.web.action.evaluator.SciRCFolderIsReview cannot be resolved to a type
460: <h:outputText id="col13-2-txt" value='#{r["gc:status"]}' />
461: </a:column>
462:
463: <% new org.alfresco.web.action.evaluator.SciRCFolderIsReview(); %>
464:
465: <%– Path column for search mode in details view mode –%>
466: <a:column id="col14" style="text-align:left" rendered="#{NavigationBean.searchContext != null && BrowseBean.browseViewMode == 'details'}">
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
… 21 more
11-27-2007 11:35 AM
jar -tvf /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/lib/you_jar.jar
(the jar utility is in the bin dir of your JDK) ?
11-30-2007 09:41 AM
Company Home
Scirola Reader Content
Data Store
Outbound
Ready for Review
Maricopa Content
Data Store
Outbound
Ready for Review
package org.alfresco.web.action.evaluator;
import org.alfresco.web.action.ActionEvaluator;
import org.alfresco.web.bean.repository.Node;
public class SciRCFolderIsReview implements ActionEvaluator
{
public boolean evaluate(Node node)
{
return (node.getPath().contains("Ready for Review"));
}
}
But it's failing on the spaces in "Ready for Review". And it's failing when I try a more complete path, so as to restrict the menu option to just the Ready for Review folder within Maricopa Content.11-30-2007 01:32 PM
System.out.println(node.getPath());
If I'm right, I suspect you will see that the space characters get converted to underscores (or something else possibly) in the path returned…03-19-2008 05:54 AM
03-19-2008 02:13 PM
03-20-2008 06:12 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.