You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by st...@apache.org on 2011/10/20 12:49:36 UTC
svn commit: r1186730 [4/22] - in /myfaces/commons/branches/jsf_20: examples/
examples/myfaces-commons-examples/src/main/java/org/apache/myfaces/commons/examples/
examples/myfaces-commons-examples/src/main/java/org/apache/myfaces/commons/examples/access...
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/exporter/ExporterBean.java
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/exporter/ExporterBean.java?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/exporter/ExporterBean.java (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/exporter/ExporterBean.java Thu Oct 20 10:49:18 2011
@@ -1,55 +1,55 @@
-/*
- * 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.commons.exporter;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * @author cagatay (latest modification by $Author: skitching $)
- * @version $Revision: 673833 $ $Date: 2008-07-03 23:58:05 +0200 (Thu, 03 Jul 2008) $
- */
-public class ExporterBean implements Serializable {
-
- private List carsList;
-
- public List getCarsList() {
- if( carsList == null)
- carsList = createCarsList();
- return carsList;
- }
-
- public void setCarsList(List carsList) {
- this.carsList = carsList;
- }
-
- private List createCarsList() {
- List list = new ArrayList();
-
- for(int i = 0; i < 10; ++i) {
- list.add( new SimpleCar(i, "row" + i, "value" + i));
- }
- return list;
- }
-
- public String export() {
- return null;
- }
-}
+/*
+ * 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.commons.exporter;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @author cagatay (latest modification by $Author: skitching $)
+ * @version $Revision: 673833 $ $Date: 2008-07-03 23:58:05 +0200 (Thu, 03 Jul 2008) $
+ */
+public class ExporterBean implements Serializable {
+
+ private List carsList;
+
+ public List getCarsList() {
+ if( carsList == null)
+ carsList = createCarsList();
+ return carsList;
+ }
+
+ public void setCarsList(List carsList) {
+ this.carsList = carsList;
+ }
+
+ private List createCarsList() {
+ List list = new ArrayList();
+
+ for(int i = 0; i < 10; ++i) {
+ list.add( new SimpleCar(i, "row" + i, "value" + i));
+ }
+ return list;
+ }
+
+ public String export() {
+ return null;
+ }
+}
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/exporter/ExporterBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/exporter/SimpleCar.java
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/exporter/SimpleCar.java?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/exporter/SimpleCar.java (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/exporter/SimpleCar.java Thu Oct 20 10:49:18 2011
@@ -1,75 +1,75 @@
-/*
- * 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.commons.exporter;
-
-import java.io.Serializable;
-
-/**
- * DOCUMENT ME!
- * @author Thomas Spiegl (latest modification by $Author: lu4242 $)
- * @version $Revision: 651110 $ $Date: 2008-04-24 01:46:09 +0200 (Thu, 24 Apr 2008) $
- */
-public class SimpleCar
- implements Serializable
-{
- /**
- * serial id for serialisation versioning
- */
- private static final long serialVersionUID = 1L;
- private int _id;
- private String _type;
- private String _color;
-
- public SimpleCar(int id, String type, String color)
- {
- _id = id;
- _type = type;
- _color = color;
- }
-
- public int getId()
- {
- return _id;
- }
-
- public void setId(int id)
- {
- _id = id;
- }
-
- public String getType()
- {
- return _type;
- }
-
- public void setType(String type)
- {
- _type = type;
- }
-
- public String getColor()
- {
- return _color;
- }
-
- public void setColor(String color)
- {
- _color = color;
- }
-}
+/*
+ * 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.commons.exporter;
+
+import java.io.Serializable;
+
+/**
+ * DOCUMENT ME!
+ * @author Thomas Spiegl (latest modification by $Author: lu4242 $)
+ * @version $Revision: 651110 $ $Date: 2008-04-24 01:46:09 +0200 (Thu, 24 Apr 2008) $
+ */
+public class SimpleCar
+ implements Serializable
+{
+ /**
+ * serial id for serialisation versioning
+ */
+ private static final long serialVersionUID = 1L;
+ private int _id;
+ private String _type;
+ private String _color;
+
+ public SimpleCar(int id, String type, String color)
+ {
+ _id = id;
+ _type = type;
+ _color = color;
+ }
+
+ public int getId()
+ {
+ return _id;
+ }
+
+ public void setId(int id)
+ {
+ _id = id;
+ }
+
+ public String getType()
+ {
+ return _type;
+ }
+
+ public void setType(String type)
+ {
+ _type = type;
+ }
+
+ public String getColor()
+ {
+ return _color;
+ }
+
+ public void setColor(String color)
+ {
+ _color = color;
+ }
+}
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/exporter/SimpleCar.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/renderone/RenderOneBean.java
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/renderone/RenderOneBean.java?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/renderone/RenderOneBean.java (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/renderone/RenderOneBean.java Thu Oct 20 10:49:18 2011
@@ -1,107 +1,107 @@
-/*
- * 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.commons.renderone;
-
-import java.io.Serializable;
-
-/**
- * @author Andrew Robinson (latest modification by $Author: skitching $)
- * @version $Revision: 676967 $ $Date: 2008-07-15 18:57:23 +0200 (Tue, 15 Jul 2008) $
- */
-public class RenderOneBean implements Serializable
-{
- private boolean aRendered = false;
- private boolean cRendered = true;
- private boolean dRendered = true;
- private boolean bRendered = true;
-
- private Integer index = new Integer("2");
-
- /**
- * @return the index
- */
- public Integer getIndex()
- {
- return this.index;
- }
-
- /**
- * @return the aRendered
- */
- public boolean isARendered()
- {
- return this.aRendered;
- }
-
- /**
- * @param rendered the aRendered to set
- */
- public void setARendered(boolean rendered)
- {
- this.aRendered = rendered;
- }
-
- /**
- * @return the cRendered
- */
- public boolean isCRendered()
- {
- return this.cRendered;
- }
-
- /**
- * @param rendered the cRendered to set
- */
- public void setCRendered(boolean rendered)
- {
- this.cRendered = rendered;
- }
-
- /**
- * @return the dRendered
- */
- public boolean isDRendered()
- {
- return this.dRendered;
- }
-
- /**
- * @param rendered the dRendered to set
- */
- public void setDRendered(boolean rendered)
- {
- this.dRendered = rendered;
- }
-
- /**
- * @return the bRendered
- */
- public boolean isBRendered()
- {
- return this.bRendered;
- }
-
- /**
- * @param rendered the bRendered to set
- */
- public void setBRendered(boolean rendered)
- {
- this.bRendered = rendered;
- }
-}
+/*
+ * 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.commons.renderone;
+
+import java.io.Serializable;
+
+/**
+ * @author Andrew Robinson (latest modification by $Author: skitching $)
+ * @version $Revision: 676967 $ $Date: 2008-07-15 18:57:23 +0200 (Tue, 15 Jul 2008) $
+ */
+public class RenderOneBean implements Serializable
+{
+ private boolean aRendered = false;
+ private boolean cRendered = true;
+ private boolean dRendered = true;
+ private boolean bRendered = true;
+
+ private Integer index = new Integer("2");
+
+ /**
+ * @return the index
+ */
+ public Integer getIndex()
+ {
+ return this.index;
+ }
+
+ /**
+ * @return the aRendered
+ */
+ public boolean isARendered()
+ {
+ return this.aRendered;
+ }
+
+ /**
+ * @param rendered the aRendered to set
+ */
+ public void setARendered(boolean rendered)
+ {
+ this.aRendered = rendered;
+ }
+
+ /**
+ * @return the cRendered
+ */
+ public boolean isCRendered()
+ {
+ return this.cRendered;
+ }
+
+ /**
+ * @param rendered the cRendered to set
+ */
+ public void setCRendered(boolean rendered)
+ {
+ this.cRendered = rendered;
+ }
+
+ /**
+ * @return the dRendered
+ */
+ public boolean isDRendered()
+ {
+ return this.dRendered;
+ }
+
+ /**
+ * @param rendered the dRendered to set
+ */
+ public void setDRendered(boolean rendered)
+ {
+ this.dRendered = rendered;
+ }
+
+ /**
+ * @return the bRendered
+ */
+ public boolean isBRendered()
+ {
+ return this.bRendered;
+ }
+
+ /**
+ * @param rendered the bRendered to set
+ */
+ public void setBRendered(boolean rendered)
+ {
+ this.bRendered = rendered;
+ }
+}
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/renderone/RenderOneBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/servlet/SourceCodeServlet.java
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/servlet/SourceCodeServlet.java?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/servlet/SourceCodeServlet.java (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/servlet/SourceCodeServlet.java Thu Oct 20 10:49:18 2011
@@ -1,129 +1,129 @@
-/*
- * 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.commons.servlet;
-
-import java.io.BufferedInputStream;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-
-import javax.servlet.ServletException;
-import javax.servlet.ServletOutputStream;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-public class SourceCodeServlet extends HttpServlet
-{
- public void doGet(HttpServletRequest req, HttpServletResponse res)
- throws IOException, ServletException
- {
- String webPage = req.getServletPath();
-
- // remove the '*.source' suffix that maps to this servlet
- int chopPoint = webPage.lastIndexOf(".source");
-
- webPage = webPage.substring(0, chopPoint);
-
- if(webPage.endsWith(".jsf"))
- {
- int jsfChopPoint = webPage.lastIndexOf(".jsf");
-
- webPage = webPage.substring(0, jsfChopPoint);
-
- webPage += ".xhtml"; // replace jsf with jsp
-
- // get the actual file location of the requested resource
- String realPath = getServletConfig().getServletContext().getRealPath(webPage);
-
- outputFile(res, realPath);
- }
- else if(webPage.endsWith(".jsp"))
- {
- // get the actual file location of the requested resource
- String realPath = getServletConfig().getServletContext().getRealPath(webPage);
-
- outputFile(res, realPath);
- }
- else if(webPage.endsWith(".jspx"))
- {
- // get the actual file location of the requested resource
- String realPath = getServletConfig().getServletContext().getRealPath(webPage);
-
- outputFile(res, realPath);
- }
- else if(webPage.endsWith(".xhtml"))
- {
- // get the actual file location of the requested resource
- String realPath = getServletConfig().getServletContext().getRealPath(webPage);
-
- outputFile(res, realPath);
- }
- else
- {
- int beginChopPoint = webPage.lastIndexOf("/");
- int extensionChopPoint = webPage.lastIndexOf(".java");
-
- webPage = webPage.substring(beginChopPoint+1,extensionChopPoint);
-
- try
- {
-
- // get the actual file location of the requested resource; try it in classes first
- String realPath = getServletConfig().getServletContext().getRealPath("/WEB-INF/classes/"+webPage.replace('.','/')+".java");
-
- outputFile(res, realPath);
- }
- catch(Exception e)
- {
- //classes hasn't worked. How about src?
- String realPath = getServletConfig().getServletContext().getRealPath("/WEB-INF/src/"+webPage.replace('.','/')+".java");
-
- outputFile(res, realPath);
- }
-
- }
- }
-
- private void outputFile(HttpServletResponse res, String realPath)
- throws IOException
- {
- // output an HTML page
- res.setContentType("text/plain");
-
- // print some html
- ServletOutputStream out = res.getOutputStream();
-
- // print the file
- InputStream in = null;
- try
- {
- in = new BufferedInputStream(new FileInputStream(realPath));
- int ch;
- while ((ch = in.read()) !=-1)
- {
- out.print((char)ch);
- }
- }
- finally {
- if (in != null) in.close(); // very important
- }
- }
-}
+/*
+ * 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.commons.servlet;
+
+import java.io.BufferedInputStream;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+
+import javax.servlet.ServletException;
+import javax.servlet.ServletOutputStream;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+public class SourceCodeServlet extends HttpServlet
+{
+ public void doGet(HttpServletRequest req, HttpServletResponse res)
+ throws IOException, ServletException
+ {
+ String webPage = req.getServletPath();
+
+ // remove the '*.source' suffix that maps to this servlet
+ int chopPoint = webPage.lastIndexOf(".source");
+
+ webPage = webPage.substring(0, chopPoint);
+
+ if(webPage.endsWith(".jsf"))
+ {
+ int jsfChopPoint = webPage.lastIndexOf(".jsf");
+
+ webPage = webPage.substring(0, jsfChopPoint);
+
+ webPage += ".xhtml"; // replace jsf with jsp
+
+ // get the actual file location of the requested resource
+ String realPath = getServletConfig().getServletContext().getRealPath(webPage);
+
+ outputFile(res, realPath);
+ }
+ else if(webPage.endsWith(".jsp"))
+ {
+ // get the actual file location of the requested resource
+ String realPath = getServletConfig().getServletContext().getRealPath(webPage);
+
+ outputFile(res, realPath);
+ }
+ else if(webPage.endsWith(".jspx"))
+ {
+ // get the actual file location of the requested resource
+ String realPath = getServletConfig().getServletContext().getRealPath(webPage);
+
+ outputFile(res, realPath);
+ }
+ else if(webPage.endsWith(".xhtml"))
+ {
+ // get the actual file location of the requested resource
+ String realPath = getServletConfig().getServletContext().getRealPath(webPage);
+
+ outputFile(res, realPath);
+ }
+ else
+ {
+ int beginChopPoint = webPage.lastIndexOf("/");
+ int extensionChopPoint = webPage.lastIndexOf(".java");
+
+ webPage = webPage.substring(beginChopPoint+1,extensionChopPoint);
+
+ try
+ {
+
+ // get the actual file location of the requested resource; try it in classes first
+ String realPath = getServletConfig().getServletContext().getRealPath("/WEB-INF/classes/"+webPage.replace('.','/')+".java");
+
+ outputFile(res, realPath);
+ }
+ catch(Exception e)
+ {
+ //classes hasn't worked. How about src?
+ String realPath = getServletConfig().getServletContext().getRealPath("/WEB-INF/src/"+webPage.replace('.','/')+".java");
+
+ outputFile(res, realPath);
+ }
+
+ }
+ }
+
+ private void outputFile(HttpServletResponse res, String realPath)
+ throws IOException
+ {
+ // output an HTML page
+ res.setContentType("text/plain");
+
+ // print some html
+ ServletOutputStream out = res.getOutputStream();
+
+ // print the file
+ InputStream in = null;
+ try
+ {
+ in = new BufferedInputStream(new FileInputStream(realPath));
+ int ch;
+ while ((ch = in.read()) !=-1)
+ {
+ out.print((char)ch);
+ }
+ }
+ finally {
+ if (in != null) in.close(); // very important
+ }
+ }
+}
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/java/org/apache/myfaces/commons/servlet/SourceCodeServlet.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties Thu Oct 20 10:49:18 2011
@@ -1,21 +1,21 @@
-button_submit = Submit
-email_comma = Email separated by ,
-credit_dot = Credit Card separated by .
-credit_number = Insert a credit card number
-credit_type = Please select one card type
-url_comma = Url separated by ,
-isbn_semicolon = ISBN separated by ;
-validate_email = Email
-validate_credit = Credit Card
-validate_url = Url
-validate_enum = Enumeration (NONE,PRIMARY,SECUNDARY,UNIVERSITY,MASTER,DOCTOR)
-validate_regexp = Regular Expression(bat,cat,rat are valid values)
-validate_isbn = ISBN
-validate_base = Base value
-validate_equal = Validate Equal
-validate_notequal = Validate Not Equal
-validate_greaterthan = Validate Greater Than
-validate_greaterthanequal = Validate Greater Than Equal
-validate_lessthan = Validate Less Than
-validate_lessthanequal =Validate Less Than Equal
+button_submit = Submit
+email_comma = Email separated by ,
+credit_dot = Credit Card separated by .
+credit_number = Insert a credit card number
+credit_type = Please select one card type
+url_comma = Url separated by ,
+isbn_semicolon = ISBN separated by ;
+validate_email = Email
+validate_credit = Credit Card
+validate_url = Url
+validate_enum = Enumeration (NONE,PRIMARY,SECUNDARY,UNIVERSITY,MASTER,DOCTOR)
+validate_regexp = Regular Expression(bat,cat,rat are valid values)
+validate_isbn = ISBN
+validate_base = Base value
+validate_equal = Validate Equal
+validate_notequal = Validate Not Equal
+validate_greaterthan = Validate Greater Than
+validate_greaterthanequal = Validate Greater Than Equal
+validate_lessthan = Validate Less Than
+validate_lessthanequal =Validate Less Than Equal
title=Myfaces Commons Example
\ No newline at end of file
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/footer.xhtml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/footer.xhtml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/footer.xhtml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/footer.xhtml Thu Oct 20 10:49:18 2011
@@ -1,18 +1,18 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:t="http://myfaces.apache.org/tomahawk">
-<body>
-<ui:composition>
- <br/>
- <br/>
- <a href="home.jsf">[HOME]</a>
-
- <a href="#{request.requestURI}.source">[SOURCE]</a>
-</ui:composition>
-</body>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:t="http://myfaces.apache.org/tomahawk">
+<body>
+<ui:composition>
+ <br/>
+ <br/>
+ <a href="home.jsf">[HOME]</a>
+
+ <a href="#{request.requestURI}.source">[SOURCE]</a>
+</ui:composition>
+</body>
</html>
\ No newline at end of file
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/footer.xhtml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/mbean_source.xhtml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/mbean_source.xhtml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/mbean_source.xhtml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/mbean_source.xhtml Thu Oct 20 10:49:18 2011
@@ -1,25 +1,25 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:fn="http://java.sun.com/jsp/jstl/functions">
-<body>
-<ui:composition>
- <br/>
- <br/>
- <h:dataTable value="#{accessedBeans.beanList}" var="accessedBean">
- <h:column>
- <h:outputLink value="#{accessedBean.clazz}.java.source" disabled="#{!fn:startsWith(accessedBean.clazz,'org.apache.myfaces.commons')}">
- <h:outputText value="Usage of bean with name : "/>
- <h:outputText value="#{accessedBean.name}"/>
- <h:outputText value=" and class : "/>
- <h:outputText value="#{accessedBean.clazz}"/>
- </h:outputLink>
- </h:column>
- </h:dataTable>
-</ui:composition>
-</body>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:fn="http://java.sun.com/jsp/jstl/functions">
+<body>
+<ui:composition>
+ <br/>
+ <br/>
+ <h:dataTable value="#{accessedBeans.beanList}" var="accessedBean">
+ <h:column>
+ <h:outputLink value="#{accessedBean.clazz}.java.source" disabled="#{!fn:startsWith(accessedBean.clazz,'org.apache.myfaces.commons')}">
+ <h:outputText value="Usage of bean with name : "/>
+ <h:outputText value="#{accessedBean.name}"/>
+ <h:outputText value=" and class : "/>
+ <h:outputText value="#{accessedBean.clazz}"/>
+ </h:outputLink>
+ </h:column>
+ </h:dataTable>
+</ui:composition>
+</body>
</html>
\ No newline at end of file
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/mbean_source.xhtml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/template.xhtml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/template.xhtml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/template.xhtml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/template.xhtml Thu Oct 20 10:49:18 2011
@@ -1,30 +1,30 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://java.sun.com/jsf/facelets">
-<head>
- <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
- <title>MyFaces - the free JSF Implementation</title>
- <link rel="stylesheet" type="text/css" href="./css/basic.css" />
- <ui:insert name="head"/>
-</head>
-<body>
- <f:loadBundle
- basename="org.apache.myfaces.examples.resource.example_messages"
- var="example_messages" />
-<div id="container">
- <h1><h:outputText value="#{example_messages['title']}"/></h1>
- <br/>
- <ui:insert name="body"/>
- <ui:insert name="mbean_source">
- <ui:include src="/META-INF/templates/mbean_source.xhtml"/>
- </ui:insert>
- <ui:insert name="footer">
- <ui:include src="/META-INF/templates/footer.xhtml"/>
- </ui:insert>
-</div>
-</body>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+<head>
+ <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
+ <title>MyFaces - the free JSF Implementation</title>
+ <link rel="stylesheet" type="text/css" href="./css/basic.css" />
+ <ui:insert name="head"/>
+</head>
+<body>
+ <f:loadBundle
+ basename="org.apache.myfaces.examples.resource.example_messages"
+ var="example_messages" />
+<div id="container">
+ <h1><h:outputText value="#{example_messages['title']}"/></h1>
+ <br/>
+ <ui:insert name="body"/>
+ <ui:insert name="mbean_source">
+ <ui:include src="/META-INF/templates/mbean_source.xhtml"/>
+ </ui:insert>
+ <ui:insert name="footer">
+ <ui:include src="/META-INF/templates/footer.xhtml"/>
+ </ui:insert>
+</div>
+</body>
</html>
\ No newline at end of file
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/META-INF/templates/template.xhtml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/faces-config.xml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/faces-config.xml Thu Oct 20 10:49:18 2011
@@ -1,70 +1,70 @@
-<?xml version='1.0' encoding='UTF-8'?>
-
-<!DOCTYPE faces-config PUBLIC
- "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
- "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
-
-<faces-config>
-
- <!-- from project setup -->
- <application>
- <variable-resolver>org.apache.myfaces.commons.examples.accessedbeans.AccessTrackingVariableResolver</variable-resolver>
- </application>
-
- <!-- Accessed beans on the last request -->
- <managed-bean>
- <managed-bean-name>accessedBeans</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.commons.examples.accessedbeans.AccessedBeans</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>dataFieldHolder</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.commons.examples.DataFieldHolder</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <!-- validation -->
- <managed-bean>
- <managed-bean-name>validateForm</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.commons.examples.validate.ValidateForm</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>validateEnum</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.commons.examples.validate.ValidateEnum</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>exporterBean</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.commons.exporter.ExporterBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>renderOne</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.commons.renderone.RenderOneBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>validateCreditCard</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.commons.examples.validate.ValidateCreditCard</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
-
- <managed-bean>
- <managed-bean-name>dateTimeBean</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.commons.examples.DateTimeBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
-
- <managed-bean>
- <managed-bean-name>numberBean</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.commons.examples.NumberBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
-
- <managed-bean>
- <managed-bean-name>booleanBean</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.commons.examples.BooleanBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
-
-</faces-config>
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!DOCTYPE faces-config PUBLIC
+ "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+
+<faces-config>
+
+ <!-- from project setup -->
+ <application>
+ <variable-resolver>org.apache.myfaces.commons.examples.accessedbeans.AccessTrackingVariableResolver</variable-resolver>
+ </application>
+
+ <!-- Accessed beans on the last request -->
+ <managed-bean>
+ <managed-bean-name>accessedBeans</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.commons.examples.accessedbeans.AccessedBeans</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>dataFieldHolder</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.commons.examples.DataFieldHolder</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <!-- validation -->
+ <managed-bean>
+ <managed-bean-name>validateForm</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.commons.examples.validate.ValidateForm</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>validateEnum</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.commons.examples.validate.ValidateEnum</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>exporterBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.commons.exporter.ExporterBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>renderOne</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.commons.renderone.RenderOneBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>validateCreditCard</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.commons.examples.validate.ValidateCreditCard</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>dateTimeBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.commons.examples.DateTimeBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>numberBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.commons.examples.NumberBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>booleanBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.commons.examples.BooleanBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+</faces-config>
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/layout/layout.xhtml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/layout/layout.xhtml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/layout/layout.xhtml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/layout/layout.xhtml Thu Oct 20 10:49:18 2011
@@ -1,41 +1,41 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets">
-
-<!--
-/*
- * 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.
- */
-//-->
-
-<head>
- <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
- <title>MyFaces - the free JSF Implementation</title>
- <link rel="stylesheet" type="text/css" href="./css/basic.css" />
-</head>
-
-<body>
-
- <ui:insert name="content">
- Include the example here!!!
- </ui:insert>
-
-</body>
-
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<head>
+ <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
+ <title>MyFaces - the free JSF Implementation</title>
+ <link rel="stylesheet" type="text/css" href="./css/basic.css" />
+</head>
+
+<body>
+
+ <ui:insert name="content">
+ Include the example here!!!
+ </ui:insert>
+
+</body>
+
+</html>
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/layout/layout.xhtml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/listeners/exporterActionListener.xml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/listeners/exporterActionListener.xml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/listeners/exporterActionListener.xml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/listeners/exporterActionListener.xml Thu Oct 20 10:49:18 2011
@@ -1,11 +1,11 @@
-<!DOCTYPE facelet-taglib PUBLIC
- "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
- "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
-
-<facelet-taglib>
- <namespace>http://myfaces.apache.org/commons/components</namespace>
- <tag>
- <tag-name>exporterActionListener</tag-name>
- <handler-class>org.apache.myfaces.commons.exporter.FaceletsExporterActionListenerTag</handler-class>
- </tag>
+<!DOCTYPE facelet-taglib PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
+ "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
+
+<facelet-taglib>
+ <namespace>http://myfaces.apache.org/commons/components</namespace>
+ <tag>
+ <tag-name>exporterActionListener</tag-name>
+ <handler-class>org.apache.myfaces.commons.exporter.FaceletsExporterActionListenerTag</handler-class>
+ </tag>
</facelet-taglib>
\ No newline at end of file
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/listeners/exporterActionListener.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/myfaces-resources-config.xml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/myfaces-resources-config.xml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/myfaces-resources-config.xml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/myfaces-resources-config.xml Thu Oct 20 10:49:18 2011
@@ -1,30 +1,30 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<myfaces-resources-config>
- <!-- Mark this library to be handled by Extended Resource Handler -->
- <library>
- <library-name>mycustomlib</library-name>
- </library>
-
- <!-- Customize generated request path (the following will do the same as the default one by the Extended Resource Handler.
- <library>
- <library-name>mycustomlib</library-name>
- <request-path>#{extensionMapping ? '' : mapping}/javax.faces.resource/$/#{localePrefix}/#{libraryName}/#{resourceName}#{extensionMapping ? mapping : ''}</request-path>
- </library>
- -->
-
- <!-- Redirect resource to a CDN or other page
- <library>
- <library-name>mycustomlib</library-name>
- <request-path>http://any.cdn.site/myfaces-commons-facelets-examples20/resources/#{libraryName}/#{resourceName}</request-path>
- </library>
- -->
-
- <!-- Use an "alias" name for a library -->
- <!--
- <library>
- <library-name>mycustomlib2</library-name>
- <redirect-name>mycustomlib</redirect-name>
- </library>
- -->
-
-</myfaces-resources-config>
+<?xml version="1.0" encoding="UTF-8"?>
+<myfaces-resources-config>
+ <!-- Mark this library to be handled by Extended Resource Handler -->
+ <library>
+ <library-name>mycustomlib</library-name>
+ </library>
+
+ <!-- Customize generated request path (the following will do the same as the default one by the Extended Resource Handler.
+ <library>
+ <library-name>mycustomlib</library-name>
+ <request-path>#{extensionMapping ? '' : mapping}/javax.faces.resource/$/#{localePrefix}/#{libraryName}/#{resourceName}#{extensionMapping ? mapping : ''}</request-path>
+ </library>
+ -->
+
+ <!-- Redirect resource to a CDN or other page
+ <library>
+ <library-name>mycustomlib</library-name>
+ <request-path>http://any.cdn.site/myfaces-commons-facelets-examples20/resources/#{libraryName}/#{resourceName}</request-path>
+ </library>
+ -->
+
+ <!-- Use an "alias" name for a library -->
+ <!--
+ <library>
+ <library-name>mycustomlib2</library-name>
+ <redirect-name>mycustomlib</redirect-name>
+ </library>
+ -->
+
+</myfaces-resources-config>
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/myfaces-resources-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/web.xml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/web.xml Thu Oct 20 10:49:18 2011
@@ -1,107 +1,107 @@
-<?xml version="1.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.
--->
-<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
- version="2.4">
-
- <description>MyProject web.xml</description>
-
-
- <context-param>
- <description>State saving method: "client" or "server" (= default) See JSF Specification 2.5.3</description>
- <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>client</param-value>
- </context-param>
- <context-param>
- <param-name>facelets.REFRESH_PERIOD</param-name>
- <param-value>2</param-value>
- </context-param>
-
- <context-param>
- <param-name>facelets.DEVELOPMENT</param-name>
- <param-value>true</param-value>
- </context-param>
-
-
- <context-param>
- <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
- <param-value>.xhtml</param-value>
- </context-param>
-
- <context-param>
- <description>
- Set this flag to true if you want the JavaServer Faces
- Reference Implementation to validate the XML in your
- faces-config.xml resources against the DTD. Default
- value is false.
- </description>
- <param-name>com.sun.faces.validateXml</param-name>
- <param-value>true</param-value>
- </context-param>
-
- <context-param>
- <description>
- Set this flag to true if you want the JavaServer Faces
- Reference Implementation to verify that all of the application
- objects you have configured (components, converters,
- renderers, and validators) can be successfully created.
- Default value is false.
- </description>
- <param-name>com.sun.faces.verifyObjects</param-name>
- <param-value>true</param-value>
- </context-param>
-
- <!-- Faces Servlet -->
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
-
- <!-- Faces Servlet Mapping -->
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>/faces/*</url-pattern>
- </servlet-mapping>
-
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>*.jsf</url-pattern>
- </servlet-mapping>
-
- <servlet>
- <servlet-name>SourceCodeServlet</servlet-name>
- <servlet-class>org.apache.myfaces.commons.servlet.SourceCodeServlet</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>SourceCodeServlet</servlet-name>
- <url-pattern>*.source</url-pattern>
- </servlet-mapping>
-
- <!-- Welcome files -->
- <welcome-file-list>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>index.html</welcome-file>
- </welcome-file-list>
-
-</web-app>
+<?xml version="1.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.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <description>MyProject web.xml</description>
+
+
+ <context-param>
+ <description>State saving method: "client" or "server" (= default) See JSF Specification 2.5.3</description>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-value>2</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Set this flag to true if you want the JavaServer Faces
+ Reference Implementation to validate the XML in your
+ faces-config.xml resources against the DTD. Default
+ value is false.
+ </description>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Set this flag to true if you want the JavaServer Faces
+ Reference Implementation to verify that all of the application
+ objects you have configured (components, converters,
+ renderers, and validators) can be successfully created.
+ Default value is false.
+ </description>
+ <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+
+ <!-- Faces Servlet Mapping -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>SourceCodeServlet</servlet-name>
+ <servlet-class>org.apache.myfaces.commons.servlet.SourceCodeServlet</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>SourceCodeServlet</servlet-name>
+ <url-pattern>*.source</url-pattern>
+ </servlet-mapping>
+
+ <!-- Welcome files -->
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+
+</web-app>
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertBoolean.xhtml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertBoolean.xhtml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertBoolean.xhtml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertBoolean.xhtml Thu Oct 20 10:49:18 2011
@@ -1,64 +1,64 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:mcv="http://myfaces.apache.org/commons/validators"
- xmlns:mcc="http://myfaces.apache.org/commons/converters"
- xmlns:mc="http://myfaces.apache.org/commons/components">
-
-<!--
-/*
- * 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.
- */
-//-->
-
-<body>
-<ui:composition template="/META-INF/templates/template.xhtml">
- <ui:define name="body">
- <h:panelGroup id="body">
- <p>This example check how mcc:convertBoolean works. This converter
- translates between boolean values (true/false)
- and alternate versions of those boolean values like
- (yes/no), (1/0), and (way/no way).</p>
- <h:form id="form1">
- <h:messages showDetail="false" showSummary="true" ></h:messages>
- <p>Current value: <h:outputText value="#{booleanBean.way}"/></p>
- <h:panelGrid columns="3">
-
- <h:outputLabel for="boolVal" value="" />
- <h:inputText id="boolVal" value="#{booleanBean.way}" required="true">
- <mcc:convertBoolean trueValue="way" falseValue="no way" />
- </h:inputText>
- <h:message for="boolVal" styleClass="error" />
-
- <h:panelGroup />
- <h:commandButton id="validateButton"
- value="#{example_messages['button_submit']}"
- action="#{booleanBean.submit}" />
- <h:panelGroup />
-
- </h:panelGrid>
- </h:form>
-
- </h:panelGroup>
- </ui:define>
-</ui:composition>
-</body>
-
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:mcv="http://myfaces.apache.org/commons/validators"
+ xmlns:mcc="http://myfaces.apache.org/commons/converters"
+ xmlns:mc="http://myfaces.apache.org/commons/components">
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<body>
+<ui:composition template="/META-INF/templates/template.xhtml">
+ <ui:define name="body">
+ <h:panelGroup id="body">
+ <p>This example check how mcc:convertBoolean works. This converter
+ translates between boolean values (true/false)
+ and alternate versions of those boolean values like
+ (yes/no), (1/0), and (way/no way).</p>
+ <h:form id="form1">
+ <h:messages showDetail="false" showSummary="true" ></h:messages>
+ <p>Current value: <h:outputText value="#{booleanBean.way}"/></p>
+ <h:panelGrid columns="3">
+
+ <h:outputLabel for="boolVal" value="" />
+ <h:inputText id="boolVal" value="#{booleanBean.way}" required="true">
+ <mcc:convertBoolean trueValue="way" falseValue="no way" />
+ </h:inputText>
+ <h:message for="boolVal" styleClass="error" />
+
+ <h:panelGroup />
+ <h:commandButton id="validateButton"
+ value="#{example_messages['button_submit']}"
+ action="#{booleanBean.submit}" />
+ <h:panelGroup />
+
+ </h:panelGrid>
+ </h:form>
+
+ </h:panelGroup>
+ </ui:define>
+</ui:composition>
+</body>
+
+</html>
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertBoolean.xhtml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertDateTime.xhtml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertDateTime.xhtml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertDateTime.xhtml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertDateTime.xhtml Thu Oct 20 10:49:18 2011
@@ -1,74 +1,74 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:mcv="http://myfaces.apache.org/commons/validators"
- xmlns:mcc="http://myfaces.apache.org/commons/converters"
- xmlns:mc="http://myfaces.apache.org/commons/components">
-
-<!--
-/*
- * 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.
- */
-//-->
-
-<body>
-<ui:composition template="/META-INF/templates/template.xhtml">
- <ui:define name="body">
- <h:panelGroup id="body">
- <p>This example shows how mcc:convertDateTime component works. It works almost
- the same as f:convertDateTime, but it has as TimeZone default
- TimeZone.getDefault() instead GMT and it evaluate EL expressions when the value
- is being validated instead when the converter is built. </p>
- <p>Current Locale: <h:outputText value="#{facesContext.viewRoot.locale}"/></p>
- <h:form id="form1">
- <h:messages showDetail="false" showSummary="true" ></h:messages>
- <h:panelGrid columns="3">
-
- <h:outputLabel for="type"
- value="Insert a type" />
- <h:selectOneMenu id="type" immediate="true" value="#{dateTimeBean.type}" >
- <f:selectItem itemLabel="date" itemValue="date"/>
- <f:selectItem itemLabel="time" itemValue="time"/>
- <f:selectItem itemLabel="both" itemValue="both"/>
- </h:selectOneMenu>
- <h:message for="type" styleClass="error" />
-
- <h:outputLabel for="date1"
- value="Insert a date/time" />
- <h:inputText id="date1" value="#{dateTimeBean.date1}" required="true">
- <mcc:convertDateTime type="#{mc:findComponent('form1:type').value}"/>
- </h:inputText>
- <h:message for="date1" styleClass="error" />
-
- <h:panelGroup />
- <h:commandButton id="validateButton"
- value="#{example_messages['button_submit']}"
- action="#{dateTimeBean.submit}" />
- <h:panelGroup />
-
- </h:panelGrid>
- </h:form>
-
- </h:panelGroup>
- </ui:define>
-</ui:composition>
-</body>
-
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:mcv="http://myfaces.apache.org/commons/validators"
+ xmlns:mcc="http://myfaces.apache.org/commons/converters"
+ xmlns:mc="http://myfaces.apache.org/commons/components">
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<body>
+<ui:composition template="/META-INF/templates/template.xhtml">
+ <ui:define name="body">
+ <h:panelGroup id="body">
+ <p>This example shows how mcc:convertDateTime component works. It works almost
+ the same as f:convertDateTime, but it has as TimeZone default
+ TimeZone.getDefault() instead GMT and it evaluate EL expressions when the value
+ is being validated instead when the converter is built. </p>
+ <p>Current Locale: <h:outputText value="#{facesContext.viewRoot.locale}"/></p>
+ <h:form id="form1">
+ <h:messages showDetail="false" showSummary="true" ></h:messages>
+ <h:panelGrid columns="3">
+
+ <h:outputLabel for="type"
+ value="Insert a type" />
+ <h:selectOneMenu id="type" immediate="true" value="#{dateTimeBean.type}" >
+ <f:selectItem itemLabel="date" itemValue="date"/>
+ <f:selectItem itemLabel="time" itemValue="time"/>
+ <f:selectItem itemLabel="both" itemValue="both"/>
+ </h:selectOneMenu>
+ <h:message for="type" styleClass="error" />
+
+ <h:outputLabel for="date1"
+ value="Insert a date/time" />
+ <h:inputText id="date1" value="#{dateTimeBean.date1}" required="true">
+ <mcc:convertDateTime type="#{mc:findComponent('form1:type').value}"/>
+ </h:inputText>
+ <h:message for="date1" styleClass="error" />
+
+ <h:panelGroup />
+ <h:commandButton id="validateButton"
+ value="#{example_messages['button_submit']}"
+ action="#{dateTimeBean.submit}" />
+ <h:panelGroup />
+
+ </h:panelGrid>
+ </h:form>
+
+ </h:panelGroup>
+ </ui:define>
+</ui:composition>
+</body>
+
+</html>
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertDateTime.xhtml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertEnum.xhtml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertEnum.xhtml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertEnum.xhtml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertEnum.xhtml Thu Oct 20 10:49:18 2011
@@ -1,63 +1,63 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:mcv="http://myfaces.apache.org/commons/validators"
- xmlns:mcc="http://myfaces.apache.org/commons/converters"
- xmlns:mc="http://myfaces.apache.org/commons/components">
-
-<!--
-/*
- * 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.
- */
-//-->
-
-<body>
-<ui:composition template="/META-INF/templates/template.xhtml">
- <ui:define name="body">
- <h:panelGroup id="body">
- <p>This example check if the input provided can be used to retrieve a
- enumeration value using mcc:convertEnum.</p>
- <h:form id="form1">
- <h:messages showDetail="false" showSummary="true" ></h:messages>
- <h:panelGrid columns="3">
-
- <h:outputLabel for="enum"
- value="#{example_messages['validate_enum']}" />
- <h:inputText id="enum" value="#{validateEnum.level}" required="true">
- <mcc:convertEnum
- targetClass="org.apache.myfaces.commons.examples.validate.EducationLevel" />
- </h:inputText>
- <h:message id="enumError" for="enum" styleClass="error" />
-
- <h:panelGroup />
- <h:commandButton id="validateButton"
- value="#{example_messages['button_submit']}"
- action="#{validateEnum.submit}" />
- <h:panelGroup />
-
- </h:panelGrid>
- </h:form>
-
- </h:panelGroup>
- </ui:define>
-</ui:composition>
-</body>
-
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:mcv="http://myfaces.apache.org/commons/validators"
+ xmlns:mcc="http://myfaces.apache.org/commons/converters"
+ xmlns:mc="http://myfaces.apache.org/commons/components">
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<body>
+<ui:composition template="/META-INF/templates/template.xhtml">
+ <ui:define name="body">
+ <h:panelGroup id="body">
+ <p>This example check if the input provided can be used to retrieve a
+ enumeration value using mcc:convertEnum.</p>
+ <h:form id="form1">
+ <h:messages showDetail="false" showSummary="true" ></h:messages>
+ <h:panelGrid columns="3">
+
+ <h:outputLabel for="enum"
+ value="#{example_messages['validate_enum']}" />
+ <h:inputText id="enum" value="#{validateEnum.level}" required="true">
+ <mcc:convertEnum
+ targetClass="org.apache.myfaces.commons.examples.validate.EducationLevel" />
+ </h:inputText>
+ <h:message id="enumError" for="enum" styleClass="error" />
+
+ <h:panelGroup />
+ <h:commandButton id="validateButton"
+ value="#{example_messages['button_submit']}"
+ action="#{validateEnum.submit}" />
+ <h:panelGroup />
+
+ </h:panelGrid>
+ </h:form>
+
+ </h:panelGroup>
+ </ui:define>
+</ui:composition>
+</body>
+
+</html>
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertEnum.xhtml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertNumber.xhtml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertNumber.xhtml?rev=1186730&r1=1186729&r2=1186730&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertNumber.xhtml (original)
+++ myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertNumber.xhtml Thu Oct 20 10:49:18 2011
@@ -1,75 +1,75 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:mcv="http://myfaces.apache.org/commons/validators"
- xmlns:mcc="http://myfaces.apache.org/commons/converters"
- xmlns:mc="http://myfaces.apache.org/commons/components">
-
-<!--
-/*
- * 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.
- */
-//-->
-
-<body>
-<ui:composition template="/META-INF/templates/template.xhtml">
- <ui:define name="body">
- <h:panelGroup id="body">
- <p>This example shows how mcc:convertNumber component works. It works almost
- the same as f:convertNumber, but it has "destType" attribute that define the
- target attribute to the backing bean property (useful when maps are used because
- ValueExpression.getType return null) and it evaluate EL expressions when the value
- is being validated instead when the converter is built. </p>
- <p>Current Locale: <h:outputText value="#{facesContext.viewRoot.locale}"/></p>
- <h:form id="form1">
- <h:messages showDetail="false" showSummary="true" ></h:messages>
- <h:panelGrid columns="3">
-
- <h:outputLabel for="type"
- value="Insert a type" />
- <h:selectOneMenu id="type" immediate="true" value="#{numberBean.type}" >
- <f:selectItem itemLabel="number" itemValue="number"/>
- <f:selectItem itemLabel="currency" itemValue="currency"/>
- <f:selectItem itemLabel="percent" itemValue="percent"/>
- </h:selectOneMenu>
- <h:message for="type" styleClass="error" />
-
- <h:outputLabel for="number1"
- value="Insert a number" />
- <h:inputText id="number1" value="#{numberBean.numberMap['number1']}" required="true">
- <mcc:convertNumber destType="java.lang.Double" type="#{mc:findComponent('form1:type').value}"/>
- </h:inputText>
- <h:message for="number1" styleClass="error" />
-
- <h:panelGroup />
- <h:commandButton id="validateButton"
- value="#{example_messages['button_submit']}"
- action="#{numberBean.submit}" />
- <h:panelGroup />
-
- </h:panelGrid>
- </h:form>
-
- </h:panelGroup>
- </ui:define>
-</ui:composition>
-</body>
-
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:mcv="http://myfaces.apache.org/commons/validators"
+ xmlns:mcc="http://myfaces.apache.org/commons/converters"
+ xmlns:mc="http://myfaces.apache.org/commons/components">
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<body>
+<ui:composition template="/META-INF/templates/template.xhtml">
+ <ui:define name="body">
+ <h:panelGroup id="body">
+ <p>This example shows how mcc:convertNumber component works. It works almost
+ the same as f:convertNumber, but it has "destType" attribute that define the
+ target attribute to the backing bean property (useful when maps are used because
+ ValueExpression.getType return null) and it evaluate EL expressions when the value
+ is being validated instead when the converter is built. </p>
+ <p>Current Locale: <h:outputText value="#{facesContext.viewRoot.locale}"/></p>
+ <h:form id="form1">
+ <h:messages showDetail="false" showSummary="true" ></h:messages>
+ <h:panelGrid columns="3">
+
+ <h:outputLabel for="type"
+ value="Insert a type" />
+ <h:selectOneMenu id="type" immediate="true" value="#{numberBean.type}" >
+ <f:selectItem itemLabel="number" itemValue="number"/>
+ <f:selectItem itemLabel="currency" itemValue="currency"/>
+ <f:selectItem itemLabel="percent" itemValue="percent"/>
+ </h:selectOneMenu>
+ <h:message for="type" styleClass="error" />
+
+ <h:outputLabel for="number1"
+ value="Insert a number" />
+ <h:inputText id="number1" value="#{numberBean.numberMap['number1']}" required="true">
+ <mcc:convertNumber destType="java.lang.Double" type="#{mc:findComponent('form1:type').value}"/>
+ </h:inputText>
+ <h:message for="number1" styleClass="error" />
+
+ <h:panelGroup />
+ <h:commandButton id="validateButton"
+ value="#{example_messages['button_submit']}"
+ action="#{numberBean.submit}" />
+ <h:panelGroup />
+
+ </h:panelGrid>
+ </h:form>
+
+ </h:panelGroup>
+ </ui:define>
+</ui:composition>
+</body>
+
+</html>
Propchange: myfaces/commons/branches/jsf_20/examples/myfaces-commons-facelets-examples/src/main/webapp/convertNumber.xhtml
------------------------------------------------------------------------------
svn:eol-style = native