Repository: wicket
Updated Branches:
  refs/heads/master 2c673f340 -> b0c5c97e0


WICKET-6297 Add wicket:label tag in wicket.xsd


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/b0c5c97e
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/b0c5c97e
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/b0c5c97e

Branch: refs/heads/master
Commit: b0c5c97e065c1cbd24db12b95a454b3bc11324c0
Parents: 2c673f3
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Fri Dec 16 18:37:02 2016 +0100
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Fri Dec 16 18:38:15 2016 +0100

----------------------------------------------------------------------
 .../src/main/resources/META-INF/wicket.xsd      | 24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/b0c5c97e/wicket-core/src/main/resources/META-INF/wicket.xsd
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/resources/META-INF/wicket.xsd 
b/wicket-core/src/main/resources/META-INF/wicket.xsd
index 5f8776e..92144b3 100644
--- a/wicket-core/src/main/resources/META-INF/wicket.xsd
+++ b/wicket-core/src/main/resources/META-INF/wicket.xsd
@@ -307,4 +307,28 @@
                        </documentation>
                </annotation>
        </element>
+
+       <element name="label">
+               <annotation>
+                       <documentation>Wicket will output a FormComponent's 
label (FormComponent#getLabel()) without
+                               requiring a manual extra component such as 
Label or FormComponentLabel.</documentation>
+               </annotation>
+               <complexType mixed="true">
+                       <complexContent>
+                               <extension base="wicket:mixedContent">
+                                       <attribute name="for" use="optional" 
type="wicket:notEmptyToken">
+                                               <annotation>
+                                                       <documentation>The 
wicket:id of FormComponent which label should be used.</documentation>
+                                               </annotation>
+                                       </attribute>
+                                       <attribute name="key" use="optional" 
type="wicket:notEmptyToken">
+                                               <annotation>
+                                                       <documentation>The 
resource id used for lookup. Acts as &lt;wicket:message&gt; </documentation>
+                                               </annotation>
+                                       </attribute>
+                               </extension>
+                       </complexContent>
+               </complexType>
+       </element>
+
 </schema>

Reply via email to