Hello,
J'ai un petit soucie avec l'affectation d'une variable de type string avec le code suivante :
la ligne text.setText(p.getValue()); me renvoye une exception de type
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 for (Iterator wit = selectedWidget.getProperties().iterator(); wit.hasNext();) { Property p = (Property) wit.next(); //TODO ajq remove hardcoded value if ("code".equals(p.getTypeName())) { text.setText(p.getValue()); break; }
java.util.regex.PatternSyntaxException: Illegal repetition near index 783
voici le contenu mon string si ca peut avoir une incidence
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94 <udp:udp> <udp:model-ref> cdmParticipant.contacts </udp:model-ref> <udp:build> <udp:filter> <udp:compare column="CDM_CONTACT_TYPES" operation="equal"> 8 </udp:compare> </udp:filter> <udp:list> <udp:sort> <udp:handle> <scope:get-module-rank> </scope:get-module-rank> s </udp:handle> <udp:sort-column> DIFFS_ORDER </udp:sort-column> </udp:sort> <udp:page> <udp:size> 100 </udp:size> <udp:handle> <scope:get-module-rank> </scope:get-module-rank> p </udp:handle> </udp:page> </udp:list> </udp:build> <udp:render-list> <xgui:vbox> <xi:include href="../../general/EmptyResult.xml"> </xi:include> <xsp:logic> if( <udp:row-count> </udp:row-count> > 0) { </xsp:logic> <xgui:table> <xi:include href="../../general/TableHeaderFromIndexTwo.xml"> </xi:include> <udp:for-each-row> <xgui:row> <udp:for-each-item from-index="2"> <xgui:cell> <xgui:label> <xsp:attribute name="class"> <udp:item column="COLOR_DIFFS"> </udp:item> </xsp:attribute> <xsp:logic> if( <udp:item-index> </udp:item-index> == 2){ </xsp:logic> <xgui:text> <i18n:text> CdmConfig.Party.Contact.ContactTypes. <udp:item> </udp:item> </i18n:text> </xgui:text> <xsp:logic> } else { </xsp:logic> <xgui:text> <udp:item> </udp:item> </xgui:text> <xsp:logic> } </xsp:logic> </xgui:label> </xgui:cell> </udp:for-each-item> </xgui:row> </udp:for-each-row> </xgui:table> <xi:include href="../../general/TableFooter.xml"> </xi:include> <xsp:logic> } </xsp:logic> </xgui:vbox> </udp:render-list> </udp:udp>
Partager