ヘルプとエラーメッセージ
ui:inputDefaultError コンポーネントを作成および処理するために入力コンポーネントを使用すると、エラーメッセージで ariaDescribedby 属性が自動的に取得されます。ただし、アクションを手動で管理する場合は、ui:inputDefaultError コンポーネントと関連出力を関連付ける必要があります。
コードの実行に失敗した場合は、ariaDescribedby が欠落しているかどうかを確認してください。コンポーネントは次の例のようになります。
1swfobject.registerObject("clippy.codeblock-0", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17<!-- Good: aria-describedby is used to associate error message -->
18<label for="fname">Contact name</label>
19<input name="" type="text" id="fname" aria-describedby="msgid">
20<ul class="uiInputDefaultError" id="msgid">
21 <li>Please enter the contact name</li>
22</ul>
23