Aspect resolution problem

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2012 03:56 PM
Hi all,
Please, I need your help with one model I've been defining in alfresco Community 3.4d.
After deploying and restarting the server all seems to be OK, but while trying using the custom aspect as a business rule I found the following warning in catalina.out log:
and cannot see the aspect in the web client drop-down aspect menu.
These are the files involved in the model definition I have used:
uniModel.xml:
uni-model-context.xml:
web-client-config-custom.xml:
Looking forward your responses
Thanks in advance.
Please, I need your help with one model I've been defining in alfresco Community 3.4d.
After deploying and restarting the server all seems to be OK, but while trying using the custom aspect as a business rule I found the following warning in catalina.out log:
11:58:39,994 User:admin WARN [bean.actions.BaseActionWizard] Failed to resolve aspect 'uni:detallesSolicitante'
and cannot see the aspect in the web client drop-down aspect menu.
These are the files involved in the model definition I have used:
uniModel.xml:
<?xml version="1.0" encoding="UTF-8"?><!– definition of new model –><model name="uni:unimodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Metadata about the model –> <description>Constancia de Egresado</description> <author>autor</author> <version>1.0</version> <!– Imports are required to allow references to definitions in other models –> <imports> <!– Import Alfresco Dictionary Definitions –> <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/> <!– Import Alfresco Content Domain Model Definitions –> <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/> <import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/> </imports> <!– Define the URI and Prefix for this content model –> <namespaces> <namespace uri="http://www.uni.org/model/content/1.0" prefix="uni"/> </namespaces> <constraints> <constraint name="uni:listaEspecialidades" type="LIST"> <parameter name="allowedValues"> <list> <value>Arquitectura</value> <value>Física</value> <value>Matemática</value> <value>Química</value> <value>Ingeniería Física</value> <value>Ciencia de la Computación</value> <value>Ingeniería Sanitaria</value> <value>Ingeniería de Higiene y Seguridad industrial</value> <value>Ingeniería Civil</value> <value>Ingeniería Económica</value> <value>Ingeniería Estadística</value> <value>Ingeniería Eléctrica</value> <value>Ingeniería Electrónica</value> <value>Ingeniería de Telecomunicaciones</value> <value>Ingeniería Geológica</value> <value>Ingeniería Metalúrgica</value> <value>Ingeniería de Minas</value> <value>Ingeniería Industrial</value> <value>Ingeniería de Sistemas</value> <value>Ingeniería Mecánica-Eléctrica</value> <value>Ingeniería Naval</value> <value>Ingeniería Mecatrónica</value> <value>Ingeniería de Petróleo y Gas Natural</value> <value>Ingeniería Petroquímica</value> <value>Ingeniería Química</value> <value>Ingeniería Textil</value> </list> </parameter> </constraint> </constraints><aspects> <aspect name="uni:detallesSolicitante"> <title>Documento UNI</title> <properties> <property name="uni:nombre"> <title>Nombre del Solicitante</title> <type>d:text</type> <protected>false</protected> <mandatory>false</mandatory> <multiple>false</multiple> </property> <property name="uni:apellidoPaterno"> <title>Apellido Paterno del Solicitante</title> <type>d:text</type> </property> <property name="uni:apellidoMaterno"> <title>Apellido Materno del Solicitante</title> <type>d:text</type> </property> <property name="uni:codigo"> <title>Código Universitario del Solicitante</title> <type>d:text</type> <constraints> <constraint type="LENGTH"> <parameter name="minLength"><value>0</value></parameter> <parameter name="maxLength"><value>9</value></parameter> </constraint> </constraints> </property> <property name="uni:especialidad"> <title>Especialidad del Solicitante</title> <type>d:text</type> <multiple>true</multiple> <constraints> <constraint ref="uni:listaEspecialidades"/> </constraints> </property> <property name="uni:fecha"> <title>Fecha de Emisión</title> <type>d:date</type> </property> </properties> </aspect> </aspects></model>
uni-model-context.xml:
<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'><beans> <!– Registration of new models –> <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap"> <property name="models"> <list> <value>alfresco/extension/uniModel.xml</value> </list> </property> </bean></beans>
web-client-config-custom.xml:
<?xml version="1.0" encoding="UTF-8"?><alfresco-config> <config evaluator="string-compare" condition="Action Wizards"> <aspects> <aspect name="uni:detallesSolicitante"/> </aspects> </config> <config evaluator="aspect-name" condition="uni:detallesSolicitante"> <property-sheet> <separator name="sepCust1" display-label="Detalles del solicitante" component generator="HeaderSeparatorGenerator" /> <show-property name="uni:nombre"/> <show-property name="uni:apellidoPaterno"/> <show-property name="uni:apellidoMaterno"/> <show-property name="uni:codigo"/> <show-property name="uni:especialidad"/> <show-property name="uni:fecha"/> </property-sheet> </config></alfresco-config>
Looking forward your responses
Thanks in advance.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2012 12:39 AM
All the files looks fine.
It seems your model is not registered at all. where you have placed your context file?Make sure it is loading properly.
It seems your model is not registered at all. where you have placed your context file?Make sure it is loading properly.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2012 10:01 AM
Hi Joshua, sry for delay, I was not at my pc :-).
As mitpatoliya wrote, there is no problem with the code for first look, it should work! My two thoughts:
* Is there a dash between component-generator? In your listing is missing!
* What about file encoding? You have diacritic in your xml, maybe try to remove those characters.
As mitpatoliya wrote, there is no problem with the code for first look, it should work! My two thoughts:
* Is there a dash between component-generator? In your listing is missing!
<separator name="sepCust1" display-label="Detalles del solicitante" component generator="HeaderSeparatorGenerator" />
* What about file encoding? You have diacritic in your xml, maybe try to remove those characters.
