Repository: wicket
Updated Branches:
  refs/heads/wicket-7.x 091dbbe4a -> e25eb04d4


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/e25eb04d
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/e25eb04d
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/e25eb04d

Branch: refs/heads/wicket-7.x
Commit: e25eb04d461bc2b63a7d62ca922091f1bd87a460
Parents: 091dbbe
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:37:02 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/e25eb04d/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