Define own feedback messages in Wicket

前端 未结 4 2193
自闭症患者
自闭症患者 2021-02-13 12:25

How do I define my own feedback messages in Wicket? For example: if I give an incorrect username, I want to get an error message like \"The user name in incorrect, try to login

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-13 12:36

    you should set Feed back message to Session

    message = "message";
    Session.get().getFeedbackMessages().success(null, message);
    

提交回复
热议问题