Friday 27 July 2012

Elements In JSF

The JSF technology has its own set of elements, which together make this framework. The Core features of JSF are provided by these elements.  These Components are


  • UI Component
  • Renderer
  • Validator
  • Backing Beans
  • Converter
  • Events and Listeners
  • Message
  • Navigation
Describing UI Components:

           UI Component are the basic reusable components, such as labels, text boxes, and list boxes, used for developing user interface. We can define UI component as stateful objects maintained on the server side. the server communicates with the clients through these UI components. The components are simple JavaBeans Containing properties, methods, and events. The JSF UI components are also called Web application user interface components.

Describing the Renderer: 

          Most Web applications usually send a response to the web browser in the HTML format. Other client devices such as mobile phones or Personal Digital Assitants(PDAs) don't provide HTML browsers. some of the formats supported by these handled devices are WML and XHTML Basic. there, web applications need to respond in anther markup language. Since handheld technology is growing very fast, it is a good question to ask how existing applications can be supported by new devices.
      
         A renderer is a type of class that is responsible for encoding and decoding components

   1)Direct Rendering Model: The rendering logic is directly encapsulated into the UI component. therefore, there is no clear separation of functionality and presentation. This technique is used when we are sure that the component is being created for a particular client. as a result, the UI component is implemented in a single class. However, the reusability of the UI component is poor.

   2) In direct/ Delegated Rendering Model: This model uses a separate renderer for seperate UI component. Here this renderer, represented by the render class, does the work encoding and decoding. we can simply replace the set of renderer classes to display the output in a format compatible with some different  client

Thursday 26 July 2012

Introduction
JavaServerFaces(JSF) can be defined as a framework, which makes web application development easy by providing rich, powerful and ready to use user Interface(UI) components. The JSF Framework is based on the model-view-Controller(MVC) design pattern, which is one of the most popular design patterns available.

Saturday 21 July 2012

Step by Step Example for Many-to-Many in hibernate

           In many-to-many Association, one parent Pojo class object points one or more child pojo class object. Similarly one child pojo class object points one or more parent pojo class objects.

Monday 16 July 2012

Hibernate With Annotations

  • Data about data is called Meta Data
  • Configuring resources to pass their details to underlying software where the resources will be utilized for execution also comes under meta data operations

Saturday 16 June 2012

Session Tracking

By default all web application are stateless web application that means web applications can not use first request data for second request.this is called stateless.
But we can use one of the following four session tracking techniques to make them "stateless"


                    1.Hidden form fields
                    2.Cookies
                    3.HttpSession with Cookies
                    4.HttpSession with url rewriting

Friday 15 June 2012

Filters in Java


  • Servlet filters are a new addition to the servlet 2.3 realized in Oct 2000
  • Definition:
    • Filters are java classes that can intercepts request from a client before they access a resource, manipulate request from clients, intercepts response from resource before they sent back to the client.

ServletListeners

  • Listener is one of the most popular technologies used in the J2EE web application
  • It is part of the Java Servlet as defined in Servlet 2.3 but they have their own specific functionalities.