登録フォームの場合、次のような単純なものがあります。
<tr:panelLabelAndMessage
label="Zip/City"
showRequired="true">
<tr:inputText
id="zip"
value="#{data['registration'].zipCode}"
contentStyle="width:36px"
simple="true"
required="true" />
<tr:inputText
id="city"
value="#{data['registration'].city}"
contentStyle="width:133px"
simple="true"
required="true" />
</tr:panelLabelAndMessage>
<tr:message for="zip" />
<tr:message for="city" />
最後の 2 行を含めると、検証エラーで 2 つのメッセージが表示されます。最後の行を省略すると、javascript アラートが表示されますが、これは私が望んでいるものではありません。
何らかの方法で検証失敗メッセージを 1 つだけ表示する解決策はありますか?
どうもありがとう!