JSF 2 Tutorials and Examples


JavaServer Faces (JSF) which provides a Component-Based Architecture for developing reusable User Interface Components hides most of the complex stuffs that are happening in the View portion of the MVC-2 Architecture. The framework is not only limited to developing customized User Interface Components but also provides support for various Advanced Features like Event handling Mechanism, Validating User Inputs that are sent by the clients, Easy Page Navigation […]

PrimeFaces Collector Example


Collector is a simple utility to manage collections declaratively, collector requires a collection and a value to work with. It’s important to override equals and hashCode methods of the value object to make collector work. Even you would be adding a certain object into list of the same type of that object, however, you have […]

PrimeFaces ColorPicker Example


ColorPicker is an input component with a color palete, where it’s value should be a hex string. ColorPicker has two modes, default mode is popup and other available option is inline. Inline mode displays the picker directly into the view. 1. ColorPicker Tag Info 2. ColorPicker Tag Attributes 3. The View index.xhtml 4. Managed Bean ColorPicker.java […]

JQuery Callbacks Object


The Callbacks is reference to executable code or piece of executable code that is passed as an argument from other method which is invoked due to some kind of event. It can be used as base for new components to define their functionality. It will get fired when DOM component is ready. The callback() methods […]

JQuery bind() And unbind() Example


When we add an event to an element, we call this binding an event to that element. The binding means, attaching an event to the element. The Bind()event attaches one or more event handlers to the matching elements and specifies a function when the event occurs and also you can attach event handler directly to […]

Java PushbackReader Example


The PushbackReader is useful when you parse data from a Reader. Sometimes you would have the requirement to read ahead a few characters to see what is coming next, before you can determine how to interprete the current character. The PushbackReader allows that facility for the programmers. This class defines two constructors. PushbackReader(Reader in) – […]

Java BufferedWriter Example


BufferedWriter is useful in writing the sequence or stream of character to a file. The is fast compared to the FileOutputStream which is writing the stream of bytes. This class directly extends from the Writer class. It has two constructors. This class has the option to set the buffer size which is internally used by […]

Java StringReader Example


StringReader is extending from the Reader class. If you have string and wants to convert that to a Reader object, then StringReader is useful. It is a specialized version for using the Reader with strings. If you would like to read the Files, then choose FileReader instead of StringReader. This class has only one constructor […]

Java FileWriter Example


FileWriter class useful for writing the stream of characters to a file. FileWriter extends from the OutputStreamWriter. For writing streams of bytes, implement the FileOutputStream class. This class has the different constructors to create the instance for the file object. FileWriter(File file)- Constructs a FileWriter object given a File object. FileWriter(File file, boolean append) – […]

Java FileInputStream Example


FileInputStream is useful for reading the stream of bytes. If you want to read the characters, then consider using the FileReader. FileInputStream is ideal candidate for processing the image type of files which needed to be read as the binary streams. However, we can read the normal text files using the FileInputStream. This example demonstrates […]

Java LineNumberReader Example


In my previous example I have explained about the BufferedReader for reading the huge amount of data and parse it line by line. LineNumberReader is the specialized version of the BufferedReader where this class can store the line number in the file when it reads from the file. It is very useful when there is any […]

Please support the site
By clicking any of these buttons you help our site to get better