Jsf 无法访问目标,标识符';咆哮';已解析为空

Jsf 无法访问目标,标识符';咆哮';已解析为空,jsf,Jsf,我希望JSF错误消息出现在弹出窗口中,而不是内联。在JSF中似乎没有简单的方法来使用primefaces咆哮组件 但是得到这个错误: 无法访问目标,标识符“growlT”解析为null 托管Bean import javax.faces.bean.SessionScoped; @SessionScoped @ManagedBean(name="growlT") public class GrowlView { private String message; public S

我希望JSF错误消息出现在弹出窗口中,而不是内联。在JSF中似乎没有简单的方法来使用primefaces咆哮组件

但是得到这个错误: 无法访问目标,标识符“growlT”解析为null

托管Bean

import javax.faces.bean.SessionScoped;
@SessionScoped

@ManagedBean(name="growlT")
public class GrowlView {

    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
XHTML:

    <table>
        <tbody>
            <tr>
                <td align="left">Message:</td>
                <td style="width: 5px">&#160;</td>
                <td><h:inputText styleClass="inputText" id="message1"
                        value="#{growlT.message}">
                    </h:inputText>
                </td>
            </tr>
        </tbody>
    </table>
    <h:commandButton styleClass="commandButton" type="submit"
        value="Submit" id="growlT1" actionListener="#{growlT.saveMessage}" update="growl">
    </h:commandButton>

信息:
 

有人能帮我吗?

你发布的代码中没有咆哮。顺便说一句,
h:commandButton
I没有为growl复制任何与PF相关的代码。growlT是托管bean:@ManagedBean(name=“growlT”)是的,更新不存在,但它在commandbutton启动之前给出了错误,这可能会发生,但它与PrimeFaces或其咆哮无关。搜索带有类似主题(如错误)的Q/A。