JSF 2 Tutorials and Examples

JSF-Thumbnail

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 […]

Append To File using FileOutputStream

java-thumbnail

In my previous example I have explained about how to write to a file using the FileOutputStream. This example demonstrates how to append to an existing file without creating the new file. By default, FileOutputStream creates new file or overwrite when we try to write into a file. If you want to append with the […]

Java PrintStream Example

java-thumbnail

In my previous example I have explained about the PrintWriter for printing the formatted output to the console and file. This example demonstrates how to use the PrintStream. Note that PrintWriter and PrintStream defines the similar methods and work very much similar, except that PrintWriter writes the sequence of characters and PrintStream writes the stream of […]

Java PrintWriter Example

java-thumbnail

Java provides PrintWriter for printing the well formatted output to the desired location.  This class takes the OutputStream or Writer as the input and prints the output with the human readable format. PrintWriter defines the following constructors: PrintWriter(File file) – Creates a new PrintWriter, without automatic line flushing, with the specified file. PrintWriter(File file, String […]

Java BufferedOutputStream Example

java-thumbnail

If you are writing the very much IO intensive application which needs to write huge amount of data to the files, then you have to do some kind of buffering to improve the performance. Here BufferedOutputStream will be helpful for writing the stream of characters into a file which internally manages a buffer for improving the […]

Java FileOutputStream Example

java-thumbnail

This example discuss about the FileOutputStream. This class extends from the OutputStream and used for writing the stream of bytes into a file. This class has the following constructors for creating the instance. FileOutputStream(File file) – Creates a file output stream to write to the file represented by the specified File object. FileOutputStream(File file, boolean […]

PrimeFaces Collector Example

primefaces-thumbnail

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

primefaces-thumbnail

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

jquery

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

jquery

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

java-thumbnail

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) – […]

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