カスタム タグがあり、内部要素の ID を設定できるようにしたい
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<f:subview rendered="#{not empty id}">
<h:message styleClass="message" id="#{id}" errorClass="message error"
warnClass="message warn" for="#{element}" />
</f:subview>
<f:subview rendered="#{not id}">
<h:message styleClass="message" errorClass="message error"
warnClass="message warn" for="#{element}" />
</f:subview>
</html>
しかし、私はいつも得ます
Empty id attribute is not allowed
ユーザーがIDを設定するとそれが使用され、そうでない場合はjsfが独自に生成する必要があることをアーカイブするにはどうすればよいですか