You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/02/06 09:52:00 UTC
[7/38] git commit: WICKET-5003 Add wicket:for attribute in wicket.xsd
WICKET-5003 Add wicket:for attribute 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/9de6b6fe
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/9de6b6fe
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/9de6b6fe
Branch: refs/heads/reference-guide
Commit: 9de6b6fe4806b0d48dd66536e0b81e817df242d7
Parents: 0ab3cb5
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Jan 28 11:22:54 2013 +0100
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Jan 28 11:22:54 2013 +0100
----------------------------------------------------------------------
.../src/main/resources/META-INF/wicket-1.5.xsd | 27 ++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/9de6b6fe/wicket-core/src/main/resources/META-INF/wicket-1.5.xsd
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/resources/META-INF/wicket-1.5.xsd b/wicket-core/src/main/resources/META-INF/wicket-1.5.xsd
index 0f6fe5c..419df57 100644
--- a/wicket-core/src/main/resources/META-INF/wicket-1.5.xsd
+++ b/wicket-core/src/main/resources/META-INF/wicket-1.5.xsd
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://wicket.apache.org"
- xmlns:wicket="http://wicket.apache.org" elementFormDefault="qualified"
+ xmlns:wicket="http://wicket.apache.org"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/MarkUp/SCHEMA/xhtml-basic10.xsd"
+ elementFormDefault="qualified"
version="1.5">
<!-- types -->
@@ -77,6 +81,27 @@
</annotation>
</attribute>
+ <redefine schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml-basic10.xsd">
+ <attributeGroup name="xhtml.label.attlist">
+ <attributeGroup ref="xhtml.label:attlist"/>
+ <attribute ref="wicket:for"/>
+ </attributeGroup>
+ </redefine>
+
+ <attribute name="for" type="wicket:notEmptyToken">
+ <annotation>
+ <documentation>Can be used in HTML <![CDATA[<label]]> element to automatically link it
+ to a form element. The value of this attribute must have the same value of
+ the form component's wicket:id attribute.
+ </documentation>
+ </annotation>
+ <simpleType>
+ <restriction base="wicket:token">
+ <pattern value="([^:]+(:[^:]+)*)?" />
+ </restriction>
+ </simpleType>
+ </attribute>
+
<attribute name="message">
<annotation>
<documentation>Used on any tag that we want Wicket to provide an