JSF2.0 + Richfaces 3.3.3, jsp not found error

喜夏-厌秋 提交于 2019-12-02 03:53:36

The return value of your action is used to find the new view to display. Either by finding a match for it in faces-config or if there is no mapping there by using it directly as the name of the page. As you return an empty string you end up with only .jsp as the filename. If you want to go back to the same page return null instead of an empty string.

Return null in displayButtonAction method

public String displayButtonAction() {
    displayValue = username;         
    return null;     
}

OR rewrite your action method with return type void

public void displayButtonAction() {
        displayValue = username;         

    }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!