validation
-
Needing help in validating textboxes to check if the textbox is null. I am netbeans and doing web application. Anyone knows where to find tutorial on this?
-
Needing help in validating textboxes to check if the textbox is null. I am netbeans and doing web application. Anyone knows where to find tutorial on this?
-
Well, there is always the obvious place[^].
Just say 'NO' to evaluated arguments for diadic functions! Ash
i am now able to validation textboxes when the textboxes is null a error message will appear. Right now if the user enter the number 20 and he or she wants to add the number 20 again, an error will occour. how do i achieve tt? i tried google however have no clue on how to strt. Needing help..
-
i am now able to validation textboxes when the textboxes is null a error message will appear. Right now if the user enter the number 20 and he or she wants to add the number 20 again, an error will occour. how do i achieve tt? i tried google however have no clue on how to strt. Needing help..
Assuming you've split your code into MVC (Model, View and Controller) - and of course you did so ;-) You will store the data somewhere in a object. For this you're using a set-methode. This is a typical moment for checking integrity of the value:
public void setIValue(final int iValue){
if(null != iValue && 0 < iValue && 100 > iValue){
this.iValue = iValue; //
}
else{
// do funny action because value is not valid
}
}or you do delegate this validation to another class(when pushing some "OK"-button) or even your textbox itself (write an extension and trigger on lost of focus or keystroke(can become strange if validation takes to long)). regards, Torsten
I never finish anyth...
-
i am now able to validation textboxes when the textboxes is null a error message will appear. Right now if the user enter the number 20 and he or she wants to add the number 20 again, an error will occour. how do i achieve tt? i tried google however have no clue on how to strt. Needing help..
pancakeleh wrote:
i tried google however have no clue on how to strt.
I already gave you a link to the Java tutorials. I suggest you spend some more time going through them, especially the areas that you are having difficulty with.
Just say 'NO' to evaluated arguments for diadic functions! Ash