-
Notifications
You must be signed in to change notification settings - Fork 162
/
metawidget.xml
49 lines (42 loc) · 2.25 KB
/
metawidget.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
<?xml version="1.0"?>
<metawidget xmlns="http://metawidget.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://metawidget.org http://metawidget.org/xsd/metawidget-1.0.xsd" version="1.0">
<!-- This file configures the Java Server Faces Metawidget. For full -->
<!-- documentation on Metawidget, visit http://metawidget.org -->
<htmlMetawidget xmlns="java:org.metawidget.faces.component.html">
<!-- Inspectors inspect back-end metadata -->
<inspector>
<!-- compositeInspector collates the results from multiple inspectors -->
<compositeInspector xmlns="java:org.metawidget.inspector.composite" config="CompositeInspectorConfig">
<inspectors>
<array>
<!-- propertyTypeInspector inspects types -->
<propertyTypeInspector xmlns="java:org.metawidget.inspector.propertytype" />
<!-- metawidgetAnnotationInspector inspects annotations such as @UiComesAfter -->
<metawidgetAnnotationInspector xmlns="java:org.metawidget.inspector.annotation" config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
<propertyStyle>
<!-- Seam Forge puts its annotations on private fields -->
<javaBeanPropertyStyle xmlns="java:org.metawidget.inspector.impl.propertystyle.javabean" id="forgeStyle" config="JavaBeanPropertyStyleConfig">
<privateFieldConvention>
<format>{0}</format>
</privateFieldConvention>
</javaBeanPropertyStyle>
</propertyStyle>
</metawidgetAnnotationInspector>
<!-- java5Inspector inspects enums and generics -->
<java5Inspector xmlns="java:org.metawidget.inspector.java5"/>
<!-- jpaInspector inspects JPA annotations -->
<jpaInspector xmlns="java:org.metawidget.inspector.jpa" config="JpaInspectorConfig">
<propertyStyle>
<javaBeanPropertyStyle refId="forgeStyle"/>
</propertyStyle>
</jpaInspector>
<!-- To add more inspectors for more technologies, such as Bean Validation, visit http://metawidget.org -->
</array>
</inspectors>
</compositeInspector>
</inspector>
<!-- To add support for more technologies, such as RichFaces, visit http://metawidget.org -->
</htmlMetawidget>
</metawidget>