cancel
Showing results for 
Search instead for 
Did you mean: 

SpaceSelector and ContentSelector

turgayz
Champ in-the-making
Champ in-the-making
Hi,
I have 2 questions regarding selecting nodes in the repository in the GUI:
1) As far as I could see, it is not possible to mark a r:spaceSelector as "required=true". Is there a way to do that?
2) I want the user select a node in the repository, and then I will use that input to set a property of a new node. I am trying to use r:contentSelector for this. Is this the best choice, or is there any other way?
3 REPLIES 3

gavinc
Champ in-the-making
Champ in-the-making
Hi,

1) You can't do required=true on the component but you could check with JavaScript, each spaceSelector component will output a hidden field with the current selection so you can use that to enable/disable the OK/Finish button.

2) r:contentSelector is the onr choice for this. Another way would be to setup an association on your type to cm:content and re-use the assoication editor components. However, both give you a search only approach to finding content. Hopefully this, and the other selectors will be improved in the next release!

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi, I need a little help to use the spaceSelector tag.
I put the repo.tld & web-client.jar files in the WEB-INF & WEB-INF\lib folders of a web app; and modify the web.xml to include the location of the repo.tld tag lib… and when I call the page from the browser I get the exception "Object 'org.alfresco.faces.SpaceSelector' not found"… I'm missing something??… You can see the stacktrace ahead

Thanks in advance,

Juan C. Garcia

javax.faces.FacesException: Error de expresi?n: Object llamado: 'org.alfresco.faces.SpaceSelector' no se encuentra.
   com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:360)
   javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1003)
   javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1026)
   javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:741)
   javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:431)
   org.apache.jsp.jsp.inicio_jsp._jspx_meth_r_spaceSelector_0(inicio_jsp.java:401)
   org.apache.jsp.jsp.inicio_jsp._jspx_meth_s_form_0(inicio_jsp.java:367)
   org.apache.jsp.jsp.inicio_jsp._jspService(inicio_jsp.java:145)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
   org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
   org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
   java.security.AccessController.doPrivileged(Native Method)
   java.security.AccessController.doPrivileged(Native Method)
   com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
   com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
   org.apache.struts.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
   com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
   com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
   com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
   sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
   org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
   org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

gavinc
Champ in-the-making
Champ in-the-making
You'll also need to include the faces-config-**.xml files, particularly faces-config-repo.xml
Getting started

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.