You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by al...@apache.org on 2010/07/31 00:37:34 UTC

svn commit: r980988 [7/8] - in /myfaces/gsoc/html5-comp-lib/trunk: ./ html5-comp-lib-core/ html5-comp-lib-core/src/ html5-comp-lib-core/src/main/ html5-comp-lib-core/src/main/java/ html5-comp-lib-core/src/main/java/META-INF/ html5-comp-lib-core/src/mai...

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputTextBean.java
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputTextBean.java?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputTextBean.java (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputTextBean.java Fri Jul 30 22:37:29 2010
@@ -0,0 +1,252 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.html5.examples.showcase.beans;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.model.SelectItem;
+
+@ManagedBean(name="inputTextBean")
+public class InputTextBean
+{
+
+    private Integer firstNumber;
+    private Integer secondNumber;
+
+    private String keyword = "orange";
+    private String tel = "+902125555555";
+    private String longText;
+    private String topSecret;
+    private String url = "ht    tp://www.google.com ";
+
+    private String email = "orange@juice.com";
+    private String secondaryEmail;
+
+    private String movieName;
+
+    private String someParam;
+
+    public List<SelectItem> getSuggestionItems()
+    {
+        List<SelectItem> items = new ArrayList<SelectItem>();
+
+        if (movieName != null)
+        {
+            for (String movie : movieNames)
+            {
+                if (movie.startsWith(this.movieName))
+                    items.add(new SelectItem(movie, null));
+            }
+        }
+
+        return items;
+    }
+
+    public List<SelectItem> getStaticSuggestionItems()
+    {
+        List<SelectItem> items = new ArrayList<SelectItem>();
+
+        // get top 20
+        for (int i = 0; i < 20; i++)
+        {
+            String str = movieNames[i];
+            items.add(new SelectItem(str, null));
+        }
+
+        return items;
+    }
+
+    public String getSecondaryEmail()
+    {
+        return secondaryEmail;
+    }
+
+    public void setSecondaryEmail(String secondaryEmail)
+    {
+        this.secondaryEmail = secondaryEmail;
+    }
+
+    public String getSomeParam()
+    {
+        return someParam;
+    }
+
+    public void setSomeParam(String someParam)
+    {
+        this.someParam = someParam;
+    }
+
+    public String getMovieName()
+    {
+        return movieName;
+    }
+
+    public void setMovieName(String movieName)
+    {
+        this.movieName = movieName;
+    }
+
+    public String getUrl()
+    {
+        return url;
+    }
+
+    public void setUrl(String url)
+    {
+        this.url = url;
+    }
+
+    public String getTel()
+    {
+        return tel;
+    }
+
+    public void setTel(String tel)
+    {
+        this.tel = tel;
+    }
+
+    public String getLongText()
+    {
+        return longText;
+    }
+
+    public void setLongText(String longText)
+    {
+        this.longText = longText;
+    }
+
+    public String getTopSecret()
+    {
+        return topSecret;
+    }
+
+    public void setTopSecret(String topSecret)
+    {
+        this.topSecret = topSecret;
+    }
+
+    public String getEmail()
+    {
+        return email;
+    }
+
+    public void setEmail(String email)
+    {
+        this.email = email;
+    }
+
+    public Integer getFirstNumber()
+    {
+        return firstNumber;
+    }
+
+    public void setFirstNumber(Integer firstNumber)
+    {
+        this.firstNumber = firstNumber;
+    }
+
+    public Integer getSecondNumber()
+    {
+        return secondNumber;
+    }
+
+    public void setSecondNumber(Integer secondNumber)
+    {
+        this.secondNumber = secondNumber;
+    }
+
+    public String getKeyword()
+    {
+        return keyword;
+    }
+
+    public void setKeyword(String keyword)
+    {
+        this.keyword = keyword;
+    }
+
+    public int getResult()
+    {
+        return ((firstNumber == null) ? 0 : firstNumber) * ((secondNumber == null) ? 0 : secondNumber);
+    }
+
+    public String someAction()
+    {
+        return "";
+    }
+
+    private static String[] movieNames = new String[]
+    {
+            "Java 4 Ever", "The Shawshank Redemption", "The Godfather", "The Godfather: Part II",
+            "The Good, the Bad and the Ugly", "Pulp Fiction", "Toy Story 3", "Schindler's List", "12 Angry Men",
+            "One Flew Over the Cuckoo's Nest", "Star Wars: Episode V - The Empire Strikes Back", "The Dark Knight",
+            "The Lord of the Rings: The Return of the King", "Star Wars: Episode IV - A New Hope", "Seven Samurai",
+            "Casablanca", "Goodfellas", "Fight Club", "City of God",
+            "The Lord of the Rings: The Fellowship of the Ring", "Raiders of the Lost Ark", "Rear Window", "Psycho",
+            "The Usual Suspects", "Once Upon a Time in the West", "The Silence of the Lambs", "The Matrix", "Se7en",
+            "Memento", "It's a Wonderful Life", "The Lord of the Rings: The Two Towers", "Sunset Blvd.",
+            "Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb", "North by Northwest",
+            "Citizen Kane", "The Professional", "Apocalypse Now", "Forrest Gump", "American Beauty",
+            "American History X", "Taxi Driver", "Terminator 2: Judgment Day", "Vertigo", "Lawrence of Arabia",
+            "Alien", "Amélie", "Saving Private Ryan", "WALL·E", "The Shining", "A Clockwork Orange", "Paths of Glory",
+            "The Departed", "The Pianist", "To Kill a Mockingbird", "Aliens", "The Lives of Others", "Spirited Away",
+            "M", "Double Indemnity", "Eternal Sunshine of the Spotless Mind", "Chinatown", "Requiem for a Dream",
+            "L.A. Confidential", "Reservoir Dogs", "The Third Man", "Das Boot", "The Treasure of the Sierra Madre",
+            "Monty Python and the Holy Grail", "City Lights", "Pan's Labyrinth", "The Bridge on the River Kwai",
+            "Raging Bull", "The Prestige", "Back to the Future", "Inglourious Basterds", "2001: A Space Odyssey",
+            "Life Is Beautiful", "Modern Times", "Singin' in the Rain", "Some Like It Hot", "Amadeus", "Up",
+            "Downfall", "Full Metal Jacket", "Braveheart", "Cinema Paradiso", "The Maltese Falcon",
+            "Once Upon a Time in America", "All About Eve", "Rashômon", "Metropolis", "The Green Mile", "Gran Torino",
+            "The Elephant Man", "The Great Dictator", "Sin City", "Rebecca", "The Apartment", "Gladiator", "The Sting",
+            "The Great Escape", "Indiana Jones and the Last Crusade", "Slumdog Millionaire", "Avatar",
+            "Star Wars: Episode VI - Return of the Jedi", "Unforgiven", "Bicycle Thieves", "Jaws", "Batman Begins",
+            "Die Hard", "Blade Runner", "On the Waterfront", "Oldboy", "Mr. Smith Goes to Washington", "Hotel Rwanda",
+            "No Country for Old Men", "Touch of Evil", "The Seventh Seal", "Fargo", "Princess Mononoke",
+            "For a Few Dollars More", "The Wizard of Oz", "District 9", "Heat", "Strangers on a Train",
+            "Cool Hand Luke", "Donnie Darko", "High Noon", "The Sixth Sense", "Notorious", "The Deer Hunter",
+            "There Will Be Blood", "Snatch.", "Annie Hall", "Kill Bill: Vol. 1", "The Manchurian Candidate",
+            "The General", "The Big Lebowski", "Platoon", "Yojimbo", "Into the Wild", "Ran", "Ben-Hur", "The Wrestler",
+            "The Big Sleep", "Million Dollar Baby", "The Lion King", "It Happened One Night",
+            "Witness for the Prosecution", "Life of Brian", "Butch Cassidy and the Sundance Kid", "Toy Story",
+            "The Bourne Ultimatum", "Wild Strawberries", "Finding Nemo", "Trainspotting", "Gone with the Wind",
+            "Kick-Ass", "Stand by Me", "The Terminator", "Groundhog Day", "The Graduate", "Scarface", "The Thing",
+            "Amores Perros", "Star Trek", "Dog Day Afternoon", "Ratatouille", "Gandhi", "V for Vendetta",
+            "Lock, Stock and Two Smoking Barrels", "The Wages of Fear", "How to Train Your Dragon", "Twelve Monkeys",
+            "The Grapes of Wrath", "The Secret in Their Eyes", "The Gold Rush", "Casino", "8½",
+            "Grave of the Fireflies", "Diabolique", "The Night of the Hunter", "Judgment at Nuremberg",
+            "The Incredibles", "The Princess Bride", "The Killing", "The Wild Bunch", "Kind Hearts and Coronets",
+            "Children of Men", "The Exorcist", "In Bruges", "Sunrise: A Song of Two Humans",
+            "The Best Years of Our Lives", "The Kid", "Nights of Cabiria", "The Hustler", "Dial M for Murder",
+            "Good Will Hunting", "Rosemary's Baby", "Ed Wood", "Harvey", "Big Fish", "King Kong",
+            "A Streetcar Named Desire", "Let the Right One In", "The Diving Bell and the Butterfly", "Sleuth",
+            "Magnolia", "Kill Bill: Vol. 2", "Rocky", "Letters from Iwo Jima", "Shadow of a Doubt", "Mystic River",
+            "Stalag 17", "Network", "Brief Encounter", "The African Queen", "Rope", "Crash (200",
+            "Pirates of the Caribbean: The Curse of the Black Pearl", "Bonnie and Clyde", "The Battle of Algiers",
+            "Duck Soup", "Planet of the Apes", "Manhattan", "La strada", "Patton", "The 400 Blows", "The Conversation",
+            "Crouching Tiger, Hidden Dragon", "Changeling", "The Curious Case of Benjamin Button", "Barry Lyndon",
+            "Little Miss Sunshine", "All Quiet on the Western Front", "The Truman Show",
+            "The Nightmare Before Christmas", "Anatomy of a Murder", "Toy Story 2", "The Adventures of Robin Hood",
+            "Mulholland Dr.", "Who's Afraid of Virginia Woolf?", "Spartacus", "Monsters, Inc.", "Shaun of the Dead",
+            "Ikiru", "My Neighbor Totoro", "The Philadelphia Story", "Glory", "Rain Man", "Arsenic and Old Lace",
+    };
+
+}

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/RegisterBean.java
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/RegisterBean.java?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/RegisterBean.java (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/RegisterBean.java Fri Jul 30 22:37:29 2010
@@ -0,0 +1,183 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.html5.examples.showcase.beans;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.model.SelectItem;
+
+@ManagedBean(name="registerBean")
+public class RegisterBean
+{
+
+    private String name;
+    private String username;
+    private String password;
+    private String webSite;
+    private String comment;
+    private String favoriteMovieName;
+    private String eyeColor;
+
+    public List<SelectItem> getMovieSuggestionItems()
+    {
+        List<SelectItem> items = new ArrayList<SelectItem>();
+
+        if (favoriteMovieName != null)
+        {
+            int i = 0;
+            for (String movie : movieNames)
+            {
+                if (movie.startsWith(this.favoriteMovieName)){
+                    items.add(new SelectItem(movie, null));
+                    if(i++ > 20)
+                        break;
+                }
+            }
+        }
+
+        return items;
+    }
+
+    public String getName()
+    {
+        return name;
+    }
+
+    public void setName(String name)
+    {
+        this.name = name;
+    }
+
+    public String getUsername()
+    {
+        return username;
+    }
+
+    public void setUsername(String username)
+    {
+        this.username = username;
+    }
+
+    public String getPassword()
+    {
+        return password;
+    }
+
+    public void setPassword(String password)
+    {
+        this.password = password;
+    }
+
+    public String getWebSite()
+    {
+        return webSite;
+    }
+
+    public void setWebSite(String webSite)
+    {
+        this.webSite = webSite;
+    }
+
+    public String getComment()
+    {
+        return comment;
+    }
+
+    public void setComment(String comment)
+    {
+        this.comment = comment;
+    }
+
+    public String getFavoriteMovieName()
+    {
+        return favoriteMovieName;
+    }
+
+    public void setFavoriteMovieName(String favoriteMovieName)
+    {
+        this.favoriteMovieName = favoriteMovieName;
+    }
+
+    public String getEyeColor()
+    {
+        return eyeColor;
+    }
+
+    public void setEyeColor(String eyeColor)
+    {
+        this.eyeColor = eyeColor;
+    }
+
+    private static String[] movieNames = new String[]
+    {
+            "Java 4 Ever", "The Shawshank Redemption", "The Godfather", "The Godfather: Part II",
+            "The Good, the Bad and the Ugly", "Pulp Fiction", "Toy Story 3", "Schindler's List", "12 Angry Men",
+            "One Flew Over the Cuckoo's Nest", "Star Wars: Episode V - The Empire Strikes Back", "The Dark Knight",
+            "The Lord of the Rings: The Return of the King", "Star Wars: Episode IV - A New Hope", "Seven Samurai",
+            "Casablanca", "Goodfellas", "Fight Club", "City of God",
+            "The Lord of the Rings: The Fellowship of the Ring", "Raiders of the Lost Ark", "Rear Window", "Psycho",
+            "The Usual Suspects", "Once Upon a Time in the West", "The Silence of the Lambs", "The Matrix", "Se7en",
+            "Memento", "It's a Wonderful Life", "The Lord of the Rings: The Two Towers", "Sunset Blvd.",
+            "Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb", "North by Northwest",
+            "Citizen Kane", "The Professional", "Apocalypse Now", "Forrest Gump", "American Beauty",
+            "American History X", "Taxi Driver", "Terminator 2: Judgment Day", "Vertigo", "Lawrence of Arabia",
+            "Alien", "Amélie", "Saving Private Ryan", "WALL·E", "The Shining", "A Clockwork Orange", "Paths of Glory",
+            "The Departed", "The Pianist", "To Kill a Mockingbird", "Aliens", "The Lives of Others", "Spirited Away",
+            "M", "Double Indemnity", "Eternal Sunshine of the Spotless Mind", "Chinatown", "Requiem for a Dream",
+            "L.A. Confidential", "Reservoir Dogs", "The Third Man", "Das Boot", "The Treasure of the Sierra Madre",
+            "Monty Python and the Holy Grail", "City Lights", "Pan's Labyrinth", "The Bridge on the River Kwai",
+            "Raging Bull", "The Prestige", "Back to the Future", "Inglourious Basterds", "2001: A Space Odyssey",
+            "Life Is Beautiful", "Modern Times", "Singin' in the Rain", "Some Like It Hot", "Amadeus", "Up",
+            "Downfall", "Full Metal Jacket", "Braveheart", "Cinema Paradiso", "The Maltese Falcon",
+            "Once Upon a Time in America", "All About Eve", "Rashômon", "Metropolis", "The Green Mile", "Gran Torino",
+            "The Elephant Man", "The Great Dictator", "Sin City", "Rebecca", "The Apartment", "Gladiator", "The Sting",
+            "The Great Escape", "Indiana Jones and the Last Crusade", "Slumdog Millionaire", "Avatar",
+            "Star Wars: Episode VI - Return of the Jedi", "Unforgiven", "Bicycle Thieves", "Jaws", "Batman Begins",
+            "Die Hard", "Blade Runner", "On the Waterfront", "Oldboy", "Mr. Smith Goes to Washington", "Hotel Rwanda",
+            "No Country for Old Men", "Touch of Evil", "The Seventh Seal", "Fargo", "Princess Mononoke",
+            "For a Few Dollars More", "The Wizard of Oz", "District 9", "Heat", "Strangers on a Train",
+            "Cool Hand Luke", "Donnie Darko", "High Noon", "The Sixth Sense", "Notorious", "The Deer Hunter",
+            "There Will Be Blood", "Snatch.", "Annie Hall", "Kill Bill: Vol. 1", "The Manchurian Candidate",
+            "The General", "The Big Lebowski", "Platoon", "Yojimbo", "Into the Wild", "Ran", "Ben-Hur", "The Wrestler",
+            "The Big Sleep", "Million Dollar Baby", "The Lion King", "It Happened One Night",
+            "Witness for the Prosecution", "Life of Brian", "Butch Cassidy and the Sundance Kid", "Toy Story",
+            "The Bourne Ultimatum", "Wild Strawberries", "Finding Nemo", "Trainspotting", "Gone with the Wind",
+            "Kick-Ass", "Stand by Me", "The Terminator", "Groundhog Day", "The Graduate", "Scarface", "The Thing",
+            "Amores Perros", "Star Trek", "Dog Day Afternoon", "Ratatouille", "Gandhi", "V for Vendetta",
+            "Lock, Stock and Two Smoking Barrels", "The Wages of Fear", "How to Train Your Dragon", "Twelve Monkeys",
+            "The Grapes of Wrath", "The Secret in Their Eyes", "The Gold Rush", "Casino", "8½",
+            "Grave of the Fireflies", "Diabolique", "The Night of the Hunter", "Judgment at Nuremberg",
+            "The Incredibles", "The Princess Bride", "The Killing", "The Wild Bunch", "Kind Hearts and Coronets",
+            "Children of Men", "The Exorcist", "In Bruges", "Sunrise: A Song of Two Humans",
+            "The Best Years of Our Lives", "The Kid", "Nights of Cabiria", "The Hustler", "Dial M for Murder",
+            "Good Will Hunting", "Rosemary's Baby", "Ed Wood", "Harvey", "Big Fish", "King Kong",
+            "A Streetcar Named Desire", "Let the Right One In", "The Diving Bell and the Butterfly", "Sleuth",
+            "Magnolia", "Kill Bill: Vol. 2", "Rocky", "Letters from Iwo Jima", "Shadow of a Doubt", "Mystic River",
+            "Stalag 17", "Network", "Brief Encounter", "The African Queen", "Rope", "Crash (200",
+            "Pirates of the Caribbean: The Curse of the Black Pearl", "Bonnie and Clyde", "The Battle of Algiers",
+            "Duck Soup", "Planet of the Apes", "Manhattan", "La strada", "Patton", "The 400 Blows", "The Conversation",
+            "Crouching Tiger, Hidden Dragon", "Changeling", "The Curious Case of Benjamin Button", "Barry Lyndon",
+            "Little Miss Sunshine", "All Quiet on the Western Front", "The Truman Show",
+            "The Nightmare Before Christmas", "Anatomy of a Murder", "Toy Story 2", "The Adventures of Robin Hood",
+            "Mulholland Dr.", "Who's Afraid of Virginia Woolf?", "Spartacus", "Monsters, Inc.", "Shaun of the Dead",
+            "Ikiru", "My Neighbor Totoro", "The Philadelphia Story", "Glory", "Rain Man", "Arsenic and Old Lace",
+    };
+}

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/SportsTeam.java
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/SportsTeam.java?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/SportsTeam.java (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/SportsTeam.java Fri Jul 30 22:37:29 2010
@@ -0,0 +1,105 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.html5.examples.showcase.beans;
+
+import java.io.Serializable;
+
+public class SportsTeam implements Serializable
+{
+    private String id;
+    private String name;
+    private TeamType type;
+
+    public SportsTeam(String id, String name, TeamType type)
+    {
+        this.id = id;
+        this.name = name;
+        this.type = type;
+    }
+
+    public String getId()
+    {
+        return id;
+    }
+
+    public void setId(String id)
+    {
+        this.id = id;
+    }
+
+    public String getName()
+    {
+        return name;
+    }
+
+    public void setName(String name)
+    {
+        this.name = name;
+    }
+
+    public TeamType getType()
+    {
+        return type;
+    }
+
+    public void setType(TeamType type)
+    {
+        this.type = type;
+    }
+    
+    @Override
+    public boolean equals(Object obj)
+    {
+        if (obj instanceof SportsTeam)
+        {
+            SportsTeam other = (SportsTeam) obj;
+            if(other.getId().equals(this.id))
+                return true;
+        }
+        
+        return false;
+    }
+    
+    @Override
+    public int hashCode()
+    {
+        return this.id.hashCode();
+    }
+
+}
+
+enum TeamType
+{
+
+    FOOTBALL("F"), BASKETBALL("B");
+
+    private final String code;
+
+    private TeamType(String code)
+    {
+        this.code = code;
+    }
+
+    @Override
+    public String toString()
+    {
+        return code;
+    }
+
+}

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/TestBean.java
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/TestBean.java?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/TestBean.java (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/TestBean.java Fri Jul 30 22:37:29 2010
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.html5.examples.showcase.beans;
+
+import java.util.Map;
+import java.util.Set;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.event.AbortProcessingException;
+
+import org.apache.myfaces.html5.event.DropEvent;
+
+@ManagedBean(name="testBean")
+public class TestBean {
+
+	public String someAction() {
+		System.out.println("someAction");
+		return null;
+	}
+
+	private String someParam;
+
+	public String getSomeParam() {
+		return someParam;
+	}
+
+	public void setSomeParam(String someParam) {
+		this.someParam = someParam;
+	}
+
+	
+	public void processDropBehavior(DropEvent event) throws AbortProcessingException{
+        someParam = "DropEvent.getParam() + " + event.getParam() + "<br/>\n";
+        Map<String, String> dropDataMap = event.getDropDataMap();
+        if(dropDataMap != null){
+            Set<String> keySet = dropDataMap.keySet();
+            for (String key : keySet)
+            {
+                someParam += key + "  :  " + dropDataMap.get(key) + "<br/>\n";
+            }
+        }
+    }
+}

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/VideoBean.java
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/VideoBean.java?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/VideoBean.java (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/VideoBean.java Fri Jul 30 22:37:29 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.html5.examples.showcase.beans;
+
+import javax.faces.bean.ManagedBean;
+
+import org.apache.myfaces.html5.model.MediaInfo;
+
+@ManagedBean(name="videoBean")
+public class VideoBean
+{
+
+    public MediaInfo[] getItems()
+    {
+        return new MediaInfo[]{
+            new MediaInfo("http://diveintohtml5.org/i/pr6.mp4", "video/mp4", "avc1.42E01E, mp4a.40.2"),
+            new MediaInfo("http://diveintohtml5.org/i/pr6.webm")
+        };
+    }
+
+}

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/servlet/SourceServlet.java
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/servlet/SourceServlet.java?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/servlet/SourceServlet.java (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/servlet/SourceServlet.java Fri Jul 30 22:37:29 2010
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.html5.examples.showcase.servlet;
+
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+public class SourceServlet extends HttpServlet
+{
+    
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
+    {
+        String page = req.getParameter("page");
+        if(page==null || page.length()<".jsf".length())
+            return;
+        
+        page = page.substring(0, page.length()-".jsf".length());
+        page = page + ".xhtml";
+        
+        resp.setContentType("text/plain;charset=UTF-8");
+        
+        resp.sendRedirect(this.getServletContext().getContextPath() + page);
+        
+    }
+    
+}

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/META-INF/MANIFEST.MF?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/META-INF/MANIFEST.MF (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/META-INF/MANIFEST.MF Fri Jul 30 22:37:29 2010
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path: 
+

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/WEB-INF/faces-config.xml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/WEB-INF/faces-config.xml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/WEB-INF/faces-config.xml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
+	version="2.0">
+	
+</faces-config>
\ No newline at end of file

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/WEB-INF/web.xml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/WEB-INF/web.xml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+	id="WebApp_ID" version="2.5">
+
+	<display-name>html5-comp-lib-examples</display-name>
+
+	<welcome-file-list>
+		<welcome-file>index.jsf</welcome-file>
+		<welcome-file>index.jsp</welcome-file>
+	</welcome-file-list>
+
+	<context-param>
+		<param-name>javax.faces.PROJECT_STAGE</param-name>
+		<param-value>Development</param-value>
+	</context-param>
+    
+    <!-- Necessary to run with jetty:run -->
+    <context-param>
+        <param-name>org.apache.myfaces.annotation.SCAN_PACKAGES</param-name>
+        <param-value>org.apache.myfaces.html5.examples.showcase.beans</param-value>
+    </context-param>
+
+	<servlet>
+		<servlet-name>Faces Servlet</servlet-name>
+		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+	</servlet>
+
+	<servlet-mapping>
+		<servlet-name>Faces Servlet</servlet-name>
+		<url-pattern>*.jsf</url-pattern>
+	</servlet-mapping>
+
+	<servlet>
+		<servlet-name>Page Source Servlet</servlet-name>
+		<servlet-class>org.apache.myfaces.html5.examples.showcase.servlet.SourceServlet</servlet-class>
+	</servlet>
+	
+	<servlet-mapping>
+		<servlet-name>Page Source Servlet</servlet-name>
+		<url-pattern>/SourceServlet</url-pattern>
+	</servlet-mapping>
+
+</web-app>
\ No newline at end of file

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/_template.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/_template.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/_template.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/_template.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:head>
+	<ui:insert name="header">
+    </ui:insert>
+	<title>MyFaces Html5 Enabled Components Showcase</title>
+</h:head>
+<h:body>
+
+	<h5>
+		<h:link outcome="/index" value="Index"/>
+	</h5>
+
+    <ui:insert name="pageName">
+    	<h1>Component Demo</h1>
+    </ui:insert>
+	<h3><a href="/#{facesContext.externalContext.contextName}/SourceServlet?page=#{facesContext.externalContext.requestServletPath}">Page Source</a></h3>
+
+    <ui:insert name="content">
+    </ui:insert>
+	
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets">
+      
+<h:body>
+	
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>Drag and Drop Showcase Index</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+	    	<ul>
+				<li><h:link outcome="dnd/dnd01" value="Simple DnD"/></li>
+				<li><h:link outcome="dnd/dnd02" value="DnD with drop target types"/></li>
+				<li><h:link outcome="dnd/dnd03" value="DnD that also accepts text/plain"/></li>
+				<li><h:link outcome="dnd/dnd04" value="Dynamic DnD"/></li>
+			</ul>
+	    </ui:define>		
+			
+	</ui:composition>
+	
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd01.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd01.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd01.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd01.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,78 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:body>
+
+	 <ui:composition template="/_template.xhtml">
+	 	<ui:define name="header">
+	 		<style type="text/css" > 
+			  #draggable1 { width: 150px; height: 150px;}
+			  #drop_zone { padding: 40px; font-size: 13px; background-color:#eee; float: right; height: 150px; overflow: auto; }
+			  #drop_zone.hovering { border: 5px solid #aaa; background-color: rgba(255, 0, 0, 0.199219); }
+			  #draggable1 { background-color: red; }
+			</style> 
+	 	</ui:define>
+	    <ui:define name="pageName">
+	    	<h1>Simple DnD</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+			<ul>
+				<li>Works best in Firefox!</li>
+				<li>Will submit a bug report to Chromium!</li>
+			</ul>
+			<h:form id="myform" prependId="false">
+			
+				<table width="100%">
+					<tr>
+						<td>
+						
+							<hx:div id="draggable1">
+								<fx:dragSource action="move" param="#{'paramValue'}" />
+								<h:outputText value="DRAG SOURCE" />
+							</hx:div>
+						
+						</td>
+						<td>
+						
+							<hx:div id="drop_zone">
+								<fx:dropTarget dropListener="#{dndBean.processDropBehavior}" rerender="someParamOT"/>
+								<h:outputText value="DROP TARGET" />
+							</hx:div>
+						
+						</td>
+					</tr>
+				</table>
+
+				<br/>
+				<h2>Output of drop listener:</h2>
+				<h:outputText value="#{dndBean.someParam}" id="someParamOT" escape="false" style="color:green;"/>
+			
+			</h:form>
+	    </ui:define>		
+			
+	</ui:composition>
+
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd02.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd02.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd02.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd02.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,86 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:body>
+
+	 <ui:composition template="/_template.xhtml">
+	 	<ui:define name="header">
+	 		<style type="text/css" > 
+			  #draggable1, #draggable2 { width: 150px; height: 150px;}
+			  #drop_zone { padding: 40px; font-size: 13px; background-color:#eee; float: right; height: 150px; overflow: auto; }
+			  #drop_zone.hovering { border: 5px solid #aaa; background-color: rgba(255, 0, 0, 0.199219); }
+			  #draggable1, #draggable2 { background-color: red; }
+			</style> 
+	 	</ui:define>
+	    <ui:define name="pageName">
+	    	<h1>DnD with drop target types</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+			<ul>
+				<li>Works best in Firefox!</li>
+				<li>Will submit a bug report to Chromium!</li>
+			</ul>
+			<h:form id="myform" prependId="false">
+			
+				<table width="100%">
+					<tr>
+						<td>
+						
+							<hx:div id="draggable1">
+								<fx:dragSource action="move" dropTargetTypes="A" param="#{'paramValue'}" />
+								<h:outputText value="DRAG SOURCE with type A" />
+							</hx:div>
+						
+						</td>
+						<td>
+						
+							<hx:div id="draggable2">
+								<fx:dragSource action="move" dropTargetTypes="X" param="#{'paramValue'}" />
+								<h:outputText value="DRAG SOURCE with type X (won't drop)" />
+							</hx:div>
+						
+						</td>
+						<td>
+						
+							<hx:div id="drop_zone">
+								<fx:dropTarget types="A,B,C" dropListener="#{dndBean.processDropBehavior}" rerender="someParamOT"/>
+								<h:outputText value="DROP TARGET" />
+							</hx:div>
+						
+						</td>
+					</tr>
+				</table>
+
+				<br/>
+				<h2>Output of drop listener:</h2>
+				<h:outputText value="#{dndBean.someParam}" id="someParamOT" escape="false" style="color:green;"/>
+			
+			</h:form>
+	    </ui:define>		
+			
+	</ui:composition>
+
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd03.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd03.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd03.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd03.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,87 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:body>
+
+	 <ui:composition template="/_template.xhtml">
+	 	<ui:define name="header">
+	 		<style type="text/css" > 
+			  #draggable1{ width: 150px; height: 150px;}
+			  #drop_zone { padding: 40px; font-size: 13px; background-color:#eee; float: right; height: 150px; overflow: auto; }
+			  #drop_zone.hovering { border: 5px solid #aaa; background-color: rgba(255, 0, 0, 0.199219); }
+			  #draggable1{ background-color: red; }
+			</style> 
+	 	</ui:define>
+	    <ui:define name="pageName">
+	    	<h1>DnD that also accepts text/plain</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+			<ul>
+				<li>Works best in Firefox!</li>
+				<li>Will submit a bug report to Chromium!</li>
+			</ul>
+			<h:form id="myform" prependId="false">
+			
+				<table width="100%">
+					<tr>
+						<td>
+						
+							<hx:div id="draggable1">
+								<fx:dragSource action="move" param="#{'paramValue'}" />
+								<h:outputText value="DRAG SOURCE" />
+							</hx:div>
+						
+						</td>
+						<td>
+							<h3 style="color:blue;">
+								Text To Drag. 
+							</h3>
+							Try dragging anything: files from your desktop, an image from some page, etc...
+							<br/>
+							Only text/plain data of the drags will be sent though.
+						</td>
+						<td>
+						
+							<hx:div id="drop_zone">
+								<fx:dropTarget acceptMimeTypes="text/x-myfaces-html5-dnd-source, text/plain" 
+									dropListener="#{dndBean.processDropBehavior}" rerender="someParamOT"/>
+								<h:outputText value="DROP TARGET" />
+							</hx:div>
+						
+						</td>
+					</tr>
+				</table>
+
+				<br/>
+				<h2>Output of drop listener:</h2>
+				<h:outputText value="#{dndBean.someParam}" id="someParamOT" escape="false" style="color:green;"/>
+			
+			</h:form>
+	    </ui:define>		
+			
+	</ui:composition>
+
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd04.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd04.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd04.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/dnd/dnd04.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,86 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:body>
+
+	 <ui:composition template="/_template.xhtml">
+	 	<ui:define name="header">
+	 		<style type="text/css" > 
+			  .team { width: 100px; height: 40px;}
+			  #drop_zone { padding: 40px; font-size: 13px; background-color:#eee; float: right; height: 150px; overflow: auto; }
+			  #drop_zone.hovering { border: 5px solid #aaa; background-color: rgba(255, 0, 0, 0.199219); }
+			  .team { background-color: green; color:white; }
+			</style> 
+	 	</ui:define>
+	    <ui:define name="pageName">
+	    	<h1>Dynamic DnD</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+			<ul>
+				<li>Works best in Firefox!</li>
+				<li>Will submit a bug report to Chromium!</li>
+			</ul>
+			<h:form id="myform" prependId="false">
+			
+				<table width="100%">
+					<tr>
+						<td>
+			
+							<h:dataTable value="#{dndBean.teams}" var="team">
+								<h:column>
+									<hx:div styleClass="team">
+										<fx:dragSource action="move" param="#{team.id}" />
+										<h:outputText value="#{team.name}" />
+									</hx:div>
+								</h:column>
+							</h:dataTable>
+							
+						</td>
+						<td>
+						
+							<hx:div id="drop_zone">
+								<fx:dropTarget 
+									dropListener="#{dndBean.processTeamDrop}" rerender="@all"/>
+								<h:outputText value="DROP TARGET" />
+							</hx:div>
+						
+						</td>
+					</tr>
+				</table>
+
+				<br/>
+				<h:commandButton action="#{dndBean.initTeams}" value="Refresh Teams"/>
+
+				<br/>
+				<h2>Output of drop listener:</h2>
+				<h:outputText value="#{dndBean.someParam}" id="someParamOT" escape="false" style="color:green;"/>
+			
+			</h:form>
+	    </ui:define>		
+			
+	</ui:composition>
+
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/index.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/index.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/index.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/index.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core">
+      
+<h:head>
+</h:head>
+<h:body>
+	<h1>Component Simple Showcase</h1>
+	<ul style="line-height:30px;">
+		<li>
+			<h:link outcome="video" value="hx:video, hx:audio, fx:mediaSource and fx:mediaSources"/>
+		</li>
+		<li>
+			<h:link outcome="inputText" value="hx:inputText and hx:datalist"/>
+		</li>
+		<li>
+			<h:link outcome="dnd" value="dnd : hx:div, fx:dropTarget and fx:dragSource"/>
+		</li>
+		<li>
+			<h:link outcome="inputDateTime" value="hx:inputDateTime and fx:validateDateTimeRange"/>
+		</li>
+		<li>
+			<h:link outcome="inputEmail" value="hx:inputEmail"/>
+		</li>
+		<li>
+			<h:link outcome="inputColor" value="hx:inputColor"/>
+		</li>
+		<li>
+			<h:link outcome="inputNumberXXX" value="hx:inputNumberSlider and hx:inputNumberSpinner"/>
+		</li>
+	</ul>
+	
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputColor.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputColor.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputColor.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputColor.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets">
+      
+<h:body>
+	
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>inputColor Index</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+	    	<ul>
+				<li><h:link outcome="inputColor/inputColor01" value="Simple inputColor"/></li>
+			</ul>
+	    </ui:define>		
+			
+	</ui:composition>
+	
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputColor/inputColor01.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputColor/inputColor01.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputColor/inputColor01.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputColor/inputColor01.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:body>
+
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>Simple inputColor</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+			<p>
+				Notes:
+				<ul>
+					<li>No browser support for this component yet!</li>
+					<li>Browser will send a valid color value defined in the Html5 spec. e.g: #FFAAFF, #001122. 
+						So the value is validated according to the spec in the server-side.</li>
+				</ul>
+			</p>
+			<h:form id="demoForm">
+				<h:panelGrid cols="2">
+					<label>Simple color input:</label><br/>
+			    	<hx:inputColor value="#{inputColorBean.color}" required="true" />
+			    	
+					<br/>
+			    	<h:commandButton action="none"/><br/>
+				</h:panelGrid>
+			</h:form>
+	    </ui:define>		
+			
+	</ui:composition>
+
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputDateTime.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputDateTime.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputDateTime.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputDateTime.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets">
+      
+<h:body>
+	
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>inputDateTime Index</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+	    	<ul>
+				<li><h:link outcome="inputDateTime/inputDateTime01" value="inputDateTime"/></li>
+			</ul>
+	    </ui:define>		
+			
+	</ui:composition>
+	
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputDateTime/inputDateTime01.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputDateTime/inputDateTime01.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputDateTime/inputDateTime01.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputDateTime/inputDateTime01.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,98 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:body>
+
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>Simple inputText</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+			<p>
+				Notes:
+				<ul>
+					<li>Works in Opera.</li>
+				</ul>
+			</p>
+			<h:form id="demoForm">
+				<h:panelGrid cols="3">
+					<label>Simple DateTime type:</label><br/>
+			    	<hx:inputDateTime id="simpleDateTimeIDT" value="#{dateTimeBean.someDateTime}" type="datetime"/>
+			    	<h:message for="simpleDateTimeIDT" />
+			    	
+			    	<label>DateTime type with steps:</label><br/>
+			    	<hx:inputDateTime id="dateTimeWithStepsIDT" value="#{dateTimeBean.someDateTime}" type="datetime" step="3000"/>
+			    	<h:message for="dateTimeWithStepsIDT" />
+			    	
+			    	<label>DateTime type with min and max:</label><br/>
+			    	<hx:inputDateTime id="dateTimeWithMinMaxIDT" value="#{dateTimeBean.someDateTime}" type="datetime" step="3000">
+			    		<fx:validateDateTimeRange minimum="2010-01-01T08:00:00Z" maximum="2010-12-31T23:59:59Z"/>
+			    	</hx:inputDateTime>
+			    	<h:message for="dateTimeWithMinMaxIDT" />
+			    	
+			    	<label>Date type with min max and steps:</label><br/>
+			    	<hx:inputDateTime id="dateIDT" value="#{dateTimeBean.someDateTime}" type="date" step="4">
+			    		<fx:validateDateTimeRange minimum="2010-01-01" maximum="2010-12-31"/>
+			    	</hx:inputDateTime>
+			    	<h:message for="dateIDT" />
+			    	
+			    	<label>Time type with min max and steps:</label><br/>
+			    	<hx:inputDateTime id="timeIDT" value="#{dateTimeBean.someDateTime}" type="time" step="300">
+			    		<fx:validateDateTimeRange minimum="08:00:00" maximum="11:00:00" />
+			    	</hx:inputDateTime>
+			    	<h:message for="timeIDT" />
+			    	
+			    	<label>Month type with min max and steps:</label><br/>
+			    	<hx:inputDateTime id="monthIDT" value="#{dateTimeBean.someDateTime}" type="month" step="2">
+			    		<fx:validateDateTimeRange minimum="2010-01" maximum="2010-12"/>
+			    	</hx:inputDateTime>
+			    	<h:message for="monthIDT" />
+			    	
+			    	<label>Week type with min max and steps:</label><br/>
+			    	<hx:inputDateTime id="weekIDT" value="#{dateTimeBean.someDateTime}" type="week" step="3">
+			    		<fx:validateDateTimeRange minimum="2010-W01" maximum="2010-W26"/>
+			    	</hx:inputDateTime>
+			    	<h:message for="weekIDT" />
+			    	
+			    	
+			    	<label>Date type with min, max, steps and notInRangeMessage set:</label><br/>
+			    	<hx:inputDateTime id="dateWithMsgIDT" value="#{dateTimeBean.secondDateTime}" type="date" step="4">
+			    		<fx:validateDateTimeRange minimum="2010-01-01" maximum="2010-12-31" notInRangeMessage="Heads up! The input is not in range!"/>
+			    	</hx:inputDateTime>
+			    	<h:message for="dateWithMsgIDT" />
+			    	
+			    	<h:outputText />
+			    	<h:outputText />
+			    	<h:commandButton action="none"/>
+			    	
+				</h:panelGrid>
+			</h:form>
+	    </ui:define>		
+			
+	</ui:composition>
+
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputEmail.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputEmail.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputEmail.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputEmail.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets">
+      
+<h:body>
+	
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>inputEmail Index</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+	    	<ul>
+				<li><h:link outcome="inputEmail/inputEmail01" value="Simple inputEmail"/></li>
+			</ul>
+	    </ui:define>		
+			
+	</ui:composition>
+	
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputEmail/inputEmail01.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputEmail/inputEmail01.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputEmail/inputEmail01.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputEmail/inputEmail01.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:body>
+
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>Simple inputEmail</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+			<p>
+				Notes:
+				<ul>
+					<li>The form won't be submitted until you type a value into second input. (Chrome and Opera)</li>
+					<li>A place holder is displayed in second input. (Chrome)</li>
+					<li>Third input has multiple=true, so it accepts more than one input. 
+						After writing first email(or selecting it from suggestions), press comma and you'll see the 
+						browser suggests you more and validates each email.</li>
+				</ul>
+			</p>
+			<h:form id="demoForm">
+				<h:panelGrid cols="2">
+					<label>Simple email input:</label><br/>
+			    	<hx:inputEmail value="#{inputTextBean.email}" cols="15" required="true" />
+			    	
+			    	<label>Another simple email input:</label><br/>
+			    	<hx:inputEmail value="#{inputTextBean.secondaryEmail}" cols="15" placeholder="Enter your email" required="true"/>
+			    	
+			    	<label>Multiple email input(works on Opera, see above):</label><br/>
+			    	<hx:inputEmail value="#{inputTextBean.secondaryEmail}" cols="15" placeholder="Enter your email" multiple="true" required="true" 
+			    		suggestions="villa@example.org,tevez@example.org"/>
+	
+					<br/>
+			    	<h:commandButton action="none"/><br/>
+				</h:panelGrid>
+			</h:form>
+	    </ui:define>		
+			
+	</ui:composition>
+
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets">
+      
+<h:body>
+	
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>inputNumberSlider and inputNumberSpinner Index</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+	    	<ul>
+				<li><h:link outcome="inputNumberXXX/inputNumberXXX01" value="Simple inputNumberSlider"/></li>
+				<li><h:link outcome="inputNumberXXX/inputNumberXXX02" value="Simple inputNumberSpinner"/></li>
+			</ul>
+	    </ui:define>		
+			
+	</ui:composition>
+	
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX/inputNumberXXX01.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX/inputNumberXXX01.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX/inputNumberXXX01.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX/inputNumberXXX01.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,72 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:body>
+
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>Simple inputNumberSlider</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+			<p>
+				Notes:
+				<ul>
+					<li>Works in Chrome and Opera.</li>
+					<li>Opera also supports output element, so the value selected is shown.</li>
+				</ul>
+			</p>
+			<h:form id="demoForm">
+				<h:panelGrid cols="3">
+					<label>Simple inputNumberSlider:</label><br/>
+			    	<hx:inputNumberSlider id="simpleINS" value="#{inputNumberBean.first}" />
+			    	<output onforminput="value = document.getElementById('demoForm:simpleINS').valueAsNumber" /><br/>
+			    	
+			    	<label>inputNumberSlider with step:</label><br/>
+			    	<hx:inputNumberSlider id="withStepINS" value="#{inputNumberBean.second}" step="#{20+10}"/>
+			    	<output onforminput="value = document.getElementById('demoForm:withStepINS').valueAsNumber" /><br/>
+			    	
+			    	<label>inputNumberSlider with step and min-max:</label><br/>
+			    	<hx:inputNumberSlider id="withStepAndMinMaxINS" value="#{inputNumberBean.third}" step="20">
+			    		<f:validateLongRange minimum="30" maximum="90" />
+			    	</hx:inputNumberSlider>
+			    	<output onforminput="value = document.getElementById('demoForm:withStepAndMinMaxINS').valueAsNumber" /><br/>
+			    	
+			    	<label>inputNumberSlider with segmentCount:</label><br/>
+			    	<hx:inputNumberSlider id="withSegmentCountINS" value="#{inputNumberBean.fourth}" segmentCount="5">
+			    		<f:validateLongRange minimum="30" maximum="90" />
+			    	</hx:inputNumberSlider>
+			    	<output onforminput="value = document.getElementById('demoForm:withSegmentCountINS').valueAsNumber" /><br/>
+			    	
+					<br/>
+			    	<h:commandButton action="none"/><br/><br/>
+				</h:panelGrid>
+			</h:form>
+	    </ui:define>		
+			
+	</ui:composition>
+
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX/inputNumberXXX02.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX/inputNumberXXX02.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX/inputNumberXXX02.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputNumberXXX/inputNumberXXX02.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:body>
+
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>Simple inputNumberSpinner</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+			<p>
+				Notes:
+				<ul>
+					<li>Works in Chrome and Opera.</li>
+					<li>Opera also supports output element, so the value selected is shown.</li>
+				</ul>
+			</p>
+			<h:form id="demoForm">
+				<h:panelGrid cols="3">
+					<label>Simple inputNumberSpinner:</label><br/>
+			    	<hx:inputNumberSpinner id="simpleINS" value="#{inputNumberBean.first}" />
+			    	<output onforminput="value = document.getElementById('demoForm:simpleINS').valueAsNumber" /><br/>
+			    	
+			    	<label>inputNumberSpinner with step:</label><br/>
+			    	<hx:inputNumberSpinner id="withStepINS" value="#{inputNumberBean.second}" step="#{20+10}"/>
+			    	<output onforminput="value = document.getElementById('demoForm:withStepINS').valueAsNumber" /><br/>
+			    	
+			    	<label>inputNumberSpinner with step and min-max:</label><br/>
+			    	<hx:inputNumberSpinner id="withStepAndMinMaxINS" value="#{inputNumberBean.third}" step="20">
+			    		<f:validateLongRange minimum="30" maximum="90" />
+			    	</hx:inputNumberSpinner>
+			    	<output onforminput="value = document.getElementById('demoForm:withStepAndMinMaxINS').valueAsNumber" /><br/>
+			    	
+			    	<label>inputNumberSpinner with segmentCount:</label><br/>
+			    	<hx:inputNumberSpinner id="withSegmentCountINS" value="#{inputNumberBean.fourth}" segmentCount="5">
+			    		<f:validateLongRange minimum="30" maximum="90" />
+			    	</hx:inputNumberSpinner>
+			    	<output onforminput="value = document.getElementById('demoForm:withSegmentCountINS').valueAsNumber" /><br/>
+			    	
+					<br/>
+			    	<h:commandButton action="none"/><br/><br/>
+				</h:panelGrid>
+			</h:form>
+	    </ui:define>		
+			
+	</ui:composition>
+
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets">
+      
+<h:body>
+	
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>inputText Index</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+	    	<ul>
+				<li><h:link outcome="inputText/inputText01" value="Simple inputText"/></li>
+				<li><h:link outcome="inputText/inputText02" value="inputText types"/></li>
+				<li><h:link outcome="inputText/inputText03" value="Suggestions"/></li>
+				<li><h:link outcome="inputText/inputText04" value="Pattern"/></li>
+				<li><h:link outcome="inputText/inputText05" value="Complex example"/></li>
+			</ul>
+	    </ui:define>		
+			
+	</ui:composition>
+	
+</h:body>
+</html>

Added: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText/inputText01.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText/inputText01.xhtml?rev=980988&view=auto
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText/inputText01.xhtml (added)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText/inputText01.xhtml Fri Jul 30 22:37:29 2010
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html lang="en"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:hx="http://myfaces.apache.org/html5/html"
+      xmlns:fx="http://myfaces.apache.org/html5/core">
+      
+<h:body>
+
+	 <ui:composition template="/_template.xhtml">
+	    <ui:define name="pageName">
+	    	<h1>Simple inputText</h1>
+	    </ui:define>
+
+		<ui:define name="content">
+			<p>
+				Notes:
+				<ul>
+					<li>The form won't be submitted until you type a value into second input. (Chrome and Opera)</li>
+					<li>A place holder is displayed in second input. (Chrome)</li>
+				</ul>
+			</p>
+			<h:form id="demoForm">
+				<label>An optional input:</label><br/>
+		    	
+		    	<hx:inputText id="firstNumberIT" value="#{inputTextBean.firstNumber}" cols="15"  />
+		    	
+		    	<h:message for="firstNumberIT" />
+		    	<br/>
+
+		    	<label>A required input which has placeholder too:</label><br/>
+		    	
+		    	<hx:inputText id="secondNumberIT" value="#{inputTextBean.secondNumber}" required="true" 
+		    		placeholder="Enter a number" cols="15" oninvalid="alert('Input required');" />
+		    	
+		    	<h:message for="secondNumberIT" />
+		    	<br/>
+
+		    	<h:commandButton action="none"/><br/>
+		    	Product is :  <h:outputText value="#{inputTextBean.result}" />
+			</h:form>
+	    </ui:define>		
+			
+	</ui:composition>
+
+</h:body>
+</html>