开发者

Validate input field to display another input field on the same page

using spring 3.0 I have page on web flow which has a password input field once the user finishes entering password i need to validate the password if i开发者_StackOverflow社区t is right then display email id input field on the same page.

How can i achieve this in flow?

Thanks


Your example is a page that has a conditionally displayed element. The easiest way to do this, if you are not using ajax, is to create 2 pages (called page1 and page2). Page1 has only the password field. Page2 has both the password field and the email field. After the user submits page1, if the password has been validated, transition to the view-state that displays page2. After the user submits page1, if the password is not valid, transition to the view-state that displays page1.

Dont flame me bro, this is an answer targeted at the percieved level of the questioner's experience (new).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜