Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML
 
 
Search All Tutorials
  

 
Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML
 
JSF
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments

Downloading MyFaces example integrated with tomahawk

                          

Downloading : 
If you are beginner in the field of JSF framework then really its necessary to follow the examples provided by any source. Here apache itself has provided examples in a zipped format. These examples are good implementation of Tomahawk components. Tomahawk examples can be downloaded from http://www.apache.org/dyn/closer.cgi/myfaces/binaries/tomahawk-examples-1.1.6-bin.zip or http://myfaces.apache.org/download.html. The downloaded file will be a zip file named  tomahawk-examples-1.1.6-bin.zip. Extract the zip file and you will get 4 war files.

  1. myfaces-example-blank-1.1.6.war
  2. myfaces-example-simple-1.1.6.war
  3. myfaces-example-tiles-1.1.6.war
  4. myfaces-example-wap-1.1.6.war

Here we will be using myfaces-example-simple-1.1.6.war to understand features of MyFaces JSF implementation and developing JSF application using MyFaces Tomahawk components.
For this just place myfaces-example-simple-1.1.6.war file to web-apps directory of your Tomcat 6.0 server. Restarting server will automatically extracts this war file to the directory of same name as war file. In this tutorial we have changed the name of myfaces-example-simple-1.1.6.war file to myfaces.war so when server restarts there will be a directory of name myfaces.
Place http://localhost:8080/myfaces  URL to the address bar of your browser and hit enter key. You will get a list of examples like :

  1. Sample 1
  2. Sample 2
  3. File upload
  4. Tabbed Pane
  5. Calendar and many more.

Just click on any link in the list and see the functionalities provided by the examples. In this tutorial some examples are shown below :

  1. If we click on link Calendar, a page will open showing a calendar with the current date selected. There are input boxes to enter date but you can select it from calendar when button ahead is clicked.


  2. If we click on File upload link then the page below appears where browse button, when pressed, opens a window to select the file to upload.


  3. When we click on Data Scroller link, the page appeared below opens which displays specific no. of data at once but provides links to navigate to the next and previous list of data.


  4. Clicking on Sortable link presents the page below. In this we can sort the data according to Car type or Car color by clicking on Car type and Car color links. 
    If we click on Car type link, it sorts the data according to car type. You can see the page below.



    If we click on Car color link, it sorts the data according to color of the car. You can see the page below.


  5. We can imbed more than functionalities into one. You can see it clicking on Paged and Sortable (dynamic number of columns; mouseover) link. This renders the page below which includes sorting, scrolling and mousrover event functionality. Taking over the mouse to any row makes the row bluish.


  6. Clicking on the link Tree opens the page below which provides data in a tree like structure. Clicking the (+) sign appeared before the data explores the tree below and (-) sign takes it to the previous state i.e. hides the data of this root of the tree.


  7. Click on JSCookMenu link and you will see the page below. Taking over the mouse to items explores its sub-items. You can select any one of them. When the mouse is out of any item then all sub-items disappears.


You had a glance to the examples developed using MyFaces with Tomahawk. You can go through the code and learn developing JSF application. You can see code for these examples in web-apps\myfaces directory of  Tomcat server. In these examples, tomahawk tag library has been used to create many components with added functionality. You can create better UI using these components in your application.

[an error occurred while processing this directive]

                          

Facing Programming Problem?
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

2 comments so far (post your own) View All Comments Latest 10 Comments:

If you have installed eclipse europa in your system then follow the steps:
go to window->preferences and click.
click "Web and XML"->"JavaServe Faces Tools"->"Libraries".
click "New" button on the right side of the window.
click "add" button. Now a window will appear. Go to the directory where all jar files related to the JSF are present(For example C:\apache-tomcat-5.5.23\webapps\myfaces\WEB-INF\lib)
and select jar files used for JSF application.
Now give any "library name" and click finish.
Now you can call pages of the application.

Posted by ravi on Thursday, 08.9.07 @ 20:23pm | #23037

Hi this are great examples but can u give me some idea how to execue this examples in eclipse

Posted by shiva on Thursday, 08.9.07 @ 09:50am | #22994

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Hot Web Programming Job

Java String toLowerCase Example
Java String toCharArray Example
Java String substring Example
Java String indexOf Example
Java String startsWith Example
Java String hashCode Example
Java String matches Example
Java String length Example
Java String lastIndexOf Example
Java String isEmpty Example
Java String equalsIgnoreCase Example
Java String equals Example
Java String endsWith Example
Java String copyValueOf Example
Java String contentEquals Example
  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.