cancel
Showing results for 
Search instead for 
Did you mean: 

Tabbed PropertySheet component

dhalupa
Champ on-the-rise
Champ on-the-rise
Hi there,

I would like to inform you that there is an extension of PropertySheetControl which enables PropertySheetItems to be renedered in tabs available. The layout itself is configurable through config file. For example, to acheive that cm:content type properties are shown in two distinct tabs you would put the following snippet to your web-client-config-custom file
<config evaluator="node-type" condition="content">      <tab-panels>         <!– tab-panel element also supports attributes label-id and description-id which             should contain localized messages keys –>         <tab-panel id="tab1" label="Test tab1" description="Test tab1">            <!– name attribute should match property or association name of property-sheet component which is matched by enclosing evaluator –>            <property name="name" />            <property name="mimetype" />            <property name="encoding" />         </tab-panel>         <tab-panel id="tab2" label="Test tab2" description="Test tab2">            <property name="title" />            <property name="description" />            <property name="author" />            <property name="size" />         </tab-panel>      </tab-panels>   </config>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
The extension, amp file and small installation guide are hosted on AlfrescoForge ( http://forge.alfresco.com/projects/tabbedpropsheet/ ). Hope that it will be usefull, and any suggestions and help is more than welcome

Kind regards,

Denis
20 REPLIES 20

tcordova
Champ in-the-making
Champ in-the-making
I followed the installation instructions, but I'm now getting the following error every time I try to view document details (I'm on version 2.0.1):

2007-08-21 12:16:03,427 DEBUG [javax.faces.webapp.FacesServlet] service begin2007-08-21 12:16:03,755 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco].[jsp]] Servlet.service() for servlet jsp threw exceptionjava.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils   at hr.virtus.component.property.UITabbedPropertySheet.renderJSLink(UITabbedPropertySheet.java:199)   at hr.virtus.component.property.UITabbedPropertySheet.encodeEnd(UITabbedPropertySheet.java:80)   at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349)   at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:253)   at org.apache.jsp.jsp.dialog.document_002ddetails_jsp._jspx_meth_r_propertySheetGrid_0(org.apache.jsp.jsp.dialog.document_002ddetails_jsp:2206)   at org.apache.jsp.jsp.dialog.document_002ddetails_jsp._jspService(org.apache.jsp.jsp.dialog.document_002ddetails_jsp:763)   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)   at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)   at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)   at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)   at org.alfresco.web.app.servlet.NTLMAuthenticationFilter.doFilter(NTLMAuthenticationFilter.java:327)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)   at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)   at java.lang.Thread.run(Thread.java:595)2007-08-21 12:16:03,755 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exceptionjavax.faces.FacesException: org/apache/commons/lang/StringUtils   at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)   at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)   at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)   at org.alfresco.web.app.servlet.NTLMAuthenticationFilter.doFilter(NTLMAuthenticationFilter.java:327)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)   at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)   at java.lang.Thread.run(Thread.java:595)Caused by: javax.servlet.ServletException: org/apache/commons/lang/StringUtils   at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)   at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)   at org.apache.jsp.jsp.dialog.document_002ddetails_jsp._jspService(org.apache.jsp.jsp.dialog.document_002ddetails_jsp:968)   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)   at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)   … 26 more‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

dhalupa
Champ on-the-rise
Champ on-the-rise
Please, check if there is commons-lang.jar present in WEB-INF/lib directory of web application.

Kind regards,

Denis

tcordova
Champ in-the-making
Champ in-the-making
No, I don't have that file.  Where should I get it?

dhalupa
Champ on-the-rise
Champ on-the-rise
Strange, I think that it should be part of Alfresco distribution. Anyway, you can download it from here

http://commons.apache.org/downloads/download_lang.cgi

Kind regards,

Denis

tcordova
Champ in-the-making
Champ in-the-making
That works great!  nice component.

dhalupa
Champ on-the-rise
Champ on-the-rise
Thanks  Smiley Happy

tcordova
Champ in-the-making
Champ in-the-making
Can you tell me if it's possible to set up a tabbed property sheet that should display for content that has a specific Aspect assigned to it?

dhalupa
Champ on-the-rise
Champ on-the-rise
Sure, just put tab configuration inside of aspect-name evaluator with your particular aspect specified as condition value. Just the same as you would do with property sheet config if you would like to configure property sheet component to show some specific attributes

Kind regards,

Denis

tcordova
Champ in-the-making
Champ in-the-making
Figured it out.

Once again, great component.
Welcome to the new Hyland Connect. Get started or submit feedback.