我正在为一个小问题而苦苦挣扎。这是我的设置:
- 简单的 JSF 2.x xhtml 页面,具有简单的形式
- 用于登录名和密码的托管 Bean
- 与提交按钮的“操作”绑定的托管 bean
- 自定义验证器
- java 测试用例
我想触发(来自测试用例)表单提交,以便触发验证器并托管绑定到“的方法”提交按钮的“action”属性。
这可能吗?我用谷歌搜索了一下并尝试了一些东西,但仍然无法触发验证。
我可能无法正确处理 POST 请求或在已部署的 Web 应用程序中设置某些内容?
I'm struggling with a small problem. Here is my setup:
- simple JSF 2.x xhtml page, with simple form
- managed bean for login name and password
- managed bean tied to "action" of submit button
- custom validator
- java test case
I want to trigger( from test case ) form submission, in order to trigger validator and managed been method tied to "action" attribute of submit button.
Is this even possible? Ive googled a bit and tried few things, but still fail to trigger validation.
Possibly Im failing to address POST request properly or to setup something in deployed web app?
发布评论
评论(1)
是的,很有可能。
DIV
中的消息参见
Yes possible very well.
DIV
See