Bonjour,

dans mon code suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
    public ArgumentsIn addValueInList(String property) throws CmsException {
 
    	System.out.println("BEGIN NEW: addValueInList ");
 
		checkPropertyType(property,Types.LIST);   
        ArgumentsDesc d = desc.getComplexType(property);     
 
       //TODO think solution using : NvElementHandlerList  of this ArgumentsInImpl
       //TODO to be able to keep link for each sub NvElementI[] of the list property
        NvElementHandler nvElementList;
 
        System.out.println("addValueInList : DEBUG 1");
        //TODO here try get Vector ??
 
        System.out.println("addValueInList : DEBUG 2");
 
        //TODO no list has been handled or a new one is to be handled
        if(this.nvhList==null || !(this.nvhList.getPropertyName().equalsIgnoreCase(property)))
        {
        	//TODO 1 - add the current nvhList as lislist property
        	//TODO 2- create the new nvhList
        	//TODO create List and return  NvElementHandler (NvElementI[]) of a NvElementHandlerList (NvElementI[][])
        	if(this.nvhList!=null && !(this.nvhList.getPropertyName().equalsIgnoreCase(property)))
        	{
        		//TODO handle new list, add the previous one to the main nvh as a NvI[][] property
        	}
        	System.out.println("addValueInList : DEBUG 3 current list property "+property);
 
 
        	 this.nvhList = new NvElementHandlerList(property);
 
        	//TODO think update size of nvElementListList and get rang of new NvElementHandler
        	nvElementList = new NvElementHandler(this.nvhList);
 
        }
        else {  
        		 System.out.println("addValueInList : DEBUG 4");
 
        		 //nvhList (instead of old SVLObjectList)
        	     nvElementList = new NvElementHandler(this.nvhList);
 
        	     //TODO think well when to update it as property in current nvh using : nvh.setListListValue(property,nvElementListList);
             	//nvh.setListListValue(property,nvElementListList);
 
        }
 
        System.out.println("addValueInList : DEBUG 5");
 
        return new ArgumentsInImpl(command, d,nvElementList);
 
    }
dans la partie : nvElementList = new NvElementHandler(this.nvhList);
je croyais que toutes modification sur l'objet this.nvhList dans NvElementHandler sera prise en compte mais c'est pas le cas, le fait de mettre this.nvhList n'est il pas suffisant??