bonjour à tous,Je débute depuis 1 mois et ce de...
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2007 10:32 AM
bonjour à tous,
Je débute depuis 1 mois et ce de manière intensive dans le produit alfresco
Je viens de créer un modèle, il apparaît dans la liste quand je veux ajouter une règle mais quand je veux ajouter un contenu ou bien un document, alfresco renvoi le message suivant : The aspect is invalid
Voici ce que j'ai fais comme fichier
Fichier modèle : Comptagemodele.xml
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<!– The important part here is the name - Note: the use of the my: namespace
which is defined further on in the document –>
<model name="cm:comptagemodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Modele comptage</description>
<version>1.2</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="cmel"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="cmel.comptage.model" prefix="cmel"/>
</namespaces>
<aspects>
<!– Definition of new Aspect Type –>
<aspect name="cmel:eleve">
<title>Comptage</title>
<properties>
<property name="cmel:Nom">
<type>d:text</type>
</property>
<property name="cmel
renom">
<type>d:text</type>
</property>
</properties>
</aspect>
</aspects>
</model>
Fichier comptage.modele.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/comptageModel.xml</value>
</list>
</property>
</bean>
</beans>
Et enfin : Le fameux fichier web-client-config-custom.xml que j'ai placé dans le répertoire \wm-sge-si-ig-05Alfresco ECMS Community NetworktomcatwebappsalfrescoWEB-INFclassesalfrescoextension car quand je mets ces fichiers dans : l'autre rép extensiion, cela ne marche pas
<alfresco-config>
<!– Example of overriding the from email address –>
<!–
<config>
<client>
<from-email-address>someone@your-domain.com</from-email-address>
<search-max-results>100</search-max-results>
</client>
</config>
–>
<!– Example of adding languages to the list in the login page –>
<config evaluator="string-compare" condition="Languages">
<languages>
<language locale="ca_ES">Catalan</language>
<language locale="da_DK">Danish</language>
<language locale="de_DE">German</language>
<language locale="es_ES">Spanish</language>
<language locale="el_GR">Greek</language>
<language locale="fr_FR">French</language>
<language locale="it_IT">Italian</language>
<language locale="ja_JP">Japanese</language>
<language locale="du_NL">Dutch</language>
<language locale="pt_BR">Portuguese (Brazilian)</language>
<language locale="ru_RU">Russian</language>
<language locale="fi_FI">Finnish</language>
<language locale="tr_TR">Turkish</language>
<language locale="zh_CN">Simplified Chinese</language>
</languages>
</config>
<!– Example of configuring advanced search –>
<!–
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
</content-types>
<custom-properties>
<meta-data aspect="app:simpleworkflow" property="app:approveStep" />
</custom-properties>
</advanced-search>
</config>
–>
<!– Example of changing the sort direction for a view in the client –>
<!–
<config evaluator="string-compare" condition="Views">
<views>
<view-defaults>
<topic>
<sort-direction>ascending</sort-direction>
</topic>
</view-defaults>
</views>
</config>
–>
<!– Example of adding a custom icon to the Create Space dialog –>
<!–
<config evaluator="string-compare" condition="cm:folder icons">
<icons>
<icon name="space-icon-custom" path="/images/icons/space-icon-custom.gif" />
</icons>
</config>
–>
<!– The config below shows how to incorporate the example model–>
<!– into the web client, for this to work you will need to –>
<!– rename example-model-context.xml.sample to example-model-context.xml –>
<!–
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="my:sop">
</content-types>
</config>
<config evaluator="node-type" condition="my:sop">
<property-sheet>
<show-property name="mimetype" display-label-id="content_type"
component-generator="MimeTypeSelectorGenerator" />
<show-property name="size" display-label-id="size"
converter="org.alfresco.faces.ByteSizeConverter"
show-in-edit-mode="false" />
<show-property name="my
ublishedDate" />
<show-association name="my:signOff" />
<show-property name="my:authorisedBy" />
<show-child-association name="my
rocessSteps" />
</property-sheet>
</config>
<config evaluator="aspect-name" condition="my:imageClassification">
<property-sheet>
<show-property name="my:width"/>
<show-property name="my:height"/>
<show-property name="my:resolution"/>
</property-sheet>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="my:imageClassification"/>
</aspects>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="my:sop" />
</content-types>
<custom-properties>
<meta-data type="my:sop" property="my:authorisedBy" />
<meta-data aspect="my:imageClassification" property="my:resolution" />
</custom-properties>
</advanced-search>
</config>
–>
<config evaluator="aspect-name" condition="cmel:ELEVE">
<property-sheet>
<show-property name="cmel:Nom"/>
<show-property name="cmel
renom"/>
</property-sheet>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="cmel:Eleve"/>
</aspects>
</config>
</alfresco-config>
PS : J'ai réalisé une matinée de recherche opur faire fonctionner ces scripts en vain, le modèle apparaît bien dans la liste mais comme je le disais j'ai un message d'erreur
De plus quand je met un préfixe différent <import uri="http://www.alfresco.org/model/content/1.0" prefix="cmel"/> et <namespace uri="cmel.comptage.model" prefix="cmel"/> dans le fichier modele, : comptagemodele.xml cela ne marche pas je suis obligé de mettre un préfixe identique
Merci pour votre précieuse aide
Je débute depuis 1 mois et ce de manière intensive dans le produit alfresco
Je viens de créer un modèle, il apparaît dans la liste quand je veux ajouter une règle mais quand je veux ajouter un contenu ou bien un document, alfresco renvoi le message suivant : The aspect is invalid
Voici ce que j'ai fais comme fichier
Fichier modèle : Comptagemodele.xml
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<!– The important part here is the name - Note: the use of the my: namespace
which is defined further on in the document –>
<model name="cm:comptagemodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Modele comptage</description>
<version>1.2</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="cmel"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="cmel.comptage.model" prefix="cmel"/>
</namespaces>
<aspects>
<!– Definition of new Aspect Type –>
<aspect name="cmel:eleve">
<title>Comptage</title>
<properties>
<property name="cmel:Nom">
<type>d:text</type>
</property>
<property name="cmel

<type>d:text</type>
</property>
</properties>
</aspect>
</aspects>
</model>
Fichier comptage.modele.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/comptageModel.xml</value>
</list>
</property>
</bean>
</beans>
Et enfin : Le fameux fichier web-client-config-custom.xml que j'ai placé dans le répertoire \wm-sge-si-ig-05Alfresco ECMS Community NetworktomcatwebappsalfrescoWEB-INFclassesalfrescoextension car quand je mets ces fichiers dans : l'autre rép extensiion, cela ne marche pas
<alfresco-config>
<!– Example of overriding the from email address –>
<!–
<config>
<client>
<from-email-address>someone@your-domain.com</from-email-address>
<search-max-results>100</search-max-results>
</client>
</config>
–>
<!– Example of adding languages to the list in the login page –>
<config evaluator="string-compare" condition="Languages">
<languages>
<language locale="ca_ES">Catalan</language>
<language locale="da_DK">Danish</language>
<language locale="de_DE">German</language>
<language locale="es_ES">Spanish</language>
<language locale="el_GR">Greek</language>
<language locale="fr_FR">French</language>
<language locale="it_IT">Italian</language>
<language locale="ja_JP">Japanese</language>
<language locale="du_NL">Dutch</language>
<language locale="pt_BR">Portuguese (Brazilian)</language>
<language locale="ru_RU">Russian</language>
<language locale="fi_FI">Finnish</language>
<language locale="tr_TR">Turkish</language>
<language locale="zh_CN">Simplified Chinese</language>
</languages>
</config>
<!– Example of configuring advanced search –>
<!–
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
</content-types>
<custom-properties>
<meta-data aspect="app:simpleworkflow" property="app:approveStep" />
</custom-properties>
</advanced-search>
</config>
–>
<!– Example of changing the sort direction for a view in the client –>
<!–
<config evaluator="string-compare" condition="Views">
<views>
<view-defaults>
<topic>
<sort-direction>ascending</sort-direction>
</topic>
</view-defaults>
</views>
</config>
–>
<!– Example of adding a custom icon to the Create Space dialog –>
<!–
<config evaluator="string-compare" condition="cm:folder icons">
<icons>
<icon name="space-icon-custom" path="/images/icons/space-icon-custom.gif" />
</icons>
</config>
–>
<!– The config below shows how to incorporate the example model–>
<!– into the web client, for this to work you will need to –>
<!– rename example-model-context.xml.sample to example-model-context.xml –>
<!–
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="my:sop">
</content-types>
</config>
<config evaluator="node-type" condition="my:sop">
<property-sheet>
<show-property name="mimetype" display-label-id="content_type"
component-generator="MimeTypeSelectorGenerator" />
<show-property name="size" display-label-id="size"
converter="org.alfresco.faces.ByteSizeConverter"
show-in-edit-mode="false" />
<show-property name="my

<show-association name="my:signOff" />
<show-property name="my:authorisedBy" />
<show-child-association name="my

</property-sheet>
</config>
<config evaluator="aspect-name" condition="my:imageClassification">
<property-sheet>
<show-property name="my:width"/>
<show-property name="my:height"/>
<show-property name="my:resolution"/>
</property-sheet>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="my:imageClassification"/>
</aspects>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="my:sop" />
</content-types>
<custom-properties>
<meta-data type="my:sop" property="my:authorisedBy" />
<meta-data aspect="my:imageClassification" property="my:resolution" />
</custom-properties>
</advanced-search>
</config>
–>
<config evaluator="aspect-name" condition="cmel:ELEVE">
<property-sheet>
<show-property name="cmel:Nom"/>
<show-property name="cmel

</property-sheet>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="cmel:Eleve"/>
</aspects>
</config>
</alfresco-config>
PS : J'ai réalisé une matinée de recherche opur faire fonctionner ces scripts en vain, le modèle apparaît bien dans la liste mais comme je le disais j'ai un message d'erreur
De plus quand je met un préfixe différent <import uri="http://www.alfresco.org/model/content/1.0" prefix="cmel"/> et <namespace uri="cmel.comptage.model" prefix="cmel"/> dans le fichier modele, : comptagemodele.xml cela ne marche pas je suis obligé de mettre un préfixe identique
Merci pour votre précieuse aide
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2007 11:30 AM
Bonjour,
Ca ressemble quand même bien à un mic-mac de namespaces. As-tu déjà essayé avec ce début de fichier :
Ca ressemble quand même bien à un mic-mac de namespaces. As-tu déjà essayé avec ce début de fichier :
<?xml version="1.0" encoding="UTF-8"?><!– Definition of new Model –><!– The important part here is the name - Note: the use of the my: namespace which is defined further on in the document –><model name="cmel:comptagemodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Optional meta-data about the model –> <description>Modele comptage</description> <version>1.2</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"/> </imports> <!– Introduction of new namespaces defined by this model –> <!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –> <namespaces> <namespace uri="cmel.comptage.model" prefix="cmel"/> </namespaces>
De plus il y a une différence de casse entre eleve, ELEVE et Eleve.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 03:16 AM
Bonjour Philippe,
Je me suis empressé ce matin de faire le test j'ai donc mis en conformité les préfixes et repecté la casse concernant eleve (tout est en minuscule sans accent)
Sans succès,
Les préfixes sont cmel en ce qui concerne mon modèle et les cm qui concernent alfresco eux sont toujours cm et du coup, le modèle n'apparait plus dans ma combolist snif. (voici le message dans la console alfresco : 08:59:22,480 WARN [bean.actions.BaseActionWizard] Failed to resolve aspect 'cmel:eleve')
J'ai refais le test en mettant le même préfixe (cm) que celui d'alfresco et là le modèle apparait mais il est n'est pas valide (d'après ALFRESCO)
D'avance merci pour ton aide
PS : pour rappel ces fichiers sont dans le répertoire : C
rogram FilesAlfresco ECMS Community NetworktomcatwebappsalfrescoWEB-INFclassesalfrescoextension ET NON PAS dans : C
rogram FilesAlfresco ECMS Community Networktomcatsharedclassesalfrescoextension
Je me suis inspiré pour tout ceci du livre de Munwar Shariff : ALFRESCO)
Voici le contenu du fichier : comptagemodel.xml
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<!– The important part here is the name - Note: the use of the my: namespace
which is defined further on in the document –>
<model name="cmel:comptagemodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Modele comptage</description>
<version>1.2</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"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="cmel.comptage.model" prefix="cmel"/>
</namespaces>
<aspects>
<!– Definition of new Aspect Type –>
<aspect name="cmel:eleve">
<title>Comptage</title>
<properties>
<property name="cmel:Nom">
<type>d:text</type>
</property>
<property name="cmel
renom">
<type>d:text</type>
</property>
</properties>
</aspect>
</aspects>
</model>
Le fichier : comptagemodel.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/comptagemodel.xml</value>
</list>
</property>
</bean>
</beans>
Et enfin le fichier : web-client-config-custom.xml
<alfresco-config>
<!– Example of overriding the from email address –>
<!–
<config>
<client>
<from-email-address>someone@your-domain.com</from-email-address>
<search-max-results>100</search-max-results>
</client>
</config>
–>
<!– Example of adding languages to the list in the login page –>
<config evaluator="string-compare" condition="Languages">
<languages>
<language locale="ca_ES">Catalan</language>
<language locale="da_DK">Danish</language>
<language locale="de_DE">German</language>
<language locale="es_ES">Spanish</language>
<language locale="el_GR">Greek</language>
<language locale="fr_FR">French</language>
<language locale="it_IT">Italian</language>
<language locale="ja_JP">Japanese</language>
<language locale="du_NL">Dutch</language>
<language locale="pt_BR">Portuguese (Brazilian)</language>
<language locale="ru_RU">Russian</language>
<language locale="fi_FI">Finnish</language>
<language locale="tr_TR">Turkish</language>
<language locale="zh_CN">Simplified Chinese</language>
</languages>
</config>
<!– Example of configuring advanced search –>
<!–
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
</content-types>
<custom-properties>
<meta-data aspect="app:simpleworkflow" property="app:approveStep" />
</custom-properties>
</advanced-search>
</config>
–>
<!– Example of changing the sort direction for a view in the client –>
<!–
<config evaluator="string-compare" condition="Views">
<views>
<view-defaults>
<topic>
<sort-direction>ascending</sort-direction>
</topic>
</view-defaults>
</views>
</config>
–>
<!– Example of adding a custom icon to the Create Space dialog –>
<!–
<config evaluator="string-compare" condition="cm:folder icons">
<icons>
<icon name="space-icon-custom" path="/images/icons/space-icon-custom.gif" />
</icons>
</config>
–>
<!– The config below shows how to incorporate the example model–>
<!– into the web client, for this to work you will need to –>
<!– rename example-model-context.xml.sample to example-model-context.xml –>
<!–
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="my:sop">
</content-types>
</config>
<config evaluator="node-type" condition="my:sop">
<property-sheet>
<show-property name="mimetype" display-label-id="content_type"
component-generator="MimeTypeSelectorGenerator" />
<show-property name="size" display-label-id="size"
converter="org.alfresco.faces.ByteSizeConverter"
show-in-edit-mode="false" />
<show-property name="my
ublishedDate" />
<show-association name="my:signOff" />
<show-property name="my:authorisedBy" />
<show-child-association name="my
rocessSteps" />
</property-sheet>
</config>
<config evaluator="aspect-name" condition="my:imageClassification">
<property-sheet>
<show-property name="my:width"/>
<show-property name="my:height"/>
<show-property name="my:resolution"/>
</property-sheet>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="my:imageClassification"/>
</aspects>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="my:sop" />
</content-types>
<custom-properties>
<meta-data type="my:sop" property="my:authorisedBy" />
<meta-data aspect="my:imageClassification" property="my:resolution" />
</custom-properties>
</advanced-search>
</config>
–>
<config evaluator="aspect-name" condition="cmel:eleve">
<property-sheet>
<show-property name="cmel:Nom"/>
<show-property name="cmel
renom"/>
</property-sheet>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="cmel:eleve"/>
</aspects>
</config>
</alfresco-config>
Je me suis empressé ce matin de faire le test j'ai donc mis en conformité les préfixes et repecté la casse concernant eleve (tout est en minuscule sans accent)
Sans succès,
Les préfixes sont cmel en ce qui concerne mon modèle et les cm qui concernent alfresco eux sont toujours cm et du coup, le modèle n'apparait plus dans ma combolist snif. (voici le message dans la console alfresco : 08:59:22,480 WARN [bean.actions.BaseActionWizard] Failed to resolve aspect 'cmel:eleve')
J'ai refais le test en mettant le même préfixe (cm) que celui d'alfresco et là le modèle apparait mais il est n'est pas valide (d'après ALFRESCO)
D'avance merci pour ton aide
PS : pour rappel ces fichiers sont dans le répertoire : C


Je me suis inspiré pour tout ceci du livre de Munwar Shariff : ALFRESCO)
Voici le contenu du fichier : comptagemodel.xml
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<!– The important part here is the name - Note: the use of the my: namespace
which is defined further on in the document –>
<model name="cmel:comptagemodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Modele comptage</description>
<version>1.2</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"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="cmel.comptage.model" prefix="cmel"/>
</namespaces>
<aspects>
<!– Definition of new Aspect Type –>
<aspect name="cmel:eleve">
<title>Comptage</title>
<properties>
<property name="cmel:Nom">
<type>d:text</type>
</property>
<property name="cmel

<type>d:text</type>
</property>
</properties>
</aspect>
</aspects>
</model>
Le fichier : comptagemodel.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/comptagemodel.xml</value>
</list>
</property>
</bean>
</beans>
Et enfin le fichier : web-client-config-custom.xml
<alfresco-config>
<!– Example of overriding the from email address –>
<!–
<config>
<client>
<from-email-address>someone@your-domain.com</from-email-address>
<search-max-results>100</search-max-results>
</client>
</config>
–>
<!– Example of adding languages to the list in the login page –>
<config evaluator="string-compare" condition="Languages">
<languages>
<language locale="ca_ES">Catalan</language>
<language locale="da_DK">Danish</language>
<language locale="de_DE">German</language>
<language locale="es_ES">Spanish</language>
<language locale="el_GR">Greek</language>
<language locale="fr_FR">French</language>
<language locale="it_IT">Italian</language>
<language locale="ja_JP">Japanese</language>
<language locale="du_NL">Dutch</language>
<language locale="pt_BR">Portuguese (Brazilian)</language>
<language locale="ru_RU">Russian</language>
<language locale="fi_FI">Finnish</language>
<language locale="tr_TR">Turkish</language>
<language locale="zh_CN">Simplified Chinese</language>
</languages>
</config>
<!– Example of configuring advanced search –>
<!–
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
</content-types>
<custom-properties>
<meta-data aspect="app:simpleworkflow" property="app:approveStep" />
</custom-properties>
</advanced-search>
</config>
–>
<!– Example of changing the sort direction for a view in the client –>
<!–
<config evaluator="string-compare" condition="Views">
<views>
<view-defaults>
<topic>
<sort-direction>ascending</sort-direction>
</topic>
</view-defaults>
</views>
</config>
–>
<!– Example of adding a custom icon to the Create Space dialog –>
<!–
<config evaluator="string-compare" condition="cm:folder icons">
<icons>
<icon name="space-icon-custom" path="/images/icons/space-icon-custom.gif" />
</icons>
</config>
–>
<!– The config below shows how to incorporate the example model–>
<!– into the web client, for this to work you will need to –>
<!– rename example-model-context.xml.sample to example-model-context.xml –>
<!–
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="my:sop">
</content-types>
</config>
<config evaluator="node-type" condition="my:sop">
<property-sheet>
<show-property name="mimetype" display-label-id="content_type"
component-generator="MimeTypeSelectorGenerator" />
<show-property name="size" display-label-id="size"
converter="org.alfresco.faces.ByteSizeConverter"
show-in-edit-mode="false" />
<show-property name="my

<show-association name="my:signOff" />
<show-property name="my:authorisedBy" />
<show-child-association name="my

</property-sheet>
</config>
<config evaluator="aspect-name" condition="my:imageClassification">
<property-sheet>
<show-property name="my:width"/>
<show-property name="my:height"/>
<show-property name="my:resolution"/>
</property-sheet>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="my:imageClassification"/>
</aspects>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="my:sop" />
</content-types>
<custom-properties>
<meta-data type="my:sop" property="my:authorisedBy" />
<meta-data aspect="my:imageClassification" property="my:resolution" />
</custom-properties>
</advanced-search>
</config>
–>
<config evaluator="aspect-name" condition="cmel:eleve">
<property-sheet>
<show-property name="cmel:Nom"/>
<show-property name="cmel

</property-sheet>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="cmel:eleve"/>
</aspects>
</config>
</alfresco-config>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 03:56 AM
Pour info je viens de copier-coller ton fichier de modèle dans mon propre répertoire d'extensions (dans shared/classes/alfresco/extensions), de le déclarer dans le contexte Spring et de montrer l'aspect dans le "Action Wizard" et ça marche. Ton fichier de modèle est donc bon.
Essaie de revenir "dans les clous" en mettant tes fichiers de config dans le shared (ça devrait marcher comme ça, sinon c'est qu'il y a un autre problème dans la conf), en appelant ton fichier de conf Spring par un nom qui finit par -context.xml et pas .context.xml, et en supprimant le superflu du web-client-config-custom.xml (pour qu'on y voie plus clair, tous ces blocs en commentaires ne facilitent pas la compréhension du fichier de config).
Essaie de revenir "dans les clous" en mettant tes fichiers de config dans le shared (ça devrait marcher comme ça, sinon c'est qu'il y a un autre problème dans la conf), en appelant ton fichier de conf Spring par un nom qui finit par -context.xml et pas .context.xml, et en supprimant le superflu du web-client-config-custom.xml (pour qu'on y voie plus clair, tous ces blocs en commentaires ne facilitent pas la compréhension du fichier de config).
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 04:43 AM
Philippe REbonjour
J'ai fais les tests, mais en premier lieu cela n'allait pas, maintenant oui
Je t'explique, d'abord tu avais raison, il fallait renommer en -context.xml et pas .context.xml mais ça n'allait pas non plus en fait quand tu m'as parlé du fichier SPRING j'ai vérifié le chemin et c là que ça n'était pas bon, en fait chez moi il pointe sur Web-inf et pas shared, et donc en placant les fichiers au bon endroit par rapport à ma config ca fonctionne super bien
Un tout toutoutoutout grand merci car sans la communauté et sans toi ben j'en serai encore là en train de chercher
MERCI MERCI MERCI à charge de revanche si je peux t'aider (mais pas tout de suite vu mon niveazu de connaissance dans alfresco)
Bien à toi
brunotony@hotmail.com
J'ai fais les tests, mais en premier lieu cela n'allait pas, maintenant oui
Je t'explique, d'abord tu avais raison, il fallait renommer en -context.xml et pas .context.xml mais ça n'allait pas non plus en fait quand tu m'as parlé du fichier SPRING j'ai vérifié le chemin et c là que ça n'était pas bon, en fait chez moi il pointe sur Web-inf et pas shared, et donc en placant les fichiers au bon endroit par rapport à ma config ca fonctionne super bien
Un tout toutoutoutout grand merci car sans la communauté et sans toi ben j'en serai encore là en train de chercher
MERCI MERCI MERCI à charge de revanche si je peux t'aider (mais pas tout de suite vu mon niveazu de connaissance dans alfresco)
Bien à toi
brunotony@hotmail.com
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 04:54 AM
Tant mieux si ça a réussi.
Je crois que toutes les bonnes volontés seront les bienvenues quand Michael mettra en place le Wiki pour mettre la documentation en français au niveau (et j'espère même mieux) que celle qui existe en anglais.
Je crois que toutes les bonnes volontés seront les bienvenues quand Michael mettra en place le Wiki pour mettre la documentation en français au niveau (et j'espère même mieux) que celle qui existe en anglais.


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 02:45 PM
Pour le wiki, c'est pas faute de taper sur la tête de notre administrateur hein

