This repository has been archived by the owner on Dec 14, 2017. It is now read-only.
/
COMP-31.xml
78 lines (67 loc) · 2.19 KB
/
COMP-31.xml
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
<?xml version="1.0" encoding="utf-8"?>
<issues>
<issue>
<field name="Priority">
<value>Major</value>
</field>
<field name="Type">
<value>Feature</value>
</field>
<field name="State">
<value>Fixed</value>
</field>
<field name="Assignee" />
<field name="Subsystem">
<value>Validator</value>
</field>
<field name="Fix versions" />
<field name="Affected versions" />
<field name="Fixed in build" />
<field name="numberInProject">
<value>31</value>
</field>
<field name="summary">
<value>Databind Validate=true ignoring the FriendlyName property</value>
</field>
<field name="description">
<value>DataBind method appears to ignore the FriendlyNames property set on the model. FriendlyName is working fine with the ValidationRunner class.
REF Email On Castle Project Users :
Hi All,
Quick question on the Castle.Components.Validator...
When using the Validator in Monorail should I be using the
ValidatorRunner class or the Validate=true method on the databind?
Hammett's original blog post shows using the ValidatorRunner to do the
validation but later posts with Monorail examples are using the
Validate attribute on the controller action e.g:
public void Create([DataBind("user", Validate=true)] User user)
I was using the DataBind method but it appears to ignore the Friendly
Names I have set on the model. I've changed to using the
ValidationRunner class which does not have this problem but I'm not
sure this is best practice.
Anyone else come across the problem of DataBind ignoring the Friendly
Name or care to share how they are using the Validator?
I'm using a day old build from the trunk by the way.
Cheers,
Justin
</value>
</field>
<field name="created">
<value>1182332919000</value>
</field>
<field name="updated">
<value>1183679439000</value>
</field>
<field name="reporterName">
<value>justin</value>
</field>
<field name="updaterName">
<value>justin</value>
</field>
<field name="resolved">
<value>1282137543510</value>
</field>
<field name="permittedGroup">
<value>All Users</value>
</field>
</issue>
</issues>