AnsweredAssumed Answered

création d'un modele d'espace

Question asked by slipknotik on Oct 22, 2009
Latest reply on Oct 23, 2009 by slipknotik
salut à tous
je veux créer un modele  d'espace alors j'ai crée le fichier space-offre.xml :

<?xml version="1.0" encoding="UTF8"?>

<model name="spoffre:modelespaceoffre" xmlns="http://www.alfresco.org/model/dictionary/1.0">

<description>Space Offre Model</description>
<author>Jack</author>
<version>1.0</version>

<imports>

<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<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>
<namespaces>
      <namespace uri="spoffre.model" prefix="spoffre"/>
   </namespaces>
<types>
   <type name="spoffre:spaceoffre">
      <title>space_offre</title>
      <parent>cm:folder</parent>


<properties>
               <property name="spoffre:Design">
            <type>d:text</type>            
         </property>

         <property name="spoffre:NumOffre">
            <type>d:int</type>         
         </property>
         
         <property name="spoffre:Objet">
            <type>d:text</type>            
         </property>

         <property name="spoffre:ModeOffre">
            <type>d:text</type>      
         </property>

         <property name="spoffre:Etat">
            <type>d:text</type>   
         </property>

         <property name="spoffre:DateEnvoi">
            <type>d:text</type>
         </property>

         <property name="spoffre:RO">
            <type>d:text</type>         
         </property>

         <property name="spoffre:Qualite">
            <type>d:text</type>         
         </property>
         
         <property name="spoffre:Client">
            <type>d:text</type>         
         </property>
         <property name="spoffre:Pays">
            <type>d:text</type>            
         </property>
      
      
         <property name="spoffre:CodeSociete">
                 <type>d:text</type>         
         </property>

         <property name="spoffre:Situation">
                 <type>d:text</type>
         </property>

         <property name="spoffre:Mission">
                   <type>d:text</type>      
         </property>

         <property name="spoffre:Service">
            <type>d:text</type>         
         </property>
      
         <property name="spoffre:Bailleur">
            <type>d:text</type>            
         </property>

         <property name="spoffre:Partenaire">
            <type>d:text</type>            
         </property>
                  
</properties>

</type>
</types>
</model>

le fichier context space-offre-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/space-offre.xml</value>
            </list>
        </property>
    </bean>
         
</beans>


et j'ai ajouté les lignes suivant dans web-client-config-custom.xml

    <config evaluator="string-compare" condition="Space Wizards">
      <folder-types>
      <type name="spoffre:spaceoffre"/>
      </folder-types>
   </config>
      <config evaluator="string-compare" condition="Action Wizards">
   <specialise-types>
      <type name="spoffre:spaceoffre"/>
   </specialise-types>
   </config>

<config evaluator="node-type" condition="spoffre:spaceoffre">
      <property-sheet>
      
      <show-property name="spoffre:Design" display-label-id="Design" component-generator="CompGeneratorOffreDesignation"/>
        <show-property name="spoffre:NumOffre" display-label-id="NumOffre" component-generator="CompGeneratorOffreNumOffre"/>
      <show-property name="spoffre:Objet" component-generator="CompGeneratorOffreObjet"/>
      <show-property name="spoffre:Etat" component-generator="CompGeneratorOffreEtat"/>
      <show-property name="spoffre:ModeOffre" display-label-id="ModeOffre" component-generator="CompGeneratorOffreModeOffre"/>
      <show-property name="spoffre:RO" component-generator="CompGeneratorOffreRO"/>
      <show-property name="spoffre:DateEnvoi" display-label-id="DateEnvoi" component-generator="CompGeneratorOffreDateEnvoi"/>      
      <show-property name="spoffre:Qualite" component-generator="CompGeneratorOffreQualite"/>      
      <show-property name="spoffre:Client" component-generator="CompGeneratorOffreClient"/>
      <show-property name="spoffre:Pays" component-generator="CompGeneratorOffrePays"/>   
      <show-property name="spoffre:CodeSociete" display-label-id="CodeSociete" component-generator="CompGeneratorOffreCodeS"/>
      <show-property name="spoffre:Situation" component-generator="CompGeneratorOffreSituation"/>
      <show-property name="spoffre:Mission" component-generator="CompGeneratorOffreMission"/>               
      <show-property name="spoffre:Service" component-generator="CompGeneratorOffreService"/>   
      <show-property name="spoffre:Bailleur" component-generator="CompGeneratorOffreBailleur"/>
      <show-property name="spoffre:Partenaire" component-generator="CompGeneratorOffrePartenaire"/>   
      
      <show-property name="description" display-label-id="description" show-in-view-mode="false" show-in-edit-mode="false"
                        read-only="true" ignore-if-missing="false" />
   <show-property name="title" display-label-id="title" show-in-view-mode="false" show-in-edit-mode="false"
                        read-only="true" ignore-if-missing="false" />
      <show-property name="name" display-label-id="name" show-in-view-mode="false" show-in-edit-mode="false"
                        read-only="true" ignore-if-missing="false" />
      <show-property name="author" display-label-id="author" show-in-view-mode="false" show-in-edit-mode="false"
                        read-only="true" ignore-if-missing="false" />
      
      </property-sheet>
   </config>

mais quand je tente à créer un espace je ne visualise pas le type que je veux et j'obtiens la trace suivante

15:41:32,531 User:admin WARN  [bean.spaces.CreateSpaceWizard] Failed to add 'spoffre:spaceoffre' to the list of folder types as the prefix can not be resolved
15:41:32,546 User:admin WARN  [bean.spaces.CreateSpaceWizard] Failed to add 'spoffre:spaceoffre' to the list of folder types as the prefix can not be resolved

alors svp pouvez vous m'indiquer où est l'erreur ?
merci

Outcomes