Bonjour,
j'ai un DateField dans une de mes fenêtres.
Tant que j'ajoute pas de listener dessus tout va bien.
Par contre dès que j'ajoute le listener la fenêtre ne se lance plus.
En fait, en utilisant le debugger, j'ai droit à:
com.google.gwt.core.client.GWT$DefaultUncaughtExceptionHandler@1610267.
Import:
Déclaration du DateField
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 import com.gwtext.client.widgets.DatePicker; import com.google.gwt.core.client.JavaScriptObject; import com.gwtext.client.widgets.Component; import com.gwtext.client.widgets.event.DatePickerListener; import com.gwtext.client.widgets.form.DateField;
Merci, d'avance
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
52 private DateField getDateService() { if(dateService==null){ dateService=new DateField(); dateService.setPixelSize(dateWidth, labelHeight); dateService.setFormat("j/m/Y"); dateService.addListener(new DatePickerListener(){ public void onSelect(DatePicker dataPicker, Date date) { dateSelected=date.getTime(); activeBouton(true); } public boolean doBeforeDestroy(Component component) { return false; } public boolean doBeforeHide(Component component) { return false; } public boolean doBeforeRender(Component component) { return false; } public boolean doBeforeShow(Component component) { return false; } public boolean doBeforeStateRestore(Component component, JavaScriptObject state) { return false; } public boolean doBeforeStateSave(Component component, JavaScriptObject state) { return false; } public void onDestroy(Component component) { } public void onDisable(Component component) { } public void onEnable(Component component) { } public void onHide(Component component) { } public void onRender(Component component) { } public void onShow(Component component) { } public void onStateRestore(Component component, JavaScriptObject state) { } public void onStateSave(Component component, JavaScriptObject state) { } }); } return dateService;![]()
Partager