Archive | September, 2008

Custom DateTimeConverter in JSF

September 24, 2008

1 Comment

By default JSF using GMT timezone to convert the date into display format. Here is a simple solution where you can provide your custom date time converter. 1) Write a new custom converter by extending existing DateTimeConverter class. 1 2 3 4 5 6 7 8 9 10 11 package com.company.project.converter; import java.util.TimeZone; import javax.faces.convert.DateTimeConverter; [...]

email

h:graphicImage in JSF

September 22, 2008

0 Comments

The h:graphicImage tag renders an HTML image tag. 1 <h:graphicImage id="jsfimage" value="/images/jsfimage.gif" width="200" height="50" /> h:graphicImage Tag Attributes alt The alt attribute is a standard HTML attribute that sets the alternate textual description rendered by this component. binding The value-binding expression linking this component tag to a backing bean property. dir The dir attribute is [...]

New Features in JSP 2.0

September 19, 2008

0 Comments

New Features in JSP 2.0 JSP 2.0 is released with new promises. JSP 2.0 is an upgrade to JSP 1.2 with several new and interesting features. These features makes the life of web application developers and designers easier. The JavaServer Pages 2.0 Specification is fully backwards compatible with version 1.2. JSP 2.0 allows the developer [...]

Benefits of using Web Services

September 19, 2008

0 Comments

Benefits of using Web Services Exposing the function on to network: A Web service is a unit of managed code that can be remotely invoked using HTTP, that is, it can be activated using HTTP requests. So, Web Services allows you to expose the functionality of your existing code over the network. Once it is [...]

What is SOA?

September 19, 2008

0 Comments

SOA Service Oriented Architecture or SOA for short is a new architecture for the development of loosely coupled distributed applications. In fact service-oriented architecture is collection of many services in the network. These services communicate with each other and the communications involves data exchange & even service coordination. Earlier SOA was based on the DCOM [...]

What is Web 2.0?

September 19, 2008

0 Comments

Web 2.0, a phrase is a cluster term for the new phase of World Wide Web, which was coined by O’Reilly and Media live International in 2003 and popularized by the first Web 2.0 conference in 2004. There is no certain definition of Web 2.0, even though; it stands for the transformation of the web [...]

What is Web 3.0?

September 19, 2008

0 Comments

Web 3.0 is a term, which definition is not confirmed or defined so far as several experts have given several meaning, which do not match to each other, but sometimes it is referred to as a Semantic Web. In the context of Semantic Web, Web 3.0 is an evolving extension of the World Wide Web [...]

What is Adobe Flex?

September 18, 2008

0 Comments

Flex is a programming language developed on adobe technology to enhance the users capability in building rich internet applications. This latest adobe technology possesses all flash features. Flex is embedded with two languages MXML and Action Script respectively. Among all known scripting languages Action Script is one of them that comes along with Flex. Adobe [...]

Mixing Generics And Non-Generics Code

September 18, 2008

0 Comments

If we are work on code that uses generics that is fine and what will happen if we want to mix both generic and non generic code. Consider below Animal class 1 2 3 4 5 class Animal{ public String toString() { return "Animal"; } } if we create the list like below will it [...]

How to use ? extends in Generics?

September 18, 2008

0 Comments

In generics as we know we can not assign subclass generic type to super class generic type, for example 1 List<animal> list = new ArrayList<dog>(); will not compile even though Dog IS-AN Animal. the reason for this is already explained in generics basics section. How can we solve this particular problem????? we can solve this [...]