<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 ++;
}
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.