我正在尝试读取放置在 ap:notificationBar 中的 inputText,但我只得到 null 作为它的输入。jsf代码是:
<h:form>
<p:notificationBar position="top"
effect="slide"
styleClass="top"
id="notificationPanel"
widgetVar="bar" >
<h3>Subscribe</h3>
Add your email adress here
<h:panelGrid columns="3" cellspacing="20">
Email:
<p:inputText value="#{detailsBean.email}" />
<p:commandButton value="Submit" action="#{detailsBean.submitEmail}" onclick="bar.hide()"/>
</h:panelGrid>
</p:notificationBar>
</h:form>