I have hml form with two input text
<input type="text" wicket:id = "query"/>
<input type="text" wicket:id= "address"/>
I need to implement choose mechanism. When someone start to write query then address should be disable and vice versa.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add an behavior to the query textfields that listens to onChange event. In the
onEventmethod disable the address textfield and add it to the ajax request target.See this example how to add the behavior and how to disable the other component. Keep in mind that you might add some checks if the other component has to be enabled or disabled.