Myfaces Html5 : Removed outdated module "examples"
git-svn-id: https://svn.apache.org/repos/asf/myfaces/html5/trunk@1081227 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/myfaces-html5-examples/pom.xml b/myfaces-html5-examples/pom.xml
deleted file mode 100644
index 6c78bed..0000000
--- a/myfaces-html5-examples/pom.xml
+++ /dev/null
@@ -1,100 +0,0 @@
-<?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.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.myfaces.html5</groupId>
- <artifactId>myfaces-html5-project</artifactId>
- <version>0.0.4-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.myfaces.html5</groupId>
- <artifactId>myfaces-html5-examples</artifactId>
- <packaging>war</packaging>
- <name>Showcase of Html5 Renderkit for Apache MyFaces</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.myfaces.html5</groupId>
- <artifactId>myfaces-html5-core</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.myfaces.shared</groupId>
- <artifactId>myfaces-shared-html5</artifactId>
- <version>${myfaces-shared-html5-version}</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.5</version>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
- <groupId>javax.servlet.jsp</groupId>
- <artifactId>jsp-api</artifactId>
- <version>2.1</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jstl</artifactId>
- <version>1.2</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.1.1</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.13</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.el</groupId>
- <artifactId>el-api</artifactId>
- <version>1.0</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>maven-jetty-plugin</artifactId>
- <version>6.1.22</version>
- <configuration>
- <scanIntervalSeconds>10</scanIntervalSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/DateTimeBean.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/DateTimeBean.java
deleted file mode 100644
index ce87e9e..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/DateTimeBean.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * 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.Date;
-
-import javax.faces.bean.ManagedBean;
-
-@ManagedBean(name="dateTimeBean")
-public class DateTimeBean
-{
-
- private Date someDateTime;
- private Date secondDateTime;
-
- public Date getSomeDateTime()
- {
- return someDateTime;
- }
-
- public void setSomeDateTime(Date someDateTime)
- {
- this.someDateTime = someDateTime;
- }
-
- public Date getSecondDateTime()
- {
- return secondDateTime;
- }
-
- public void setSecondDateTime(Date secondDateTime)
- {
- this.secondDateTime = secondDateTime;
- }
-
-}
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/DnDBean.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/DnDBean.java
deleted file mode 100644
index 9176ee6..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/DnDBean.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * 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;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.SessionScoped;
-import javax.faces.event.AbortProcessingException;
-
-import org.apache.myfaces.html5.event.DropEvent;
-
-@ManagedBean(name="dndBean")
-@SessionScoped
-public class DnDBean implements Serializable {
-
- private String someParam;
-
- public String getSomeParam() {
- return someParam;
- }
-
- public void setSomeParam(String someParam) {
- this.someParam = someParam;
- }
-
- public void processDropBehavior(DropEvent event) throws AbortProcessingException{
- someParam = "";
- someParam += "Drop Time : " + new Date() + "<br/>\n";
- 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";
- }
- }
- }
-
- private List<SportsTeam> teams;
-
- public DnDBean()
- {
- initTeams();
- }
-
- public String initTeams()
- {
- teams = new ArrayList<SportsTeam>();
-
- teams.add(new SportsTeam("FCB", "FC Barcelona", TeamType.FOOTBALL));
- teams.add(new SportsTeam("GS", "Galatasaray SK", TeamType.FOOTBALL));
- teams.add(new SportsTeam("RM", "Real Madrid", TeamType.FOOTBALL));
- teams.add(new SportsTeam("KS", "Kayserispor", TeamType.FOOTBALL));
- teams.add(new SportsTeam("LAL", "LA Lakers", TeamType.BASKETBALL));
- teams.add(new SportsTeam("BOC", "Boston Celtics", TeamType.BASKETBALL));
-
- return null;
- }
-
- public List<SportsTeam> getTeams()
- {
- return teams;
- }
-
- public void processTeamDrop(DropEvent event) throws AbortProcessingException{
- String param = event.getParam();
- if(param == null || param.isEmpty())
- return;
-
- SportsTeam droppedTeam = null;
- for (SportsTeam team : this.teams)
- {
- if(team.getId().equals(param)){
- droppedTeam = team;
- break;
- }
- }
-
- boolean removed = teams.remove(droppedTeam);
-
- someParam = "Team with Id " + param + " removed : " + removed;
- }
-
-
- /////////////
-
- public String someAction() {
- System.out.println("someAction");
- return null;
- }
-
- public String getTest()
- {
- return "test";
- }
-}
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputColorBean.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputColorBean.java
deleted file mode 100644
index 861be12..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputColorBean.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * 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;
-
-@ManagedBean(name="inputColorBean")
-public class InputColorBean
-{
- private String color = "#FFCCAA";
-
- public String getColor()
- {
- return color;
- }
-
- public void setColor(String color)
- {
- this.color = color;
- }
-
-}
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputNumberBean.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputNumberBean.java
deleted file mode 100644
index e6b27b1..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputNumberBean.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * 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;
-
-@ManagedBean(name="inputNumberBean")
-public class InputNumberBean
-{
-
- private int first;
- private double second;
- private int third;
- private int fourth;
- private int fifth;
-
- public int getFirst()
- {
- return first;
- }
-
- public void setFirst(int first)
- {
- this.first = first;
- }
-
- public double getSecond()
- {
- return second;
- }
-
- public void setSecond(double second)
- {
- this.second = second;
- }
-
- public int getThird()
- {
- return third;
- }
-
- public void setThird(int third)
- {
- this.third = third;
- }
-
- public int getFourth()
- {
- return fourth;
- }
-
- public void setFourth(int fourth)
- {
- this.fourth = fourth;
- }
-
- public int getFifth()
- {
- return fifth;
- }
-
- public void setFifth(int fifth)
- {
- this.fifth = fifth;
- }
-
-}
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputTextBean.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputTextBean.java
deleted file mode 100644
index 4cbffff..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/InputTextBean.java
+++ /dev/null
@@ -1,285 +0,0 @@
-/*
- * 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;
- private String secondParam;
- private String thirdParam;
- private String fourthParam;
-
- 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 String getSecondParam()
- {
- return secondParam;
- }
-
- public void setSecondParam(String secondParam)
- {
- this.secondParam = secondParam;
- }
-
- public String getThirdParam()
- {
- return thirdParam;
- }
-
- public void setThirdParam(String thirdParam)
- {
- this.thirdParam = thirdParam;
- }
-
- public String getFourthParam()
- {
- return fourthParam;
- }
-
- public void setFourthParam(String fourthParam)
- {
- this.fourthParam = fourthParam;
- }
-
- 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",
- };
-
-}
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/RegisterBean.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/RegisterBean.java
deleted file mode 100644
index 638f6da..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/RegisterBean.java
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
- * 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",
- };
-}
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/SportsTeam.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/SportsTeam.java
deleted file mode 100644
index aaae906..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/SportsTeam.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * 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;
- }
-
-}
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/TestBean.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/TestBean.java
deleted file mode 100644
index 7f6ed99..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/TestBean.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * 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";
- }
- }
- }
-}
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/VideoBean.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/VideoBean.java
deleted file mode 100644
index 8529107..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/beans/VideoBean.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * 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")
- };
- }
-
-}
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/servlet/SourceServlet.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/servlet/SourceServlet.java
deleted file mode 100644
index 8b89c15..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/servlet/SourceServlet.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * 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);
-
- }
-
-}
diff --git a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/validator/PartNumberValidator.java b/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/validator/PartNumberValidator.java
deleted file mode 100644
index f482950..0000000
--- a/myfaces-html5-examples/src/main/java/org/apache/myfaces/html5/examples/showcase/validator/PartNumberValidator.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package org.apache.myfaces.html5.examples.showcase.validator;
-
-import java.util.regex.Pattern;
-
-import javax.faces.application.FacesMessage;
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.validator.FacesValidator;
-import javax.faces.validator.Validator;
-import javax.faces.validator.ValidatorException;
-
-import org.apache.myfaces.html5.component.api.validation.ClientSidePatternProvider;
-
-@FacesValidator(value="partNumberValidator")
-public class PartNumberValidator implements Validator, ClientSidePatternProvider
-{
- private static final String PATTERN = "[0-9][A-Z]{3}";
-
- public String getPattern()
- {
- return PATTERN;
- }
-
- public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException
- {
- if(value == null)
- return;
- if (value instanceof String)
- {
- String partNum = (String) value;
-
- if(! Pattern.matches(PATTERN, partNum)){
- throw new ValidatorException(new FacesMessage("Provided value is not a part number"));
- }
- }
- }
-}
diff --git a/myfaces-html5-examples/src/main/webapp/META-INF/MANIFEST.MF b/myfaces-html5-examples/src/main/webapp/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/myfaces-html5-examples/src/main/webapp/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/myfaces-html5-examples/src/main/webapp/WEB-INF/faces-config.xml b/myfaces-html5-examples/src/main/webapp/WEB-INF/faces-config.xml
deleted file mode 100644
index edfa5c4..0000000
--- a/myfaces-html5-examples/src/main/webapp/WEB-INF/faces-config.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?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
diff --git a/myfaces-html5-examples/src/main/webapp/WEB-INF/web.xml b/myfaces-html5-examples/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index f731125..0000000
--- a/myfaces-html5-examples/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?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>myfaces-html5-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</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
diff --git a/myfaces-html5-examples/src/main/webapp/_template.xhtml b/myfaces-html5-examples/src/main/webapp/_template.xhtml
deleted file mode 100644
index a3f755e..0000000
--- a/myfaces-html5-examples/src/main/webapp/_template.xhtml
+++ /dev/null
@@ -1,45 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/dnd.xhtml b/myfaces-html5-examples/src/main/webapp/dnd.xhtml
deleted file mode 100644
index 7c86bc2..0000000
--- a/myfaces-html5-examples/src/main/webapp/dnd.xhtml
+++ /dev/null
@@ -1,42 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/dnd/dnd01.xhtml b/myfaces-html5-examples/src/main/webapp/dnd/dnd01.xhtml
deleted file mode 100644
index 253eadd..0000000
--- a/myfaces-html5-examples/src/main/webapp/dnd/dnd01.xhtml
+++ /dev/null
@@ -1,78 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/dnd/dnd02.xhtml b/myfaces-html5-examples/src/main/webapp/dnd/dnd02.xhtml
deleted file mode 100644
index e8d84b9..0000000
--- a/myfaces-html5-examples/src/main/webapp/dnd/dnd02.xhtml
+++ /dev/null
@@ -1,86 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/dnd/dnd03.xhtml b/myfaces-html5-examples/src/main/webapp/dnd/dnd03.xhtml
deleted file mode 100644
index c7927cd..0000000
--- a/myfaces-html5-examples/src/main/webapp/dnd/dnd03.xhtml
+++ /dev/null
@@ -1,87 +0,0 @@
-<!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="*"
- 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>
diff --git a/myfaces-html5-examples/src/main/webapp/dnd/dnd04.xhtml b/myfaces-html5-examples/src/main/webapp/dnd/dnd04.xhtml
deleted file mode 100644
index dfee73a..0000000
--- a/myfaces-html5-examples/src/main/webapp/dnd/dnd04.xhtml
+++ /dev/null
@@ -1,86 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/index.xhtml b/myfaces-html5-examples/src/main/webapp/index.xhtml
deleted file mode 100644
index 3950dcf..0000000
--- a/myfaces-html5-examples/src/main/webapp/index.xhtml
+++ /dev/null
@@ -1,54 +0,0 @@
-<!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>
- <li>
- <h:link outcome="meterProgress" value="hx:meter and hx:progress"/>
- </li>
- </ul>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/inputColor.xhtml b/myfaces-html5-examples/src/main/webapp/inputColor.xhtml
deleted file mode 100644
index dafed65..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputColor.xhtml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputColor/inputColor01.xhtml b/myfaces-html5-examples/src/main/webapp/inputColor/inputColor01.xhtml
deleted file mode 100644
index c6548aa..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputColor/inputColor01.xhtml
+++ /dev/null
@@ -1,56 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputDateTime.xhtml b/myfaces-html5-examples/src/main/webapp/inputDateTime.xhtml
deleted file mode 100644
index 45a781e..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputDateTime.xhtml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputDateTime/inputDateTime01.xhtml b/myfaces-html5-examples/src/main/webapp/inputDateTime/inputDateTime01.xhtml
deleted file mode 100644
index 2c68969..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputDateTime/inputDateTime01.xhtml
+++ /dev/null
@@ -1,98 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputEmail.xhtml b/myfaces-html5-examples/src/main/webapp/inputEmail.xhtml
deleted file mode 100644
index 11ae9b1..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputEmail.xhtml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputEmail/inputEmail01.xhtml b/myfaces-html5-examples/src/main/webapp/inputEmail/inputEmail01.xhtml
deleted file mode 100644
index 42b098d..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputEmail/inputEmail01.xhtml
+++ /dev/null
@@ -1,65 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputNumberXXX.xhtml b/myfaces-html5-examples/src/main/webapp/inputNumberXXX.xhtml
deleted file mode 100644
index 97dbe84..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputNumberXXX.xhtml
+++ /dev/null
@@ -1,40 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputNumberXXX/inputNumberXXX01.xhtml b/myfaces-html5-examples/src/main/webapp/inputNumberXXX/inputNumberXXX01.xhtml
deleted file mode 100644
index 4f6bbf5..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputNumberXXX/inputNumberXXX01.xhtml
+++ /dev/null
@@ -1,72 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputNumberXXX/inputNumberXXX02.xhtml b/myfaces-html5-examples/src/main/webapp/inputNumberXXX/inputNumberXXX02.xhtml
deleted file mode 100644
index c72f870..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputNumberXXX/inputNumberXXX02.xhtml
+++ /dev/null
@@ -1,71 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputText.xhtml b/myfaces-html5-examples/src/main/webapp/inputText.xhtml
deleted file mode 100644
index 01f05ad..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputText.xhtml
+++ /dev/null
@@ -1,43 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputText/inputText01.xhtml b/myfaces-html5-examples/src/main/webapp/inputText/inputText01.xhtml
deleted file mode 100644
index dfd82b5..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputText/inputText01.xhtml
+++ /dev/null
@@ -1,64 +0,0 @@
-<!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>
diff --git a/myfaces-html5-examples/src/main/webapp/inputText/inputText02.xhtml b/myfaces-html5-examples/src/main/webapp/inputText/inputText02.xhtml
deleted file mode 100644
index 45b2beb..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputText/inputText02.xhtml
+++ /dev/null
@@ -1,72 +0,0 @@
-<!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>inputText types</h1>
- </ui:define>
-
- <ui:define name="content">
- <p>
- Notes:
- <ul>
- <li>The form won't be submitted until spaces breaking the URL are deleted from url input.(Chrome and Opera)</li>
- </ul>
- </p>
- <h:form>
- <h:panelGrid cols="2" >
- <label>text:</label>
- <hx:inputText id="textIT" value="#{inputTextBean.firstNumber}" type="text" cols="15"/>
-
- <label>search (Chrome):</label>
- <hx:inputText id="searchIT" value="#{inputTextBean.keyword}" type="search" cols="15"/>
-
- <label>url (Chrome and Opera):</label>
- <hx:inputText id="emailIT" value="#{inputTextBean.url}" type="url" oninvalid="alert('Invalid URL');" cols="15"/>
-
- <label>tel (Need to try it on Iphone's browser or other mobile browser):</label>
- <hx:inputText id="telIT" value="#{inputTextBean.tel}" type="tel" cols="15" />
-
- <label>textarea:</label>
- <hx:inputText id="textareaIT" value="#{inputTextBean.longText}" type="textarea" cols="15" rows="3"/>
-
- <label>textarea determined from rows property:</label>
- <hx:inputText id="anotherTextareaIT" value="#{inputTextBean.longText}" cols="15" rows="3"/>
-
- <label>password:</label>
- <hx:inputText id="passwordIT" value="#{inputTextBean.topSecret}" type="password" cols="15"/>
-
- <h:outputText />
- <h:commandButton action="none"/>
-
- </h:panelGrid>
- </h:form>
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/inputText/inputText03.xhtml b/myfaces-html5-examples/src/main/webapp/inputText/inputText03.xhtml
deleted file mode 100644
index 3a82186..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputText/inputText03.xhtml
+++ /dev/null
@@ -1,75 +0,0 @@
-<!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>inputText types</h1>
- </ui:define>
-
- <ui:define name="content">
- <p>
- Notes:
- <ul>
- <li>Ajax suggestions is working on Opera. However, even if the options of datalist is changed, Opera just doesn't
- update the list shown on screen immediately.
- After second input, the suggestions will be updated --> A ticket to the Opera tracker!</li>
- </ul>
- </p>
- <h:form id="myForm">
- <h:panelGrid cols="2" >
- <label>Static suggestions:</label>
- <hx:inputText id="textIT" value="#{inputTextBean.keyword}" type="text" cols="45"
- suggestions="#{inputTextBean.staticSuggestionItems}">
- </hx:inputText>
-
- <label>Ajax suggestions (works on Opera. see the note above), start typing a movie name(case sensitive):</label>
-
- <h:panelGroup>
-
- <hx:inputText id="otherTextIT" value="#{inputTextBean.movieName}" type="text" cols="45"
- datalist="myForm:dynamicDataList">
- <f:ajax event="input" render="dynamicDataList"/>
- </hx:inputText>
-
- <hx:dataList id="dynamicDataList">
- <f:selectItems value="#{inputTextBean.suggestionItems}" />
- </hx:dataList>
-
- </h:panelGroup>
-
-
-
- <h:outputText />
- <h:commandButton action="none"/>
-
- </h:panelGrid>
- </h:form>
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/inputText/inputText04.xhtml b/myfaces-html5-examples/src/main/webapp/inputText/inputText04.xhtml
deleted file mode 100644
index 76277a5..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputText/inputText04.xhtml
+++ /dev/null
@@ -1,87 +0,0 @@
-<!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>Pattern</h1>
- </ui:define>
-
- <ui:define name="content">
-
- <script>
- function handleValidationError(event,element){
- alert('Second input is not in correct format!');
- }
- </script>
-
- <p>
- Notes:
- <ul>
- <li>Examples in this page work in Chrome and Opera.</li>
- <li>Opera displays an error message on validation errors, where Chrome simply marks the invalid input.</li>
- </ul>
- </p>
- <h:form id="myForm">
- <h:panelGrid cols="2" >
- <label>Simple pattern usage:</label>
- <hx:inputText id="textIT" value="#{inputTextBean.someParam}" required="true" title="A part number is a digit followed by three uppercase letters.">
- <f:validateRegex pattern="[0-9][A-Z]{3}" />
- </hx:inputText>
-
- <label>Support for standard validators:</label>
- <hx:inputText id="anotherTextIT" value="#{inputTextBean.secondParam}" required="true" title="A prefix is must be minimum 3 characters, maximum 5 characters.">
- <f:validateLength minimum="3" maximum="5" />
- </hx:inputText>
-
- <label>Support for custom validators:</label>
- <hx:inputText id="someAnotherTextIT" value="#{inputTextBean.fourthParam}" required="true" title="A part number is a digit followed by three uppercase letters.">
- <f:validator validatorId="partNumberValidator" />
- </hx:inputText>
-
- <h:outputText />
- <h:commandButton action="none"/>
- </h:panelGrid>
- </h:form>
-
- <h:form id="myOtherForm">
- <h:panelGrid cols="2" >
- <label>Custom validation error handling:</label>
- <hx:inputText id="otherTextIT" value="#{inputTextBean.thirdParam}" oninvalid="handleValidationError(event, this);"
- title="A part number is a digit followed by three uppercase letters.">
- <f:validateRegex pattern="[0-9][A-Z]{3}" />
- </hx:inputText>
-
- <h:outputText />
- <h:commandButton action="none"/>
-
- </h:panelGrid>
- </h:form>
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/inputText/inputText05.xhtml b/myfaces-html5-examples/src/main/webapp/inputText/inputText05.xhtml
deleted file mode 100644
index 937e7c2..0000000
--- a/myfaces-html5-examples/src/main/webapp/inputText/inputText05.xhtml
+++ /dev/null
@@ -1,91 +0,0 @@
-<!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>Complex example</h1>
- </ui:define>
-
- <ui:define name="content">
- <p>
- Notes:
- <ul>
- <li>Examples in this page work in Chrome and Opera.</li>
- <li>Placeholders will be visible on Chrome. Opera doesn't support those.</li>
- <li>Opera displays an error message on validation errors, where Chrome simply marks the invalid input.</li>
- </ul>
- </p>
- <h:form id="myForm">
- <h:panelGrid cols="2" >
- <label>Name:</label>
- <hx:inputText id="nameIT" value="#{registerBean.name}" required="true" placeholder="Enter your name" cols="45" />
-
- <label>Username:</label>
- <hx:inputText id="usernameIT" value="#{registerBean.username}" required="true" placeholder="Enter your username"
- title="Username must consist of alphanumeric chars and underscore char; and it must be between 6 and 16 chars." cols="45" >
- <f:validateRegex pattern="^[a-zA-Z0-9_]{6,16}" />
- </hx:inputText>
-
- <label>Password:</label>
- <hx:inputText id="passwordIT" value="#{registerBean.password}" required="true" type="password" cols="45" placeholder="Enter your password"
- title="Password must be a 6 digit number.">
- <f:validateRegex pattern="^[0-9]{6}" />
- </hx:inputText>
-
- <label>Website(optional):</label>
- <hx:inputText id="websiteIT" value="#{registerBean.webSite}" type="url" placeholder="Enter your website url" cols="45" />
-
- <label>Comment(optional):</label>
- <hx:inputText id="commentIT" value="#{registerBean.comment}" type="textarea" placeholder="Free text" cols="45" rows="3"/>
-
- <label>Favorite Movie(optional) (uses case sensitive suggestions):</label>
- <h:panelGroup>
-
- <hx:inputText id="favoriteMovieNameIT" value="#{registerBean.favoriteMovieName}" type="text" cols="45"
- datalist="myForm:movieSuggestionsDataList">
- <f:ajax event="input" render="movieSuggestionsDataList"/>
- </hx:inputText>
-
- <hx:dataList id="movieSuggestionsDataList">
- <f:selectItems value="#{registerBean.movieSuggestionItems}" />
- </hx:dataList>
-
- </h:panelGroup>
-
- <label>Eye color(optional):</label>
- <hx:inputText id="eyeColorIT" value="#{registerBean.eyeColor}" suggestions="Brown,Green,Blue,Red" cols="45" />
-
- <h:outputText />
- <h:commandButton action="none"/>
- </h:panelGrid>
- </h:form>
-
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/meterProgress.xhtml b/myfaces-html5-examples/src/main/webapp/meterProgress.xhtml
deleted file mode 100644
index 678cd84..0000000
--- a/myfaces-html5-examples/src/main/webapp/meterProgress.xhtml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!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>meter and progress Index</h1>
- </ui:define>
-
- <ui:define name="content">
- <ul>
- <li><h:link outcome="meterProgress/meterProgress01" value="Simple progress"/></li>
- </ul>
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/meterProgress/meterProgress01.xhtml b/myfaces-html5-examples/src/main/webapp/meterProgress/meterProgress01.xhtml
deleted file mode 100644
index 04c9d18..0000000
--- a/myfaces-html5-examples/src/main/webapp/meterProgress/meterProgress01.xhtml
+++ /dev/null
@@ -1,62 +0,0 @@
-<!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 progress</h1>
- </ui:define>
-
- <ui:define name="content">
- <p>
- Notes:
- <ul>
- </ul>
- </p>
- <h:form id="demoForm">
- <h:panelGrid cols="2">
- <label>Simple progress:</label><br/>
- <hx:progress value="#{101}" maximum="#{201.0}" />
-
- <label>Simple progress:</label><br/>
- <hx:progress value="0.25" />
-
- <label>Simple meter:</label><br/>
- <hx:meter value="2" maximum="10" minimum="0" optimum="5" low="4" high="10"/>
-
- <label>Simple meter:</label><br/>
- <hx:meter value="0.6"/>
-
- <br/>
- <h:commandButton action="none"/><br/>
- </h:panelGrid>
- </h:form>
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/video.xhtml b/myfaces-html5-examples/src/main/webapp/video.xhtml
deleted file mode 100644
index c2f7c73..0000000
--- a/myfaces-html5-examples/src/main/webapp/video.xhtml
+++ /dev/null
@@ -1,45 +0,0 @@
-<!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>Video Index</h1>
- </ui:define>
-
- <ui:define name="content">
- <ul>
- <li><h:link outcome="video/video01" value="Simple Video"/></li>
- <li><h:link outcome="video/video02" value="Video Basic Attrs"/></li>
- <li><h:link outcome="video/video03" value="Video with fallback"/></li>
- <li><h:link outcome="video/video04" value="Video with custom controls and poster"/></li>
- <li><h:link outcome="video/video05" value="Video with different media source options and autoplay"/></li>
- <li><h:link outcome="video/video06" value="Video with fx:mediaSources"/></li>
- <li><h:link outcome="video/video07" value="Demo of other features"/></li>
- </ul>
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/video/video01.xhtml b/myfaces-html5-examples/src/main/webapp/video/video01.xhtml
deleted file mode 100644
index b472752..0000000
--- a/myfaces-html5-examples/src/main/webapp/video/video01.xhtml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!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 Video Demo</h1>
- </ui:define>
-
- <ui:define name="content">
- <hx:video value="http://diveintohtml5.org/i/pr6.ogv" />
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/video/video02.xhtml b/myfaces-html5-examples/src/main/webapp/video/video02.xhtml
deleted file mode 100644
index 8d376ab..0000000
--- a/myfaces-html5-examples/src/main/webapp/video/video02.xhtml
+++ /dev/null
@@ -1,47 +0,0 @@
-<!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>
-</h:head>
-<h:body>
- <ui:composition template="/_template.xhtml">
- <ui:define name="pageName">
- <h1>Video Basic Attrs</h1>
- <p>
- <ul>
- <li>Fetches the video on the page load</li>
- <li>Loops in the end</li>
- <li>Has custom height and width</li>
- </ul>
- </p>
- </ui:define>
-
- <ui:define name="content">
- <hx:video value="http://diveintohtml5.org/i/pr6.ogv" preload="auto"
- loop="true" width="300" height="100" />
- </ui:define>
-
- </ui:composition>
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/video/video03.xhtml b/myfaces-html5-examples/src/main/webapp/video/video03.xhtml
deleted file mode 100644
index a2a5102..0000000
--- a/myfaces-html5-examples/src/main/webapp/video/video03.xhtml
+++ /dev/null
@@ -1,70 +0,0 @@
-<!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.
--->
-<!--
- * 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>
-</h:head>
-<h:body>
-
- <ui:composition template="/_template.xhtml">
- <ui:define name="pageName">
- <h1>Video with fallback</h1>
- <p>
- <ul>
- <li>Try on different browsers. You will see a Javascript alert on IE and other(?) not supporting browsers.</li>
- </ul>
- </p>
- </ui:define>
-
- <ui:define name="content">
- <hx:video value="http://diveintohtml5.org/i/pr6.ogv">
- <f:facet name="fallback">
- <script>
- if(!(!!document.createElement('video').canPlayType))
- alert('No Html5 Video');
- </script>
- <p>NO Html5 video support here!</p>
- </f:facet>
- </hx:video>
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/video/video04.xhtml b/myfaces-html5-examples/src/main/webapp/video/video04.xhtml
deleted file mode 100644
index 8d5b415..0000000
--- a/myfaces-html5-examples/src/main/webapp/video/video04.xhtml
+++ /dev/null
@@ -1,53 +0,0 @@
-<!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>Video with custom controls</h1>
- <h3>If you don't see the poster, clear your browser's cache.</h3>
- </ui:define>
-
- <ui:define name="content">
- <script>
- function play(){
- document.getElementById('myVideo').play();
- }
- function pause(){
- document.getElementById('myVideo').pause();
- }
- </script>
-
- <hx:video id="myVideo"
- value="http://diveintohtml5.org/i/pr6.ogv" showControls="false" preload="none" poster="http://cs.anu.edu.au/students/comp2750-6700/icons/DukeWithHelmet.png"/>
-
- <button onclick="play()">Play</button>
- <button onclick="pause()">Pause</button>
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/video/video05.xhtml b/myfaces-html5-examples/src/main/webapp/video/video05.xhtml
deleted file mode 100644
index 0771ba6..0000000
--- a/myfaces-html5-examples/src/main/webapp/video/video05.xhtml
+++ /dev/null
@@ -1,50 +0,0 @@
-<!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>Video with different media source options and autoplay</h1>
- <ul>
- <li>Browser will choose the best option for itself.</li>
- <li>Video will start playing when the page is loaded..</li>
- </ul>
- </ui:define>
-
- <ui:define name="content">
-
- <h3>Using fx:mediaSource</h3>
- <hx:video autoplay="true">
- <fx:mediaSource src="http://diveintohtml5.org/i/pr6.mp4" contentType="video/mp4" codec="avc1.42E01E, mp4a.40.2"/>
- <fx:mediaSource src="http://diveintohtml5.org/i/pr6.webm" contentType="video/webm" codec="vp8, vorbis"/>
- <fx:mediaSource src="http://diveintohtml5.org/i/pr6.ogv" contentType="video/ogg" codec="theora, vorbis"/>
- </hx:video>
-
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/video/video06.xhtml b/myfaces-html5-examples/src/main/webapp/video/video06.xhtml
deleted file mode 100644
index 944fc77..0000000
--- a/myfaces-html5-examples/src/main/webapp/video/video06.xhtml
+++ /dev/null
@@ -1,47 +0,0 @@
-<!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>Video with fx:mediaSources</h1>
- </ui:define>
-
- <ui:define name="content">
-
- <h3>Using fx:mediaSources</h3>
- <hx:video>
- <fx:mediaSource src="http://diveintohtml5.org/i/pr6.ogv" contentType="video/ogg" codec="theora, vorbis"/>
- <fx:mediaSource src="http://somevideo.ogg" disabled="true"/>
-
- <fx:mediaSources items="#{videoBean.items}"/>
- </hx:video>
-
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>
diff --git a/myfaces-html5-examples/src/main/webapp/video/video07.xhtml b/myfaces-html5-examples/src/main/webapp/video/video07.xhtml
deleted file mode 100644
index 354bd75..0000000
--- a/myfaces-html5-examples/src/main/webapp/video/video07.xhtml
+++ /dev/null
@@ -1,47 +0,0 @@
-<!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>Demo of other features</h1>
- </ui:define>
-
- <ui:define name="content">
-
- <hx:video draggable="true" onpause="alert('paused!');"
- onvolumechange="alert('Volume changed!')" style="border: 10px solid red;">
- <fx:mediaSource src="http://diveintohtml5.org/i/pr6.ogv" contentType="video/ogg" codec="theora, vorbis"/>
- <fx:mediaSource src="http://somevideo.ogg" disabled="true"/>
-
- <fx:mediaSources items="#{videoBean.items}"/>
- </hx:video>
-
- </ui:define>
-
- </ui:composition>
-
-</h:body>
-</html>