【发布时间】:2011-09-09 15:53:42
【问题描述】:
这是我的表格:
<h:body>
<h:form>
<h:panelGrid columns="3" >
<h:outputLabel for="name" value="Primeiro nome:" />
<h:inputText id="name" value="#{register.person.name}" >
<f:ajax event="blur" render="m_name" listener="#{register.validateName}" />
</h:inputText>
<rich:message id="m_name" for="name" />
//.. others fields
</h:panelGrid>
</h:form>
</body>
当我尝试在 Glassfish 上执行时出现以下错误:
javax.servlet.ServletException: <f:ajax> contains an unknown id 'm_name' - cannot locate it in the context of the component name
但如果我将 <rich:message ..> 更改为 <h:message..> 它可以工作(我希望它与 rich:message 一起工作,因为它返回图像和消息)
为什么会这样?我以前从来没有发生过,直到现在。
【问题讨论】:
标签: jsf jsf-2 richfaces glassfish-3