JBoss Rich Faces SVN: r18194 - root/examples/iteration-demo/trunk/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-07-22 08:45:33 -0400 (Thu, 22 Jul 2010)
New Revision: 18194
Modified:
root/examples/iteration-demo/trunk/src/main/webapp/WEB-INF/web.xml
Log:
https://jira.jboss.org/browse/RF-8968
Modified: root/examples/iteration-demo/trunk/src/main/webapp/WEB-INF/web.xml
===================================================================
--- root/examples/iteration-demo/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-22 12:42:36 UTC (rev 18193)
+++ root/examples/iteration-demo/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-22 12:45:33 UTC (rev 18194)
@@ -39,7 +39,7 @@
<display-name></display-name>
<description></description>
<context-param>
- <param-name>org.richfaces.SKIN</param-name>
+ <param-name>org.richfaces.skin</param-name>
<param-value>#{skinBean.skin}</param-value>
</context-param>
@@ -49,12 +49,12 @@
</context-param>
<context-param>
- <param-name>org.richfaces.CONTROL_SKINNING</param-name>
- <param-value>enable</param-value>
+ <param-name>org.richfaces.enableControlSkinning</param-name>
+ <param-value>true</param-value>
</context-param>
<context-param>
- <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
- <param-value>enable</param-value>
+ <param-name>org.richfaces.enableControlSkinningClasses</param-name>
+ <param-value>true</param-value>
</context-param>
14 years, 5 months
JBoss Rich Faces SVN: r18193 - root/examples/richfaces-showcase/trunk/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-07-22 08:42:36 -0400 (Thu, 22 Jul 2010)
New Revision: 18193
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/WEB-INF/web.xml
Log:
Skin parameters refactoring
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/WEB-INF/web.xml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-22 12:38:56 UTC (rev 18192)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-22 12:42:36 UTC (rev 18193)
@@ -10,7 +10,15 @@
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<context-param>
- <param-name>org.richfaces.SKIN</param-name>
+ <param-name>org.richfaces.enableControlSkinning</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.richfaces.enableControlSkinningClasses</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.richfaces.skin</param-name>
<param-value>#{skinBean.skin}</param-value>
</context-param>
<context-param>
14 years, 5 months
JBoss Rich Faces SVN: r18192 - root/examples/core-demo/trunk/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-07-22 08:38:56 -0400 (Thu, 22 Jul 2010)
New Revision: 18192
Modified:
root/examples/core-demo/trunk/src/main/webapp/WEB-INF/web.xml
Log:
Skin parameters refactoring
Modified: root/examples/core-demo/trunk/src/main/webapp/WEB-INF/web.xml
===================================================================
--- root/examples/core-demo/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-22 12:11:08 UTC (rev 18191)
+++ root/examples/core-demo/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-22 12:38:56 UTC (rev 18192)
@@ -11,17 +11,17 @@
</welcome-file-list>
<context-param>
- <param-name>org.richfaces.SKIN</param-name>
+ <param-name>org.richfaces.skin</param-name>
<param-value>#{skinBean.skin}</param-value>
</context-param>
<context-param>
- <param-name>org.richfaces.ENABLE_CONTROL_SKINNING</param-name>
+ <param-name>org.richfaces.enableControlSkinning</param-name>
<param-value>#{skinBean.enableElementsSkinning}</param-value>
</context-param>
<context-param>
- <param-name>org.richfaces.ENABLE_CONTROL_SKINNING_CLASSES</param-name>
+ <param-name>org.richfaces.enableControlSkinningClasses</param-name>
<param-value>#{skinBean.enableClassesSkinning}</param-value>
</context-param>
14 years, 5 months
JBoss Rich Faces SVN: r18191 - in root/tests/metamer/trunk/application/src/main: java/org/richfaces/tests/metamer/bean and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-07-22 08:11:08 -0400 (Thu, 22 Jul 2010)
New Revision: 18191
Added:
root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JJSFunctionBean.java
root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/TimeBean.java
root/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/A4JJSFunctionBean.properties
root/tests/metamer/trunk/application/src/main/webapp/components/a4jJSFunction/
root/tests/metamer/trunk/application/src/main/webapp/components/a4jJSFunction/list.xhtml
root/tests/metamer/trunk/application/src/main/webapp/components/a4jJSFunction/simple.xhtml
root/tests/metamer/trunk/application/src/main/webapp/resources/css/a4jJSFunction.css
Modified:
root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java
root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandButtonBean.java
root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandLinkBean.java
root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
Log:
* one page for a4j:jsFunction added
* class Attributes works even if property file is not found
* all actions and action listeners are automatically loggen on page
Modified: root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java
===================================================================
--- root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java 2010-07-22 11:55:06 UTC (rev 18190)
+++ root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java 2010-07-22 12:11:08 UTC (rev 18191)
@@ -32,6 +32,7 @@
import java.util.HashSet;
import java.util.List;
import java.util.Map;
+import java.util.MissingResourceException;
import java.util.ResourceBundle;
import java.util.Set;
import java.util.TreeMap;
@@ -47,6 +48,7 @@
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
+import org.richfaces.tests.metamer.bean.RichBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -137,7 +139,13 @@
* Loads help strings from property file.
*/
private void loadHelp() {
- ResourceBundle rb = ResourceBundle.getBundle(beanClass.getName());
+ ResourceBundle rb = null;
+ try {
+ rb = ResourceBundle.getBundle(beanClass.getName());
+ } catch (MissingResourceException mre) {
+ return;
+ }
+
Enumeration<String> keys = rb.getKeys();
String key = null;
Attribute attribute = null;
@@ -159,7 +167,13 @@
* @return map where key is attribute's name and value is list of select items usable to select attribute value
*/
private void loadSelectOptions() {
- ResourceBundle rb = ResourceBundle.getBundle(beanClass.getName());
+ ResourceBundle rb = null;
+ try {
+ rb = ResourceBundle.getBundle(beanClass.getName());
+ } catch (MissingResourceException mre) {
+ return;
+ }
+
Enumeration<String> keys = rb.getKeys();
String key = null;
@@ -352,6 +366,8 @@
return null;
}
+ RichBean.logToPage("action invoked");
+
// if no select options for "action" are defined in property file and it is an EL expression
if (!hasSelectOptions("action") && isStringEL(outcome)) {
method = getExpressionFactory().createMethodExpression(elContext, outcome, String.class, new Class[0]);
@@ -391,6 +407,8 @@
return;
}
+ RichBean.logToPage("action listener invoked");
+
// if no select options for "actionListener" are defined in property file and it is an EL expression
if (!hasSelectOptions("actionListener") && isStringEL(listener)) {
method =
Modified: root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandButtonBean.java
===================================================================
--- root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandButtonBean.java 2010-07-22 11:55:06 UTC (rev 18190)
+++ root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandButtonBean.java 2010-07-22 12:11:08 UTC (rev 18191)
@@ -141,8 +141,6 @@
* @return null since no navigation should be performed
*/
public String first6CharsAction() {
- RichBean.logToPage("action invoked");
-
if (input == null) {
return "";
} else {
@@ -158,8 +156,6 @@
* @return null since no navigation should be performed
*/
public String doubleStringAction() {
- RichBean.logToPage("action invoked");
-
if (input == null) {
input2 = "";
} else {
@@ -175,8 +171,6 @@
* @return null since no navigation should be performed
*/
public String toUpperCaseAction() {
- RichBean.logToPage("action invoked");
-
if (input == null) {
return "";
} else {
@@ -192,8 +186,6 @@
* an event representing the activation of a user interface component (not used)
*/
public void first6CharsActionListener(ActionEvent event) {
- RichBean.logToPage("action listener invoked");
-
if (input == null) {
input3 = "";
} else {
@@ -209,8 +201,6 @@
* an event representing the activation of a user interface component (not used)
*/
public void doubleStringActionListener(ActionEvent event) {
- RichBean.logToPage("action listener invoked");
-
if (input == null) {
input3 = "";
} else {
@@ -225,8 +215,6 @@
* an event representing the activation of a user interface component (not used)
*/
public void toUpperCaseActionListener(ActionEvent event) {
- RichBean.logToPage("action listener invoked");
-
if (input == null) {
input3 = "";
} else {
Modified: root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandLinkBean.java
===================================================================
--- root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandLinkBean.java 2010-07-22 11:55:06 UTC (rev 18190)
+++ root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JCommandLinkBean.java 2010-07-22 12:11:08 UTC (rev 18191)
@@ -134,8 +134,6 @@
* @return null since no navigation should be performed
*/
public String first6CharsAction() {
- RichBean.logToPage("action invoked");
-
if (input == null) {
return "";
} else {
@@ -151,8 +149,6 @@
* @return null since no navigation should be performed
*/
public String doubleStringAction() {
- RichBean.logToPage("action invoked");
-
if (input == null) {
input2 = "";
} else {
@@ -168,8 +164,6 @@
* @return null since no navigation should be performed
*/
public String toUpperCaseAction() {
- RichBean.logToPage("action invoked");
-
if (input == null) {
return "";
} else {
@@ -185,8 +179,6 @@
* an event representing the activation of a user interface component (not used)
*/
public void first6CharsActionListener(ActionEvent event) {
- RichBean.logToPage("action listener invoked");
-
if (input == null) {
input3 = "";
} else {
@@ -202,8 +194,6 @@
* an event representing the activation of a user interface component (not used)
*/
public void doubleStringActionListener(ActionEvent event) {
- RichBean.logToPage("action listener invoked");
-
if (input == null) {
input3 = "";
} else {
@@ -218,8 +208,6 @@
* an event representing the activation of a user interface component (not used)
*/
public void toUpperCaseActionListener(ActionEvent event) {
- RichBean.logToPage("action listener invoked");
-
if (input == null) {
input3 = "";
} else {
Added: root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JJSFunctionBean.java
===================================================================
--- root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JJSFunctionBean.java (rev 0)
+++ root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JJSFunctionBean.java 2010-07-22 12:11:08 UTC (rev 18191)
@@ -0,0 +1,106 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.bean;
+
+import java.io.Serializable;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ViewScoped;
+import javax.faces.event.ActionEvent;
+import org.richfaces.component.UIFunction;
+
+import org.richfaces.tests.metamer.Attributes;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Managed bean for a4j:jsFunction.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "a4jJSFunctionBean")
+@ViewScoped
+public class A4JJSFunctionBean implements Serializable {
+
+ private static final long serialVersionUID = 48333649809L;
+ private static Logger logger;
+ private Attributes attributes;
+ private int year;
+
+ /**
+ * Initializes the managed bean.
+ */
+ @PostConstruct
+ public void init() {
+ logger = LoggerFactory.getLogger(getClass());
+ logger.info("initializing bean " + getClass().getName());
+ year = Integer.parseInt(new SimpleDateFormat("yyyy").format(new Date()));
+
+ // initialize attributes
+ attributes = Attributes.getUIComponentAttributes(UIFunction.class, getClass());
+
+ attributes.setAttribute("execute", "@form");
+ attributes.setAttribute("render", "time1, time2, year");
+ attributes.setAttribute("rendered", true);
+
+ // TODO has to be tested in other way
+ attributes.remove("name");
+ }
+
+ public Attributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(Attributes attributes) {
+ this.attributes = attributes;
+ }
+
+ public int getYear() {
+ return year;
+ }
+
+ public void setYear(int year) {
+ this.year = year;
+ }
+
+ public String increaseYearAction() {
+ year++;
+ return null;
+ }
+
+ public String decreaseYearAction() {
+ year--;
+ return null;
+ }
+
+ public void increaseYearActionListener(ActionEvent event) {
+ year++;
+ }
+
+ public void decreaseYearActionListener(ActionEvent event) {
+ year--;
+ }
+}
Property changes on: root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JJSFunctionBean.java
___________________________________________________________________
Name: svn:keywords
+ Revision
Modified: root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
===================================================================
--- root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-07-22 11:55:06 UTC (rev 18190)
+++ root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-07-22 12:11:08 UTC (rev 18191)
@@ -94,6 +94,7 @@
components.put("a4jAjax", "A4J Ajax");
components.put("a4jCommandLink", "A4J Command Link");
components.put("a4jCommandButton", "A4J Command Button");
+ components.put("a4jJSFunction", "A4J JavaScript Function");
components.put("a4jLog", "A4J Log");
components.put("a4jMediaOutput", "A4J Media Output");
components.put("a4jOutputPanel", "A4J Output Panel");
Added: root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/TimeBean.java
===================================================================
--- root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/TimeBean.java (rev 0)
+++ root/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/TimeBean.java 2010-07-22 12:11:08 UTC (rev 18191)
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *******************************************************************************/
+
+package org.richfaces.tests.metamer.bean;
+
+import java.io.Serializable;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.RequestScoped;
+
+/**
+ * Request-scoped managed bean providing current time.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "timeBean")
+@RequestScoped
+public class TimeBean implements Serializable {
+
+ private Date date;
+ private String formattedTime;
+
+ public String getFormattedTime() {
+ if (formattedTime == null) {
+ formattedTime = new SimpleDateFormat("HH:mm:ss.SSS").format(getDate());
+ }
+
+ return formattedTime;
+ }
+
+ public Date getDate() {
+ if (date == null) {
+ date = new Date();
+ }
+
+ return date;
+ }
+}
Added: root/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/A4JJSFunctionBean.properties
===================================================================
--- root/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/A4JJSFunctionBean.properties (rev 0)
+++ root/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/A4JJSFunctionBean.properties 2010-07-22 12:11:08 UTC (rev 18191)
@@ -0,0 +1,7 @@
+attr.action.increaseYearAction=increaseYearAction
+attr.action.decreaseYearAction=decreaseYearAction
+attr.action.none=
+
+attr.actionListener.increaseYearActionListener=increaseYearActionListener
+attr.actionListener.decreaseYearActionListener=decreaseYearActionListener
+attr.actionListener.none=
Added: root/tests/metamer/trunk/application/src/main/webapp/components/a4jJSFunction/list.xhtml
===================================================================
--- root/tests/metamer/trunk/application/src/main/webapp/components/a4jJSFunction/list.xhtml (rev 0)
+++ root/tests/metamer/trunk/application/src/main/webapp/components/a4jJSFunction/list.xhtml 2010-07-22 12:11:08 UTC (rev 18191)
@@ -0,0 +1,41 @@
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+
+<!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:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:c="http://java.sun.com/jsp/jstl/core">
+
+ <h:head>
+ <title>A4J JavaScript Function</title>
+ <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
+ <h:outputStylesheet library="css" name="list.css" />
+ </h:head>
+
+ <h:body>
+
+ <h:link outcome="simple" value="Simple" styleClass="link" />
+ <div class="description">Simple page that contains <b>a4j:jsFunction</b> and
+ input boxes for all its attributes.</div>
+
+ </h:body>
+</html>
\ No newline at end of file
Added: root/tests/metamer/trunk/application/src/main/webapp/components/a4jJSFunction/simple.xhtml
===================================================================
--- root/tests/metamer/trunk/application/src/main/webapp/components/a4jJSFunction/simple.xhtml (rev 0)
+++ root/tests/metamer/trunk/application/src/main/webapp/components/a4jJSFunction/simple.xhtml 2010-07-22 12:11:08 UTC (rev 18191)
@@ -0,0 +1,84 @@
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+
+<!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:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:ta="http://java.sun.com/jsf/composite/testapp" xmlns:rich="http://richfaces.org/rich">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates" value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css" name="a4jJSFunction.css" />
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <fieldset id="outputFieldset">
+ <legend>standard outputs</legend>
+ <h:panelGrid columns="2">
+ time1: <h:outputText id="time1" value="#{timeBean.formattedTime}"/>
+ time2: <h:outputText id="time2" value="#{timeBean.formattedTime}"/>
+ year: <h:outputText id="year" value="#{a4jJSFunctionBean.year}"/>
+ </h:panelGrid>
+ </fieldset>
+ <br/>
+ <fieldset id="autoOutputFieldset">
+ <legend>ajaxRendered="true"</legend>
+ <a4j:outputPanel id="autoTime" ajaxRendered="true">#{timeBean.formattedTime}</a4j:outputPanel>
+ </fieldset>
+
+ <a4j:jsFunction id="jsFunction"
+ action="#{a4jJSFunctionBean.attributes.action}"
+ actionListener="#{a4jJSFunctionBean.attributes.actionListener}"
+ bypassUpdates="#{a4jJSFunctionBean.attributes['bypassUpdates'].value}"
+ execute="#{a4jJSFunctionBean.attributes['execute'].value}"
+ immediate="#{a4jJSFunctionBean.attributes['immediate'].value}"
+ limitRender="#{a4jJSFunctionBean.attributes['limitRender'].value}"
+ name="metamerFunction"
+ onbeforedomupdate="#{a4jJSFunctionBean.attributes['onbeforedomupdate'].value}"
+ onbegin="#{a4jJSFunctionBean.attributes['onbegin'].value}"
+ oncomplete="#{a4jJSFunctionBean.attributes['oncomplete'].value}"
+ render="#{a4jJSFunctionBean.attributes['render'].value}"
+ rendered="#{a4jJSFunctionBean.attributes['rendered'].value}"
+ status="#{a4jJSFunctionBean.attributes['status'].value}"
+ value="#{a4jJSFunctionBean.attributes['value'].value}"
+ >
+ </a4j:jsFunction>
+
+ <br/>
+ <a href="javascript:metamerFunction()">Call JavaScript function</a>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jJSFunctionBean.attributes}" id="attributes" />
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Added: root/tests/metamer/trunk/application/src/main/webapp/resources/css/a4jJSFunction.css
===================================================================
14 years, 5 months
JBoss Rich Faces SVN: r18190 - root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-07-22 07:55:06 -0400 (Thu, 22 Jul 2010)
New Revision: 18190
Modified:
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.ecss
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.js
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoCompleteBase.js
Log:
https://jira.jboss.org/browse/RF-8875
fetchValue fixed
Modified: root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.ecss
===================================================================
--- root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.ecss 2010-07-22 04:47:58 UTC (rev 18189)
+++ root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.ecss 2010-07-22 11:55:06 UTC (rev 18190)
@@ -1,5 +1,5 @@
.cb_field_width {
- width: 100px;
+ width: 200px;
}
.cb_list_width {
Modified: root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.js
===================================================================
--- root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.js 2010-07-22 04:47:58 UTC (rev 18189)
+++ root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.js 2010-07-22 11:55:06 UTC (rev 18190)
@@ -6,16 +6,7 @@
this.cache = {}
this.cache[this.key] = items || [];
this.values = typeof values != "function" ? values || this.cache[this.key] : values(items);
- updateItemsData(items, this.values);
};
-
- var updateItemsData = function (items, values) {
- if (items.first()["nodeType"]) {
- items.each(function(index){
- this.data("value", values[index]);
- });
- }
- }
var getItems = function (key) {
var newCache = [];
@@ -63,15 +54,19 @@
(function ($, rf) {
+ /*
+ * TODO: add user's event handlers call from options
+ * TODO: add fire events
+ */
+
rf.ui = rf.ui || {};
// Constructor definition
rf.ui.AutoComplete = function(componentId, fieldId, options) {
- this.namespace = "."+rf.Event.createNamespace(this.name, this.componentId);
+ this.namespace = "."+rf.Event.createNamespace(this.name, this.id);
this.options = {};
// call constructor of parent class
- $super.constructor.call(this, componentId+ID.SELECT, fieldId, options);
+ $super.constructor.call(this, componentId, componentId+ID.SELECT, fieldId, options);
this.attachToDom(componentId);
- this.componentId = componentId;
this.options = $.extend(this.options, defaultOptions, options);
this.inputValue = this.getInputValue();
this.index = -1;
@@ -100,8 +95,6 @@
ITEMS:'Items'
};
- var DATA_TAG = "value";
-
var REGEXP_TRIM = /^[\n\s]*(.*)[\n\s]*$/;
var getData = function (nodeList) {
@@ -113,7 +106,7 @@
}
var bindEventHandlers = function () {
- rf.Event.bind(rf.getDomElement(this.componentId+ID.ITEMS).parentNode, "click"+this.namespace+" mouseover"+this.namespace, onMouseAction, this);
+ rf.Event.bind(rf.getDomElement(this.id+ID.ITEMS).parentNode, "click"+this.namespace+" mouseover"+this.namespace, onMouseAction, this);
};
var onMouseAction = function(event) {
@@ -135,8 +128,13 @@
};
var updateItemsList = function (value, fetchValues) {
- this.items = $(rf.getDomElement(this.componentId+ID.ITEMS)).find(".rf-ac-i");
- this.cache = new rf.utils.Cache(value, this.items, fetchValues || getData);
+ this.items = $(rf.getDomElement(this.id+ID.ITEMS)).find(".rf-ac-i");
+ if (this.items.length>0) {
+ var parent = this.items.first().parent();
+ parent.data(fetchValues);
+
+ this.cache = new rf.utils.Cache(value, this.items, fetchValues || getData);
+ }
};
var scrollToSelectedItem = function() {
@@ -168,7 +166,7 @@
var _this = this;
var ajaxSuccess = function (event) {
- updateItemsList.call(_this, _this.inputValue, event.componentData);
+ updateItemsList.call(_this, _this.inputValue, event.componentData && event.componentData[_this.id]);
if (_this.options.selectFirst) {
_this.selectItem(0);
}
@@ -181,9 +179,9 @@
this.isFirstAjax = false;
//caution: JSF submits inputs with empty names causing "WARNING: Parameters: Invalid chunk ignored." in Tomcat log
var params = {};
- params[this.componentId + ".ajax"] = "1";
+ params[this.id + ".ajax"] = "1";
- rf.ajax(this.componentId, event, {parameters: params, error: ajaxError, complete:ajaxSuccess});
+ rf.ajax(this.id, event, {parameters: params, error: ajaxError, complete:ajaxSuccess});
};
/*
@@ -235,7 +233,7 @@
}
// TODO: ajax call here if needed
- if (( value.toLowerCase().indexOf(this.cache.key.toLowerCase())!=0 || this.inputValue.length==0) &&
+ if ((!this.cache || value.toLowerCase().indexOf(this.cache.key.toLowerCase())!=0 || this.inputValue.length==0) &&
value.length>=this.options.minChars) {
this.inputValue = value;
this.options.ajaxMode && callAjax.call(this, event);
@@ -245,7 +243,7 @@
var newItems = this.cache.getItems(value);
this.items = $(newItems);
//TODO: works only with simple markup, not with <tr>
- $(rf.getDomElement(this.componentId+ID.ITEMS)).empty().append(newItems);
+ $(rf.getDomElement(this.id+ID.ITEMS)).empty().append(newItems);
this.index = -1;
this.inputValue = value;
if (this.options.selectFirst) {
@@ -256,7 +254,7 @@
var getSelectedItemValue = function () {
if ( this.index>=0) {
var element = this.items.eq(this.index);
- return element.data(DATA_TAG) || getData(element)[0];
+ return element.parent().data()[this.index] || getData(element)[0];
}
return undefined;
};
@@ -313,7 +311,7 @@
//TODO: add all unbind
this.items = null;
this.cache = null;
- rf.Event.unbind(rf.getDomElement(this.componentId+ID.ITEMS).parentNode, this.namespace);
+ rf.Event.unbind(rf.getDomElement(this.id+ID.ITEMS).parentNode, this.namespace);
$super.destroy.call(this);
}
};
Modified: root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoCompleteBase.js
===================================================================
--- root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoCompleteBase.js 2010-07-22 04:47:58 UTC (rev 18189)
+++ root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoCompleteBase.js 2010-07-22 11:55:06 UTC (rev 18190)
@@ -40,9 +40,9 @@
rf.ui = rf.ui || {};
// Constructor definition
- rf.ui.AutoCompleteBase = function(selectId, fieldId, options) {
+ rf.ui.AutoCompleteBase = function(componentId, selectId, fieldId, options) {
// call constructor of parent class
- $super.constructor.call(this, selectId);
+ $super.constructor.call(this, componentId);
this.selectId = selectId;
this.fieldId = fieldId;
this.options = $.extend({}, defaultOptions, options);
14 years, 5 months
JBoss Rich Faces SVN: r18189 - root/docs/trunk/Component_Reference/src/main/docbook/en-US.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2010-07-22 00:47:58 -0400 (Thu, 22 Jul 2010)
New Revision: 18189
Modified:
root/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Resources.xml
Log:
Fixed a4j:keepAlive syntax (RF-8656)
Modified: root/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Resources.xml
===================================================================
--- root/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Resources.xml 2010-07-22 00:34:38 UTC (rev 18188)
+++ root/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Resources.xml 2010-07-22 04:47:58 UTC (rev 18189)
@@ -206,16 +206,16 @@
The <sgmltag><a4j:keepAlive></sgmltag> component allows the state of a managed bean to be retained between Ajax requests.
</para>
<para>
- Managed beans can be declared with the <literal>request</literal> scope in the <filename>faces-config.xml</filename> configuration file, using the <sgmltag><managed-bean-scope></sgmltag> tag. Any references to the bean instance after the request has ended will cause the server to throw an illegal argument exception. The <sgmltag><a4j:keepAlive></sgmltag> component avoids this be maintaining the state of the whole bean object for subsequent requests.
+ Managed beans can be declared with the <literal>request</literal> scope in the <filename>faces-config.xml</filename> configuration file, using the <sgmltag><managed-bean-scope></sgmltag> tag. Any references to the bean instance after the request has ended will cause the server to throw an illegal argument exception (<exceptionname>IllegalArgumentException</exceptionname>). The <sgmltag><a4j:keepAlive></sgmltag> component avoids this be maintaining the state of the whole bean object for subsequent requests.
</para>
<para>
- The <varname>beanName</varname> attribute uses JSF Expression Language (<acronym>EL</acronym>) to define the request scope bean name to keep alive. The expression must resolve to a managed bean instance. The <varname>ajaxOnly</varname> attribute determines whether or not the value of the bean should be available during non-Ajaxx requests; if <code>ajaxOnly="true"</code>, the request-scope bean keeps its value during Ajax requests, but any non-Ajax requests will re-create the bean as a regular request-scope bean.
+ The <varname>beanName</varname> attribute defines the request-scope managed bean name to keep alive. The <varname>ajaxOnly</varname> attribute determines whether or not the value of the bean should be available during non-Ajaxx requests; if <code>ajaxOnly="true"</code>, the request-scope bean keeps its value during Ajax requests, but any non-Ajax requests will re-create the bean as a regular request-scope bean.
</para>
<example id="exam-Component_Reference-a4jkeepAlive-a4jkeepAlive_example">
<title><sgmltag><a4j:keepAlive></sgmltag> example</title>
<programlisting language="XML" role="XML">
-<a4j:keepAlive beanName="#{myClass.testBean}" />
+<a4j:keepAlive beanName="testBean" />
</programlisting>
</example>
</section>
14 years, 5 months
JBoss Rich Faces SVN: r18188 - in root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk: xmlconfig and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2010-07-21 20:34:38 -0400 (Wed, 21 Jul 2010)
New Revision: 18188
Modified:
root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/ComponentLibrary.java
root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/ConfigExtension.java
root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/TagModel.java
root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/xmlconfig/FacesConfigParser.java
root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/xmlconfig/model/ComponentBean.java
Log:
https://jira.jboss.org/browse/RF-8958
Modified: root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/ComponentLibrary.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/ComponentLibrary.java 2010-07-21 19:48:06 UTC (rev 18187)
+++ root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/ComponentLibrary.java 2010-07-22 00:34:38 UTC (rev 18188)
@@ -87,7 +87,7 @@
private final ModelCollection<BehaviorModel> behaviors = ModelSet.<BehaviorModel> create();
- private ConfigExtension extension;
+ private ConfigExtension extension = new ConfigExtension();
private String prefix;
Modified: root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/ConfigExtension.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/ConfigExtension.java 2010-07-21 19:48:06 UTC (rev 18187)
+++ root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/ConfigExtension.java 2010-07-22 00:34:38 UTC (rev 18188)
@@ -30,13 +30,16 @@
import org.w3c.dom.Element;
+import com.google.common.collect.Lists;
+
/**
* <p class="changed_added_4_0">That class represents all faces-config "extension" fields.</p>
*
* @author asmirnov(a)exadel.com
*/
public class ConfigExtension {
- private List<Element> extensions;
+
+ private List<Element> extensions = Lists.newArrayList();
/**
* <p class="changed_added_4_0"></p>
Modified: root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/TagModel.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/TagModel.java 2010-07-21 19:48:06 UTC (rev 18187)
+++ root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/model/TagModel.java 2010-07-22 00:34:38 UTC (rev 18188)
@@ -27,10 +27,13 @@
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.richfaces.cdk.annotations.TagType;
import org.richfaces.cdk.util.ComparatorUtils;
+import org.richfaces.cdk.xmlconfig.model.ClassAdapter;
/**
* <p class="changed_added_4_0">That bean represents VDL tag</p>
@@ -55,7 +58,7 @@
*/
private String name;
-
+ @XmlElement(name = "tag-name", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE)
public String getName() {
return name;
}
@@ -73,6 +76,7 @@
* <p class="changed_added_4_0"></p>
* @return the type
*/
+ @XmlElement(name = "tag-type", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE)
public TagType getType() {
return this.type;
}
@@ -90,6 +94,8 @@
* @return the targetClass
*/
@Merge
+ @XmlElement(name = "handler-class", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE)
+ @XmlJavaTypeAdapter(ClassAdapter.class)
public ClassName getTargetClass() {
return this.targetClass;
}
@@ -109,6 +115,8 @@
* @return the baseClass
*/
@Merge
+ @XmlElement(name = "base-class", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE)
+ @XmlJavaTypeAdapter(ClassAdapter.class)
public ClassName getBaseClass() {
return this.baseClass;
}
Modified: root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/xmlconfig/FacesConfigParser.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/xmlconfig/FacesConfigParser.java 2010-07-21 19:48:06 UTC (rev 18187)
+++ root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/xmlconfig/FacesConfigParser.java 2010-07-22 00:34:38 UTC (rev 18188)
@@ -31,6 +31,7 @@
import org.richfaces.cdk.Source;
import org.richfaces.cdk.Sources;
import org.richfaces.cdk.model.ComponentLibrary;
+import org.richfaces.cdk.util.JavaUtils;
import org.richfaces.cdk.xmlconfig.model.FacesConfigAdapter;
import org.richfaces.cdk.xmlconfig.model.FacesConfigBean;
@@ -52,11 +53,11 @@
@Inject
private ComponentLibrary library;
-
- @Inject @Source(Sources.FACES_CONFIGS)
+
+ @Inject
+ @Source(Sources.FACES_CONFIGS)
private FileManager configFiles;
-
/*
* (non-Javadoc)
*
@@ -71,12 +72,24 @@
library.getComponents().addAll(facesConfig.getComponents());
library.getRenderKits().addAll(facesConfig.getRenderKits());
library.getConverters().addAll(facesConfig.getConverters());
- // TODO - merge changes into library.
- // library.getRenderers().addAll(unmarshal.getRenderers());
- // library.getValidators().addAll(unmarshal.getValidators);
- // library.getConverters().addAll(unmarshal.getConverters());
- // library.getBehaviors().addAll(unmarshal.getBehaviors());
- // library.setExtensions(unmarshal.getExtensions());
+ library.getValidators().addAll(facesConfig.getValidators());
+ library.getBehaviors().addAll(facesConfig.getBehaviors());
+ library.getFunctions().addAll(facesConfig.getFunctions());
+ library.getEvents().addAll(facesConfig.getEvents());
+ if (null != unmarshal.getMetadataComplete()) {
+ library.setMetadataComplete(unmarshal.getMetadataComplete());
+ }
+ library.getExtension().getExtensions().addAll(facesConfig.getExtension().getExtensions());
+ if (null != facesConfig.getTaglib()) {
+ if (null == library.getTaglib()) {
+ library.setTaglib(facesConfig.getTaglib());
+ } else {
+ JavaUtils.copyProperties(facesConfig.getTaglib(), library.getTaglib());
+ }
+ }
+ if (null != facesConfig.getPrefix()) {
+ library.setPrefix(facesConfig.getPrefix());
+ }
}
}
}
Modified: root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/xmlconfig/model/ComponentBean.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/xmlconfig/model/ComponentBean.java 2010-07-21 19:48:06 UTC (rev 18187)
+++ root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/xmlconfig/model/ComponentBean.java 2010-07-22 00:34:38 UTC (rev 18188)
@@ -145,7 +145,7 @@
}
public static class ComponentExtension extends ExtensionBeanBase {
- private String rendererType;
+ private FacesId rendererType;
private List<EventModel> events = Lists.newArrayList();
private List<TagModel> tags = Lists.newArrayList();
private FacesId family;
@@ -174,8 +174,8 @@
*
* @param rendererType the rendererTypes to set
*/
- @XmlElement(name = "renderer-id", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE)
- public void setRendererType(String rendererType) {
+ @XmlElement(name = "renderer-type", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE)
+ public void setRendererType(FacesId rendererType) {
this.rendererType = rendererType;
}
@@ -184,7 +184,7 @@
*
* @return the rendererTypes
*/
- public String getRendererType() {
+ public FacesId getRendererType() {
return rendererType;
}
14 years, 5 months
JBoss Rich Faces SVN: r18187 - trunk.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2010-07-21 15:48:06 -0400 (Wed, 21 Jul 2010)
New Revision: 18187
Added:
trunk/pom.xml
Modified:
trunk/
Log:
create links to the current code base
Property changes on: trunk
___________________________________________________________________
Name: svn:externals
+ ^/root/commons/trunk commons
^/root/cdk/trunk cdk
^/root/build/bom/trunk bom
^/root/core/trunk core
^/root/ui/core/trunk ui/core
^/root/ui/iteration/trunk ui/iteration
^/root/ui/misc/trunk ui/misc
^/root/ui/output/trunk ui/output
^/root/ui/dist/trunk ui/dist
^/root/archetypes/richfaces-archetype-simpleapp/trunk archetypes/richfaces-archetype-simpleapp
^/root/examples/core-demo/trunk examples/core-demo
^/root/examples/richfaces-showcase/trunk examples/richfaces-showcase
^/root/docs/trunk docs
^/root/dist/trunk dist
Copied: trunk/pom.xml (from rev 18179, tags/4.0.0.20100715-M1/pom.xml)
===================================================================
--- trunk/pom.xml (rev 0)
+++ trunk/pom.xml 2010-07-21 19:48:06 UTC (rev 18187)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<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>
+ <groupId>org.richfaces</groupId>
+ <artifactId>root</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>Richfaces Aggregator</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <inherited>false</inherited>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <modules>
+ <module>bom</module>
+ <module>commons</module>
+ <module>cdk</module>
+ <module>core</module>
+
+ <!-- richfaces ui -->
+ <module>ui/core</module>
+ <module>ui/iteration</module>
+ <module>ui/misc</module>
+ <module>ui/output</module>
+ <module>ui/dist</module>
+
+ <!-- Remaining -->
+ <module>archetypes/richfaces-archetype-simpleapp</module>
+ <module>examples/core-demo</module>
+ <module>examples/richfaces-showcase</module>
+ <module>docs</module>
+ </modules>
+
+ <profiles>
+ <profile>
+ <id>release</id>
+ <modules>
+ <module>dist</module>
+ </modules>
+ </profile>
+ </profiles>
+</project>
14 years, 5 months
JBoss Rich Faces SVN: r18186 - root/examples-sandbox/trunk/components.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2010-07-21 12:53:45 -0400 (Wed, 21 Jul 2010)
New Revision: 18186
Modified:
root/examples-sandbox/trunk/components/pom.xml
Log:
add inputnumberslider-demo project
Modified: root/examples-sandbox/trunk/components/pom.xml
===================================================================
--- root/examples-sandbox/trunk/components/pom.xml 2010-07-21 16:51:58 UTC (rev 18185)
+++ root/examples-sandbox/trunk/components/pom.xml 2010-07-21 16:53:45 UTC (rev 18186)
@@ -17,6 +17,7 @@
<modules>
<module>combobox-demo</module>
+ <module>inputnumberslider-demo</module>
</modules>
<dependencies>
@@ -27,4 +28,4 @@
<scope>provided</scope>
</dependency>
</dependencies>
-</project>
\ No newline at end of file
+</project>
14 years, 5 months
JBoss Rich Faces SVN: r18185 - in root/examples-sandbox/trunk/components/inputnumberslider-demo: src and 7 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2010-07-21 12:51:58 -0400 (Wed, 21 Jul 2010)
New Revision: 18185
Added:
root/examples-sandbox/trunk/components/inputnumberslider-demo/pom.xml
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/java/
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/java/org/
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/java/org/richfaces/
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/java/org/richfaces/demo/
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/java/org/richfaces/demo/Bean.java
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/WEB-INF/
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/WEB-INF/web.xml
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/index.jsp
root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/index.xhtml
Modified:
root/examples-sandbox/trunk/components/inputnumberslider-demo/
Log:
add inputnumberslider-demo project
Property changes on: root/examples-sandbox/trunk/components/inputnumberslider-demo
___________________________________________________________________
Name: svn:ignore
+ .settings
target
.classpath
.project
Added: root/examples-sandbox/trunk/components/inputnumberslider-demo/pom.xml
===================================================================
--- root/examples-sandbox/trunk/components/inputnumberslider-demo/pom.xml (rev 0)
+++ root/examples-sandbox/trunk/components/inputnumberslider-demo/pom.xml 2010-07-21 16:51:58 UTC (rev 18185)
@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright ${year}, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<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.richfaces</groupId>
+ <artifactId>richfaces-parent</artifactId>
+ <version>7</version>
+ </parent>
+
+ <groupId>org.richfaces.examples-sandbox</groupId>
+ <artifactId>inputnumberslider-demo</artifactId>
+ <packaging>war</packaging>
+ <version>4.0.0-SNAPSHOT</version>
+ <name>RichFaces Examples: InputNumberSlider</name>
+
+ <properties>
+ <snapshotRepository>dav:https://repository.jboss.org/nexus/content/repositories/snapshots/</snapshotRepository>
+ <jetty.port>8080</jetty.port>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ <richfaces.checkstyle.version>1</richfaces.checkstyle.version>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-bom</artifactId>
+ <version>${project.version}</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.ui.inputs-sandbox</groupId>
+ <artifactId>inputnumberslider</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- API implementation for runtime -->
+ <dependency>
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-impl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.14</version>
+ </dependency>
+
+ <!-- JSF -->
+ <dependency>
+ <groupId>${jsf2.api.groupid}</groupId>
+ <artifactId>${jsf2.api.artifactid}</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>${jsf2.impl.groupid}</groupId>
+ <artifactId>${jsf2.impl.artifactid}</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet.jsp</groupId>
+ <artifactId>jsp-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <!-- Configure checkstyle report for this module -->
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces</groupId>
+ <artifactId>richfaces-build-checkstyle
+ </artifactId>
+ <version>${richfaces.checkstyle.version}
+ </version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0-beta-1</version>
+ <configuration>
+ <fail>false</fail>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.18</version>
+ <configuration>
+ <scanIntervalSeconds>10</scanIntervalSeconds>
+ <connectors>
+ <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+ <port>${jetty.port}</port>
+ <maxIdleTime>60000</maxIdleTime>
+ </connector>
+ </connectors>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/java/org/richfaces/demo/Bean.java
===================================================================
--- root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/java/org/richfaces/demo/Bean.java (rev 0)
+++ root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/java/org/richfaces/demo/Bean.java 2010-07-21 16:51:58 UTC (rev 18185)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.richfaces.demo;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+
+@ManagedBean(name="bean")
+@SessionScoped
+public class Bean {
+
+}
Added: root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/WEB-INF/web.xml 2010-07-21 16:51:58 UTC (rev 18185)
@@ -0,0 +1,39 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright ${year}, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<web-app version="2.5"
+ 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-app_2_5.xsd">
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+</web-app>
Added: root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/index.jsp
===================================================================
--- root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/index.jsp (rev 0)
+++ root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/index.jsp 2010-07-21 16:51:58 UTC (rev 18185)
@@ -0,0 +1,29 @@
+<!--
+JBoss, Home of Professional Open Source
+Copyright ${year}, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<html>
+ <body>
+ <jsp:forward page="index.jsf" />
+ </body>
+</html>
Property changes on: root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/index.jsp
___________________________________________________________________
Name: svn:executable
+ *
Added: root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/index.xhtml
===================================================================
--- root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/index.xhtml (rev 0)
+++ root/examples-sandbox/trunk/components/inputnumberslider-demo/src/main/webapp/index.xhtml 2010-07-21 16:51:58 UTC (rev 18185)
@@ -0,0 +1,40 @@
+<?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:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:ins="http://richfaces.org/inputnumberslider">
+<!--
+JBoss, Home of Professional Open Source
+Copyright ${year}, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+ <h:head>
+ <title>Richfaces InputNumberSlider Demo</title>
+ </h:head>
+ <h:body>
+ <h:form id="form">
+ <ins:inputnumberslider />
+ </h:form>
+ </h:body>
+</html>
14 years, 5 months