Bonjour ,voila je suis développeur Java j'utilise Flex dans mon application comme front-end ;
cependant j'ai une erreur qui s'affiche :
Accès à la propriété non définie BookItemRenderer
Voila mon code ci-dessus si ça peu aidé :
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
<s:states>
        <s:State name="create"/>
        <s:State name="edit"/>
    </s:states>
    
    <s:Group width="800">
        <s:layout>
            <s:VerticalLayout paddingLeft="10" paddingRight="10" paddingTop="10" paddingBottom="10"/>
        </s:layout>
        
        <mx:Form id="fAuthor">
            <mx:FormHeading label.create="New author" label.edit="Edit author"/>
            
            <mx:FormItem label="Name">
                <s:TextInput id="iName" text="@{author.name}"/>
            </mx:FormItem>
            <mx:FormItem>
                <s:HGroup>
                    <s:Button id="bSave" label.create="Create" label.edit="Update" 
                        click.create="createAuthor()"
                        click.edit="updateAuthor()"/>
                    <s:Button id="bDelete" label="Delete" visible.create="false" visible.edit="true"
                        click.edit="deleteAuthor()"/>
                    <s:Button id="bCancel" label="Cancel" visible.create="false" visible.edit="true"
                        click.edit="cancelAuthor()"/>
                </s:HGroup>
            </mx:FormItem>
            <mx:FormItem label="Books" includeIn="edit">
    <s:HGroup>
        <s:List id="lBooks" dataProvider="{author.books}" labelField="title" width="300" 
				itemRenderer="BookItemRenderer"/>
        <s:VGroup>
            <s:Button label="Add" click="addBook()"/>
            <s:Button label="Remove" enabled="{Boolean(lBooks.selectedItem)}" click="removeBook()"/>
        </s:VGroup>
    </s:HGroup>
</mx:FormItem>
        </mx:Form>
    
        <s:Label fontWeight="bold" text="Authors List"/>
	    <s:List id="lAuthors" dataProvider="{authors}" labelField="name" width="100%"
            change="editAuthor()"
            creationComplete="findAllAuthors()"/>
        
        <s:Button label="Refresh" click="findAllAuthors()"/>
        
	</s:Group>