This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I had a question. In my application, if i select home address from a drop down menu and click "get home address" check box , the system autopopulates home address for me. If i select something else, abd tries to submit it, the system generates an error saying line 1 should be given if it is not the home address. I have created another checkbox for Office visit, which generates office address. But i have a problem with the following code (this is the one which generates error).
How can i include code so that the system will generate error if i select any other option from drop down other than home and "office". Basically i need to add office visit error also to this one (HOME_VISIT "or" OFFICE_VISIT")