As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<config evaluator="node-type" condition="custom:type"> <forms> <default-controls> <type name="text" template="Meu_Tipo_Customizado_de_Renderizador.ftl" /> </default-controls> <form> <edit-form template="/2-column-edit-form.ftl" /> <field-visibility> <show id="kb:articletype" /> <show id="kb:status" for-mode="view" /> </field-visibility> <appearance> <field id="kb:articletype" label="Article Type" description="Knowledge Base Article Type" /> <field id="kb:status" label="Status" description="Approval Status" /> </appearance> </form> </forms> </config>
<type name="stt:incidencia"> <title>Incidencia</title> <parent>cm:content</parent> <properties> <property name="stt:produto"> <title>Produtos</title> <type>d:text</type> <constraints> <constraint ref="stt:CtProdutos" /> </constraints> </property> <property name="stt:incidencia_estado"> <title>Estado</title> <type>d:text</type> </property> </properties> </type>
produtoList > dl:dataListItem produtoNome - d:text produtoDesc - d:text produtoSigla - d:text
http://localhost:8080/alfresco/faces/jsp/admin/node-browser.jsp
ApplicationContext ctx = FacesContextUtils.getWebApplicationContext(FacesContext.getCurrentInstance()); SearchService ss = (SearchService) ctx.getBean("searchService");
<bean id="ListOfFamiliasQueryConstraint" class="package.ListOfValuesConstraintCustomizada"> <property name="nodeService" ref="NodeService" /> //was before nodeService <property name="searchService" ref="SearchService" /> </bean>
private void loadFamilias() { if(count > 1){ super.setAllowedValues(getSearchResult()); }else{ List<String> valores = new ArrayList<String>(); valores.add("Inicializando"); valores.add("Inicializando II"); super.setAllowedValues(valores); count ++; } }