JavaServerFaces
Log-in
|
Main
:
JavaServerFaces
Top Menu
Documentation
Show
:
Comments
Attachments
History
Print
:
Print
Print preview
Export as PDF
Export as RTF
Export as HTML
Export as XAR
Wiki code for
JavaServerFaces
Hide Line numbers
1: 1.1.1 Useful links 2: * [J2EE 1.4 tutorial>http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html] 3: * [JSF 1.1 release notes>http://java.sun.com/j2ee/javaserverfaces/docs/ReleaseNotes.html] 4: * [java.sun.com homepage for JSF>http://java.sun.com/j2ee/javaserverfaces/] 5: * [directory of JSF info>http://dmoz.org/Computers/Programming/Languages/Java/Server-Side/JavaServer_Faces/ dmoz.org] 6: * [dmoz.org directory of JSF info>http://dmoz.org/Computers/Programming/Languages/Java/Server-Side/JavaServer_Faces/] 7: * [JSF spec>http://java.sun.com/j2ee/javaserverfaces/download.html] 8: * [JSF central>http://www.jsfcentral.com/] 9: 10: 11: 1.1.1 Intro Tutorials 12: * [JavaRanch JSF tutorial>http://www.javaranch.com/newsletter/200404/Journal200404.jsp#a3] 13: 14: 15: 1.1.1 THINGS TO DO: 16: * customize the error messages given by the provided validators 17: * create custom validator that validates multiple fields (like a 3 field date validator) 18: * add a [http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFDevelop5.html value change event listener]. I don't know what they're for yet, but they sound interesting. 19: * dynamically build the values given by drop-downs (for instance, using info from a database) 20: * dynamically build a page like the userpages multi-edit page that has the same form repeating an arbitrary number of times. 21: * create my own custom converter 22: * do user verification on every page view (essentially verify that the Beacon cookie is valid and corresponds to a valid user in the DB) and send the user to the login page if they're not logged in. 23: * Make sure that the h:selectOneMenu validator automatically ensures that submitted values actually are from the expected set. If it doesn't then add a validator that ensures it's from the proper set. 24: * Have one page that sends a user to different pages based on the values entered (for instance, a radio button that selects destination sites). This will also accomplish the goal of "Faces Request Generates Non-Faces Response". 25: * Get MyEclipseIDE working with Eclipse 3.0RC1 and see if it's a good substitute for Exadel's JSF Studio. 26: * Eliminate more junk from the JBoss startup so that it doesn't take 10s on each restart. 27: * make sure the text converter for the decimal field is actually chopping off the numbers past the 2nd decimal. This may be something that's fixed in JSF 1.1. 28: 29: 30: 1.1.1 THINGS DONE 31: * Have an action method in the managed bean that is called when the page is submitted so that all fields are validated together (thus allowing validation based on multiple fields together, like require that username and password be different). 32: * dynamically initialize fields particular values and then start the JSF app (or, to take the title of section 2.1.1 of the spec, "Non-Faces Request Generates Faces Response". 33: * create my own custom validator and have it use its own error messages 34: * switch the app server used by Exadel's JSF Studio from Tomcat to JBoss. 35: * use the provided validators and converters to: 36: ** require field 37: ** ensure a number is within a particular range 38: ** ensure a decimal number fits a particular format 39: * have form values from a submitted page then be displayed on the result page 40: * create page that, when submitted, goes to another page 41: 42: 43: 1.1.1 EXAMPLE CODE 44: To iterate through the list of messages for the current page: 45: 46: {code} 47: FacesContext fc = FacesContext.getCurrentInstance(); 48: Iterator messages = fc.getMessages(); 49: FacesMessage fm = (FacesMessage)messages.next(); 50: {code}
Search
G42 Nav
home
send me mail!
g42websiteATg42.org
My Projects
Gnome
Alarm Clock
Super Monkey Ball costume
Q*Bert Costume
mylife
Burger Time
Kick Ass Embroidery
Knowlist.com
Breast Lift
Centipede Costume
I Must Play
Q*bert Steps
Tetris Jigsaw Puzzle
Frogger Bridge
Pac-Man Costume
Metal Pac-Man
Rolling Ball Systems
Java Games I Wrote
My Interests
Geocaching
DDR
Favorite Books
My Stuff
My Tools
My HUGE PC Case
My Video Games
Pac-Man Collection
Keychain Collection
My Star
Programming
ProductivityTools
TechTopics
Programming Tips
Java Server Faces
Quick Links
Home
Index
What's New
Blog
Calendar
Photo Albums
Sandbox
Tags
Navigation
Blog
Categories
Web Home
Wiki Launch
Main
3D
Ajax
Alarm Clock
Alarm Clock Build
Alarm Clock Design
Alarm Clock Wear
All Docs
Amazon Com Feeds
Ant App
Anthro
Apache Commons
Apartment Complex
Asterisk at Home
Attention Deficit
Be AMillionaire
Bean Shell
Big Numbers
Blender
Breast Technology
Broken Man
Buhler Memorial Scholarship
Burger Time
Burr Stoutheart
Cartogram
Centipede Costume
Chess
Chinese Language
Comics
Computer General Todo
Computer Setup
Computer Tips
Connection Pool
Constitution
Costume Making
Cow
Curing Tendonitis
DDR
Dashboard
Db Tools
Dinosaur
Domain Names
Dragon
Eclipse Setup
Eclipse Working Set Generator
Embedded Programming
Equations Of Life
Eudora Mail
Event Calendar
Favorite Books
Feed Demon
Find Class
Firefox Setup
Flash Programming
Fortytwo Name Change
Free Content And Data
Freemarker Templating
Frogger Bridge
G42Main Page
GWT
Games
Geocaching
Geoff Todo
Gnome
Gnome Build
Gnome Design
Gnome Wear
Gnome Wear2
Good Stuff
Google
Graphics Tutorials
Halloween Costumes
Happy Page
Health
Hibernate JPA
Hibernate Performance
Highest Form Of Accomplishment
Home Page
How To Be Funny
How To Sew ASphere
How To Sew ASphere Derivation
Html Access Keys
Html Design
IFComp2004Reviews
IFComp2006Beta
IFComp2008
IMust Play
Image Buttons
Interactive Fiction
Interactive Fiction Todo
Interesting Blogs
Interview Questions
JForum
JXPath API
Java3D
Java Annotations
Java Class Jar Locater
Java Collections
Java Forums
Java Games IWrote
Java Generics
Java Management Extensions
JavaServerFaces
Java Templates
Java W
Javadocs
Just Me
Keychain Collection
Kick Ass Embroidery
Kingdom Of Loathing
Legacy Of The Wizard
Linux Commands
Linux Setup
Log4j Api
Lunarpages Web Hosting
Macro Key Board Control
Magic
Main Stream Media
Mantis Bug Tracker
Mapping
Metal Pacman
Metaphorical Checkbox
Mini Golf
Mini Websites
Misc Interesting Stuff
Misc Project Ideas Todo
Misc Todo
Mozilla Browser
Mvn Forum
My Career
My Collections
My Education
My History
My Huge Pc Case
My Interests
My Mindset
My Programming
My Projects
My Resume
My Star
My Stuff
My Tools
Mysql Settings
Ontology
Open Id
Opera Browser
Outlook
P4Profiler
PCAnywhere Vs Terminal Services
Pacman Collection
Pacman Costume
Pacman Cross Stitch2
Pacman Cross Stitch3
Pacman Crossstitch Huge
Philosophy
Playing Ms Pacman To Win
Postgresql Db
Productivity Tools
Programming Knowledge
Programming Tips
Python
Qbert Costume
Qbert Costume Construction Pics
Qbert Costume Halloween Pics
Qbert Costume Plans
Qbert Steps
Qmail Setup
Quick Ref
Recent Members
Recipes
Reduce Processors
Regular Expressions
Replay TV
Rolling Ball Systems
Rss Feeds
SQuirre LSQLclient
Scala
Science Fiction
Sequence Of Interests
Setup At Work
Small Pc
Sonic Blast Man
Sql Tips
Stripes
Struts Api
Subversion Setup
Super Monkey Ball
Super Monkey Ball Building Ball
Super Monkey Ball Designing Ball
Super Monkey Ball Designing Costume
Super Monkey Ball Halloween2007Pictures
Super Monkey Ball Making Costume
Tads3Lang
Tags
Taskbar Commander
Tech Tips
Tech Topics
Test1
Tetris Jigsaw Puzzle
Text Adventures
The Be Os
The Happy Camping Trip
The Thinker
Thunderbird Newsreader
Tiki Wiki
Unemployment Min Wage
Unix Scripting
Web Home
Website Design
Website Todo
Whats New
Why Should ICare What Color The Bikeshed Is
Win2k3
Win2k Os
Win Xp Os
Woodworking Projects Todo
Wsu Html Transcript
XPath API
Xml Db
You Need Perspective
collecting Sites
cross stitch patterns
css Strangeness
decryption
g42changes
javascript Get Url Param
qmail Install
temp
test
Photos
New Album
Web Home
Sandbox
Table Training
Web Home
Scheduler
Watch List Job1
Watch List Job2
Watch List Job3
Watch List Job4
Web Home
Stats
Activity
Activity Data
All Time Activity
Best Referrers
Current Month Activity
Current Week Activity
Current Year Activity
Document
Least Active Contributors
Macros
Most Active Contributors
Most Edited Pages
Most Edited Spaces
Most Referred Pages
Most Viewed Pages
Most Viewed Spaces
Referrer
Skin
Visit
Web Home