GraphicImage Example
1. Create JSF Project
Create a new Dynamic Web Project "graphicImage". Under "Configuration" select "Java Server Faces v2.0".
avaServer Faces (JSF 2) provides
a number of user interfaces components that cover the most common
requirements, one of the most important component is a
<h:graphicImage/> component. - See more at:
http://www.javabeat.net/jsf-2-graphicimage/#sthash.eHj4UIwd.dpuf
JavaServer Faces (JSF 2) provides a number of user interfaces components that cover the most common requirements, one of the most important component is a <h:graphicImage/> component.
avaServer Faces (JSF 2) provides
a number of user interfaces components that cover the most common
requirements, one of the most important component is a
<h:graphicImage/> component. - See more at:
http://www.javabeat.net/jsf-2-graphicimage/#sthash.eHj4UIwd.dpuf
1. Create JSF Project
Create a new Dynamic Web Project "graphicImage". Under "Configuration" select "Java Server Faces v2.0".
2. View Page
Create following "graphicImage.xhtml" file, Create file resources/images and place iTwine Technogis Logo image.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:graphicImage value="/resources/images/iTwine Technogis Logo.jpeg" width="80px" height="80px"/>
</html>
4. web.xml : Add welcome file
1: <welcome-file-list>
2: <welcome-file>faces/graphicImage.xhtml</welcome-file>
3: </welcome-file-list>
Comments
Post a Comment