Property change events occur when ever there is change in the property values. We assume that the component conforms with the Java Bean specification. JavaBean s property is accessed using the set or get methods. These methods are invoked by the application for setting or getting the values from the bean. This doesn’t have any …
JavaScript Validation
JavaScript can be used to validate data in the HTML documents before sending the content to the server. Validation occur at server side when client had entered data successfully and pressed submit button. We can use validation for some fields such as: to check whether required field is empty ? to check whether user has …
Spring – NoUniqueBeanDefinitionException: No qualifying bean of type is defined: expected single matching bean but found 2:
In spring, we can auto wire the objects by using the @Autowired annotation. This annotation has the intelligence to detect the most relevant types for the references by looking at the various criteria like variable name, object type, super class, generic type, qualifier, etc. However, in few scenarios it will find the 2 or more …
HTML5 Number Input Type
The number is input type is used for specifying numerical value. It is used to collect the number either it is integer or floating point. All known browsers use this as spinner which have up and down arrow at right side of the textbox to increase or decrease the number value. If we specify type=”number” …
JSF 2 Tutorials
This page (JSF 2 Tutorials) is regularly updated with latest information and articles on Java Server Faces (JSF) technology. If you come across any good JSF tutorials and not listed here, please send a mail to krishnas at javabeat.net or write it in the comments section. JavaServer Faces (JSF) which provides a Component-Based Architecture for developing reusable User Interface Components hides …
FileNotFoundException in Java
If you are working with the File APIs in Java, it is common that you would encounter the FileNotFoundException. This is a subclass of IOException. This Java exception is thrown by the classes FileInputStream, FileOutputStream, and RandomAccessFile. These classes trying to access a file in the system for the purposes of reading or writing into …
Java 8 Release and Features
Finally, Java 8 arrives on March 18, 2014. This release has been announced at EclipseCon 2014. It is the first major release in Java after two years of time. Java 8 comes with lot of new features which are new to the Java programming itself. From today you can download Java 8 and use it …
Prime Number Generation in Java
This simple example demonstrates how to get the prime numbers using Java program for the given range. What is prime number?. A number which is divided only by 1 and itself is known as the prime number. If you take an example, 7 is a prime number, because it can be divided by only itself(7) …