JBoss Rich Faces SVN: r7438 - in trunk/framework/api/src/main/java/org: ajax4jsf/application and 18 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-03-30 21:09:53 -0400 (Sun, 30 Mar 2008)
New Revision: 7438
Added:
trunk/framework/api/src/main/java/org/ajax4jsf/application/package-info.java
trunk/framework/api/src/main/java/org/ajax4jsf/cache/package-info.java
trunk/framework/api/src/main/java/org/ajax4jsf/component/package-info.java
trunk/framework/api/src/main/java/org/ajax4jsf/context/package-info.java
trunk/framework/api/src/main/java/org/ajax4jsf/event/package-info.java
trunk/framework/api/src/main/java/org/ajax4jsf/javascript/package-info.java
trunk/framework/api/src/main/java/org/ajax4jsf/model/package-info.java
trunk/framework/api/src/main/java/org/ajax4jsf/package-info.java
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/package-info.java
trunk/framework/api/src/main/java/org/ajax4jsf/resource/package-info.java
trunk/framework/api/src/main/java/org/ajax4jsf/resource/util/package-info.java
trunk/framework/api/src/main/java/org/richfaces/component/package-info.java
trunk/framework/api/src/main/java/org/richfaces/component/xml/package-info.java
trunk/framework/api/src/main/java/org/richfaces/event/package-info.java
trunk/framework/api/src/main/java/org/richfaces/event/scroll/package-info.java
trunk/framework/api/src/main/java/org/richfaces/event/sort/package-info.java
trunk/framework/api/src/main/java/org/richfaces/model/filter/package-info.java
trunk/framework/api/src/main/java/org/richfaces/model/package-info.java
trunk/framework/api/src/main/java/org/richfaces/model/selection/package-info.java
trunk/framework/api/src/main/java/org/richfaces/skin/package-info.java
Log:
package-info.java for API committed
Added: trunk/framework/api/src/main/java/org/ajax4jsf/application/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/application/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/application/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Classes required to implement application logic
+ */
+package org.ajax4jsf.application;
Added: trunk/framework/api/src/main/java/org/ajax4jsf/cache/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/cache/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/cache/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Cache APIs
+ */
+package org.ajax4jsf.cache;
Added: trunk/framework/api/src/main/java/org/ajax4jsf/component/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/component/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/component/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Base APIs of AJAX-enabled components
+ */
+package org.ajax4jsf.component;
Added: trunk/framework/api/src/main/java/org/ajax4jsf/context/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/context/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/context/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Classes and interfaces that defines contextual request information
+ */
+package org.ajax4jsf.context;
Added: trunk/framework/api/src/main/java/org/ajax4jsf/event/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/event/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/event/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Interfaces and classes of events and listeners of basic AJAX components
+ */
+package org.ajax4jsf.event;
Added: trunk/framework/api/src/main/java/org/ajax4jsf/javascript/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/javascript/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/javascript/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Classes and interfaces that ease creation of client-side Javascript code
+ */
+package org.ajax4jsf.javascript;
Added: trunk/framework/api/src/main/java/org/ajax4jsf/model/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/model/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/model/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Various model objects APIs. Contains a set of extended data models classes
+ */
+package org.ajax4jsf.model;
Added: trunk/framework/api/src/main/java/org/ajax4jsf/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Base package for AJAX classes
+ */
+package org.ajax4jsf;
Added: trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Classes and interface participating in component rendering process
+ */
+package org.ajax4jsf.renderkit;
Added: trunk/framework/api/src/main/java/org/ajax4jsf/resource/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/resource/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/resource/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Resources-handling functionality
+ */
+package org.ajax4jsf.resource;
Added: trunk/framework/api/src/main/java/org/ajax4jsf/resource/util/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/resource/util/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/resource/util/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Helper classes for various purposes of resources handling
+ */
+package org.ajax4jsf.resource.util;
Added: trunk/framework/api/src/main/java/org/richfaces/component/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/component/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/component/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Base RichFaces components interfaces and classes
+ */
+package org.richfaces.component;
Added: trunk/framework/api/src/main/java/org/richfaces/component/xml/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/component/xml/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/component/xml/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Classes that represent XML node data
+ */
+package org.richfaces.component.xml;
Added: trunk/framework/api/src/main/java/org/richfaces/event/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/event/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Interfaces and classes of events and listeners of RichFaces components
+ */
+package org.richfaces.event;
Added: trunk/framework/api/src/main/java/org/richfaces/event/scroll/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/scroll/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/event/scroll/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Interfaces and classes of events and listeners of scrollable RichFaces components
+ */
+package org.richfaces.event.scroll;
Added: trunk/framework/api/src/main/java/org/richfaces/event/sort/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/sort/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/event/sort/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Interfaces and classes of events and listeners of sortable RichFaces components
+ */
+package org.richfaces.event.sort;
Added: trunk/framework/api/src/main/java/org/richfaces/model/filter/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/filter/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/model/filter/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Model interfaces and classes of filterable RichFaces components
+ */
+package org.richfaces.model.filter;
Added: trunk/framework/api/src/main/java/org/richfaces/model/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/model/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Model APIs of RichFaces components
+ */
+package org.richfaces.model;
Added: trunk/framework/api/src/main/java/org/richfaces/model/selection/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/selection/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/model/selection/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Interfaces and classes representing selection in RichFaces components
+ */
+package org.richfaces.model.selection;
Added: trunk/framework/api/src/main/java/org/richfaces/skin/package-info.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/skin/package-info.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/skin/package-info.java 2008-03-31 01:09:53 UTC (rev 7438)
@@ -0,0 +1,4 @@
+/**
+ * Skin functionality APIs
+ */
+package org.richfaces.skin;
16 years, 9 months
JBoss Rich Faces SVN: r7437 - in trunk/ui: core/src/main/java/org/ajax4jsf/ajax and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-03-30 15:12:42 -0400 (Sun, 30 Mar 2008)
New Revision: 7437
Added:
trunk/ui/columns/src/main/java/org/richfaces/iterator/package-info.java
trunk/ui/core/src/main/java/org/ajax4jsf/ajax/package-info.java
trunk/ui/functions/src/main/java/org/richfaces/function/package-info.java
trunk/ui/pickList/src/main/java/org/richfaces/utils/
trunk/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java
Removed:
trunk/ui/pickList/src/main/java/org/richfaces/picklist/
Modified:
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
Log:
package-info.java added, new utility classes got their packages refactored
Added: trunk/ui/columns/src/main/java/org/richfaces/iterator/package-info.java
===================================================================
--- trunk/ui/columns/src/main/java/org/richfaces/iterator/package-info.java (rev 0)
+++ trunk/ui/columns/src/main/java/org/richfaces/iterator/package-info.java 2008-03-30 19:12:42 UTC (rev 7437)
@@ -0,0 +1,4 @@
+/**
+ * Implementation of iterators for various iterative types
+ */
+package org.richfaces.iterator;
Added: trunk/ui/core/src/main/java/org/ajax4jsf/ajax/package-info.java
===================================================================
--- trunk/ui/core/src/main/java/org/ajax4jsf/ajax/package-info.java (rev 0)
+++ trunk/ui/core/src/main/java/org/ajax4jsf/ajax/package-info.java 2008-03-30 19:12:42 UTC (rev 7437)
@@ -0,0 +1,4 @@
+/**
+ * AJAX utility classes
+ */
+package org.ajax4jsf.ajax;
Added: trunk/ui/functions/src/main/java/org/richfaces/function/package-info.java
===================================================================
--- trunk/ui/functions/src/main/java/org/richfaces/function/package-info.java (rev 0)
+++ trunk/ui/functions/src/main/java/org/richfaces/function/package-info.java 2008-03-30 19:12:42 UTC (rev 7437)
@@ -0,0 +1,4 @@
+/**
+ * Implementation of RichFaces functions library
+ */
+package org.richfaces.function;
Modified: trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
--- trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-03-30 18:57:00 UTC (rev 7436)
+++ trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-03-30 19:12:42 UTC (rev 7437)
@@ -33,7 +33,7 @@
import org.apache.commons.collections.CollectionUtils;
import org.richfaces.component.UIPickList;
import org.richfaces.component.util.HtmlUtil;
-import org.richfaces.picklist.util.PickListUtils;
+import org.richfaces.utils.PickListUtils;
public class PickListRenderer extends HeaderResourcesRendererBase {
Added: trunk/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java
===================================================================
--- trunk/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java (rev 0)
+++ trunk/ui/pickList/src/main/java/org/richfaces/utils/PickListUtils.java 2008-03-30 19:12:42 UTC (rev 7437)
@@ -0,0 +1,160 @@
+package org.richfaces.utils;
+
+import java.lang.reflect.Array;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.el.ValueExpression;
+import javax.faces.FacesException;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UISelectMany;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+import javax.faces.model.SelectItem;
+
+import org.ajax4jsf.util.SelectUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+public class PickListUtils {
+
+ private static final Log log = LogFactory.getLog(PickListUtils.class);
+
+ public static Converter findUISelectManyConverter(FacesContext context, UISelectMany component) {
+
+ Converter converter = component.getConverter();
+ if (converter != null) {
+ return converter;
+ }
+
+ ValueExpression ve = component.getValueExpression("value");
+ if (ve == null) {
+ return null;
+ }
+
+ Class valueType = ve.getType(context.getELContext());
+ if (valueType == null) {
+ return null;
+ }
+
+ if (List.class.isAssignableFrom(valueType)) {
+ List selectItems = SelectUtils.getSelectItems(context, component);
+ if (selectItems != null && selectItems.size() > 0) {
+ SelectItem selectItem = (SelectItem) selectItems.get(0);
+ Class listComponentType = selectItem.getValue().getClass();
+ if (!(String.class.equals(listComponentType))) {
+ try {
+ return context.getApplication().createConverter(listComponentType);
+ } catch (FacesException e) {
+ log.error("No Converter for type " + listComponentType.getName() + " found", e);
+ return null;
+ }
+ }
+ }
+ return null;
+ }
+
+ if (!valueType.isArray()) {
+ throw new IllegalArgumentException("ValueBinding for UISelectMany : must be of type List or Array");
+ }
+
+ Class arrayComponentType = valueType.getComponentType();
+ if (String.class.equals(arrayComponentType))
+ return null;
+ if (Object.class.equals(arrayComponentType))
+ return null;
+
+ try {
+ return context.getApplication().createConverter(arrayComponentType);
+ } catch (FacesException e) {
+ log.error("No Converter for type " + arrayComponentType.getName() + " found", e);
+ return null;
+ }
+ }
+
+ public static Converter findUISelectManyConverterFailsafe(FacesContext facesContext, UIComponent uiComponent) {
+ Converter converter;
+ try {
+ converter = findUISelectManyConverter(facesContext, (UISelectMany) uiComponent);
+ } catch (FacesException e) {
+ log.error("Error finding Converter for component with id " + uiComponent.getClientId(facesContext), e);
+ converter = null;
+ }
+ return converter;
+ }
+
+ public static List getValuesList(UIComponent uiComponent, FacesContext facesContext, Converter converter) {
+ List lookupList = null;
+ if (uiComponent instanceof UISelectMany) {
+ UISelectMany uiSelectMany = (UISelectMany) uiComponent;
+ lookupList = getSelectValuesList(facesContext, uiComponent, converter, uiSelectMany);
+ }
+ return lookupList;
+ }
+
+ public static List getSelectValuesList(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany) {
+ Object selectedValues = uiSelectMany.getValue();
+ return internalSelectValuesList(context, component, converter, uiSelectMany, selectedValues);
+ }
+
+ private static List internalSelectValuesList(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany, Object values) {
+ List valuesList = new ArrayList();
+
+ if (values == null || "".equals(values)) {
+
+ return valuesList;
+
+ } else if (values instanceof Object[]) {
+
+ Object[] ar = (Object[]) values;
+ if (ar.length == 0) {
+ return valuesList;
+ }
+ valuesList = new ArrayList();
+ for (int i = 0; i < ar.length; i++) {
+ valuesList.add(getConvertedStringValue(context, component, converter, ar[i]));
+ }
+ return valuesList;
+
+ } else if (values.getClass().isArray()) {
+
+ int len = Array.getLength(values);
+ valuesList = new ArrayList();
+ for (int i = 0; i < len; i++) {
+ valuesList.add(getConvertedStringValue(context, component, converter, Array.get(values, i)));
+ }
+ return valuesList;
+
+ } else if (values instanceof List) {
+
+ List lst = (List) values;
+ if (lst.size() == 0) {
+ return lst;
+ } else {
+ valuesList = new ArrayList();
+ for (Iterator i = lst.iterator(); i.hasNext();) {
+ valuesList.add(getConvertedStringValue(context, component, converter, i.next()));
+ }
+ return valuesList;
+ }
+
+ } else {
+ throw new IllegalArgumentException("Value of UISelectMany component : is not of type Array or List");
+ }
+ }
+
+ public static String getConvertedStringValue(FacesContext context, UIComponent component, Converter converter, Object value) {
+ if (converter == null) {
+ if (value == null) {
+ return "";
+ } else if (value instanceof String) {
+ return (String) value;
+ } else {
+ throw new IllegalArgumentException("Value is not String (class=" + value.getClass().getName() + ", value=" + value + ") and component "
+ + component.getClientId(context) + " does not have a Converter");
+ }
+ }
+ return converter.getAsString(context, component, value);
+ }
+}
16 years, 9 months
JBoss Rich Faces SVN: r7436 - trunk/ui/progressBAR/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-03-30 14:57:00 -0400 (Sun, 30 Mar 2008)
New Revision: 7436
Modified:
trunk/ui/progressBAR/src/main/config/component/progressBar.xml
Log:
http://jira.jboss.com/jira/browse/RF-2291 dir/lang attributes removed
Modified: trunk/ui/progressBAR/src/main/config/component/progressBar.xml
===================================================================
--- trunk/ui/progressBAR/src/main/config/component/progressBar.xml 2008-03-30 18:05:52 UTC (rev 7435)
+++ trunk/ui/progressBAR/src/main/config/component/progressBar.xml 2008-03-30 18:57:00 UTC (rev 7436)
@@ -32,10 +32,15 @@
</taghandler>
&ui_component_attributes;
&ui_command_attributes;
- &html_universal_attributes;
+ &html_style_attributes;
&ajax_component_attributes;
&html_events;
<property>
+ <name>title</name>
+ <classname>java.lang.String</classname>
+ <description> Advisory title information about markup elements generated for this component</description>
+ </property>
+ <property>
<name>mode</name>
<classname>java.lang.String</classname>
<description>Attributes defines AJAX or CLIENT modes for component</description>
@@ -162,14 +167,6 @@
but just allows to avoid unnecessary updates on the client side if the response isn't actual now
</description>
</property>
- <property hidden="true">
- <name>lang</name>
- <classname>java.lang.String</classname>
- <description>
- Code describing the language used in the generated
- markup for this component
- </description>
- </property>
</component>
</components>
16 years, 9 months
JBoss Rich Faces SVN: r7435 - in trunk/ui: core/src/main/java/org/richfaces/component and 10 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-03-30 14:05:52 -0400 (Sun, 30 Mar 2008)
New Revision: 7435
Added:
trunk/ui/core/src/main/java/org/richfaces/utils/
trunk/ui/core/src/main/java/org/richfaces/utils/package-info.java
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/convert/rowkey/package-info.java
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/convert/selection/package-info.java
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/model/internal/package-info.java
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/model/selection/package-info.java
trunk/ui/tree/src/main/java/org/richfaces/component/events/package-info.java
trunk/ui/tree/src/main/java/org/richfaces/component/state/events/package-info.java
trunk/ui/tree/src/main/java/org/richfaces/component/state/package-info.java
trunk/ui/tree/src/main/java/org/richfaces/component/xml/package-info.java
Removed:
trunk/ui/core/src/main/java/org/richfaces/component/events/
trunk/ui/core/src/main/java/org/richfaces/component/state/
trunk/ui/core/src/main/java/org/richfaces/component/xml/
trunk/ui/core/src/main/java/org/richfaces/convert/selection/
trunk/ui/core/src/main/java/org/richfaces/model/
trunk/ui/core/src/main/java/org/richfaces/util/
trunk/ui/core/src/main/java/org/richfaces/utils/package-info.java
Log:
package-info.java files moved to right places
Copied: trunk/ui/core/src/main/java/org/richfaces/utils (from rev 7398, trunk/ui/core/src/main/java/org/richfaces/util)
Deleted: trunk/ui/core/src/main/java/org/richfaces/utils/package-info.java
===================================================================
--- trunk/ui/core/src/main/java/org/richfaces/util/package-info.java 2008-03-29 01:26:54 UTC (rev 7398)
+++ trunk/ui/core/src/main/java/org/richfaces/utils/package-info.java 2008-03-30 18:05:52 UTC (rev 7435)
@@ -1,4 +0,0 @@
-/**
- * Defines classes for different util
- */
-package org.richfaces.util;
Copied: trunk/ui/core/src/main/java/org/richfaces/utils/package-info.java (from rev 7434, trunk/ui/core/src/main/java/org/richfaces/util/package-info.java)
===================================================================
--- trunk/ui/core/src/main/java/org/richfaces/utils/package-info.java (rev 0)
+++ trunk/ui/core/src/main/java/org/richfaces/utils/package-info.java 2008-03-30 18:05:52 UTC (rev 7435)
@@ -0,0 +1,4 @@
+/**
+ * Defines classes for different util
+ */
+package org.richfaces.utils;
Added: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/convert/rowkey/package-info.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/convert/rowkey/package-info.java (rev 0)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/convert/rowkey/package-info.java 2008-03-30 18:05:52 UTC (rev 7435)
@@ -0,0 +1,4 @@
+/**
+ * Defines classes responsible for row key conversion functionality
+ */
+package org.richfaces.convert.rowkey;
Copied: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/convert/selection/package-info.java (from rev 7398, trunk/ui/core/src/main/java/org/richfaces/convert/selection/package-info.java)
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/convert/selection/package-info.java (rev 0)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/convert/selection/package-info.java 2008-03-30 18:05:52 UTC (rev 7435)
@@ -0,0 +1,4 @@
+/**
+ * Defines classes responsible for selection functionality
+ */
+package org.richfaces.convert.selection;
Copied: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/model/internal/package-info.java (from rev 7398, trunk/ui/core/src/main/java/org/richfaces/model/internal/package-info.java)
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/model/internal/package-info.java (rev 0)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/model/internal/package-info.java 2008-03-30 18:05:52 UTC (rev 7435)
@@ -0,0 +1,4 @@
+/**
+ * Defines classes for component specific models
+ */
+package org.richfaces.model.internal;
Copied: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/model/selection/package-info.java (from rev 7398, trunk/ui/core/src/main/java/org/richfaces/model/selection/package-info.java)
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/model/selection/package-info.java (rev 0)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/model/selection/package-info.java 2008-03-30 18:05:52 UTC (rev 7435)
@@ -0,0 +1,4 @@
+/**
+ * Defines classes for selection model
+ */
+package org.richfaces.model.selection;
Copied: trunk/ui/tree/src/main/java/org/richfaces/component/events/package-info.java (from rev 7398, trunk/ui/core/src/main/java/org/richfaces/component/events/package-info.java)
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/events/package-info.java (rev 0)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/events/package-info.java 2008-03-30 18:05:52 UTC (rev 7435)
@@ -0,0 +1,4 @@
+/**
+ * Fundamental APIs for component events
+ */
+package org.richfaces.component.events;
Copied: trunk/ui/tree/src/main/java/org/richfaces/component/state/events/package-info.java (from rev 7398, trunk/ui/core/src/main/java/org/richfaces/component/state/events/package-info.java)
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/state/events/package-info.java (rev 0)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/state/events/package-info.java 2008-03-30 18:05:52 UTC (rev 7435)
@@ -0,0 +1,4 @@
+/**
+ * Provides classes and interfaces describing state events
+ */
+package org.richfaces.component.state.events;
Copied: trunk/ui/tree/src/main/java/org/richfaces/component/state/package-info.java (from rev 7398, trunk/ui/core/src/main/java/org/richfaces/component/state/package-info.java)
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/state/package-info.java (rev 0)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/state/package-info.java 2008-03-30 18:05:52 UTC (rev 7435)
@@ -0,0 +1,4 @@
+/**
+ * Provides classes and interfaces describing component states
+ */
+package org.richfaces.component.state;
Copied: trunk/ui/tree/src/main/java/org/richfaces/component/xml/package-info.java (from rev 7398, trunk/ui/core/src/main/java/org/richfaces/component/xml/package-info.java)
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/xml/package-info.java (rev 0)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/xml/package-info.java 2008-03-30 18:05:52 UTC (rev 7435)
@@ -0,0 +1,4 @@
+/**
+ * Defines classes responsible for XML functionality
+ */
+package org.richfaces.component.xml;
16 years, 9 months
JBoss Rich Faces SVN: r7434 - trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-03-30 13:09:23 -0400 (Sun, 30 Mar 2008)
New Revision: 7434
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js
Log:
Tree: ajax nodes were not initialized correctly
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js 2008-03-30 16:44:36 UTC (rev 7433)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js 2008-03-30 17:09:23 UTC (rev 7434)
@@ -139,7 +139,7 @@
for (var i = 0; i < nodeIds.length; i++ ) {
var nodeId = nodeIds[i];
if (nodeId != this.id) {
- this._getNodeElements(this, nodeId, nodeId.substring(0, nodeId.lastIndexOf(':')));
+ this._getNodeElements(this, nodeId, nodeId.substring(0, nodeId.lastIndexOf('::')));
} else {
for (var i = 0; i < this.childs.length; i++) {
var child = this.childs[i];
@@ -167,8 +167,9 @@
node.childs[i] = new Tree.Item(cid, this, child.parent, true);
break;
} else {
- var scid = cid.substring(0, cid.lastIndexOf(':'));
+ var scid = cid.substring(0, cid.lastIndexOf('::'));
if (sNodeId.substr(0, scid.length) == scid && sNodeId.charAt(scid.length) == ':') {
+
this._getNodeElements(child, nodeId, sNodeId);
break;
}
16 years, 9 months
JBoss Rich Faces SVN: r7433 - trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-30 12:44:36 -0400 (Sun, 30 Mar 2008)
New Revision: 7433
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
http://jira.jboss.com/jira/browse/RF-2851
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-30 16:34:31 UTC (rev 7432)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-30 16:44:36 UTC (rev 7433)
@@ -24,7 +24,7 @@
$super();
this.tempValueKeeper.observe("click", function(e){this.tempKeeperClickHandler(e);}.bindAsEventListener(this));
- this.button.observe("click", function(e){this.buttonClickHandler(e);}.bindAsEventListener(this));
+ this.button.observe("mousedown", function(e){this.buttonClickHandler(e);}.bindAsEventListener(this));
this.comboList.listParent.observe("mousedown", function(e){this.listMousedownHandler(e);}.bindAsEventListener(this));
this.comboList.listParent.observe("mousemove", function(e){this.listMouseMoveHandler(e)}.bindAsEventListener(this));
@@ -71,7 +71,7 @@
buttonClickHandler : function(e) {
this.tempKeeperClickHandler();
this.tempValueKeeper.focus();
-// Event.stop(e);
+ Event.stop(e);
},
tmpValueBlurHandler : function($super, event) {
16 years, 9 months
JBoss Rich Faces SVN: r7432 - Reports/3.2.0 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-03-30 12:34:31 -0400 (Sun, 30 Mar 2008)
New Revision: 7432
Added:
trunk/test-applications/qa/Test Reports/3.2.0/DailyReport320CR628032008.xls
trunk/test-applications/qa/Test Reports/3.2.0/DailyReport320CR729032008tkuprevich.xls
Log:
Added: trunk/test-applications/qa/Test Reports/3.2.0/DailyReport320CR628032008.xls
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Reports/3.2.0/DailyReport320CR628032008.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/qa/Test Reports/3.2.0/DailyReport320CR729032008tkuprevich.xls
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Reports/3.2.0/DailyReport320CR729032008tkuprevich.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 9 months
JBoss Rich Faces SVN: r7431 - trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-03-30 12:05:20 -0400 (Sun, 30 Mar 2008)
New Revision: 7431
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
the latest changes
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-30 15:31:15 UTC (rev 7430)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-30 16:05:20 UTC (rev 7431)
@@ -76,8 +76,12 @@
tmpValueBlurHandler : function($super, event) {
$super(event);
+
if (!this.byTab) {
if (!this.comboList.isList || this.clickOnBar) {
+ if (this.comboList.activeItem) {
+ this.comboList.doNormalItem(this.comboList.activeItem);
+ }
this.comboList.hideWithDelay();
}
@@ -201,18 +205,13 @@
cancel : function($super, e) {
var item = this.getLabelItem(this.valueKeeper.value);
-
- if (this.comboList.selectedItem) {
- this.comboList.doNormalItem(this.comboList.selectedItem);
- }
-// this.comboList.doSelectItem(item);
+ this.comboList.resetSelection();
+
if (item) {
- this.comboList.resetSelection();
this.comboList.doSelectItem(item);
$super(e, item.innerHTML);
} else {
$super(e, "");
- this.comboList.resetSelection();
}
this.comboList.hide();
16 years, 9 months
JBoss Rich Faces SVN: r7430 - trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-30 11:31:15 -0400 (Sun, 30 Mar 2008)
New Revision: 7430
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
http://jira.jboss.com/jira/browse/RF-2836
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-30 15:17:25 UTC (rev 7429)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-30 15:31:15 UTC (rev 7430)
@@ -43,7 +43,7 @@
var el = (e.srcElement) ? e.srcElement : e.target;
if ((el.id == this.inplaceInput.id) || (e.type == "focus")) {
$super(e);
- } else {
+ } else if(this.tempValueKeeper.style.display != "none") {
this.tempValueKeeper.focus();
}
},
16 years, 9 months
JBoss Rich Faces SVN: r7429 - in trunk/ui/combobox/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-30 11:17:25 -0400 (Sun, 30 Mar 2008)
New Revision: 7429
Modified:
trunk/ui/combobox/src/main/config/component/combobox.xml
trunk/ui/combobox/src/main/templates/combobox.jspx
Log:
remove size attr
Modified: trunk/ui/combobox/src/main/config/component/combobox.xml
===================================================================
--- trunk/ui/combobox/src/main/config/component/combobox.xml 2008-03-30 15:09:54 UTC (rev 7428)
+++ trunk/ui/combobox/src/main/config/component/combobox.xml 2008-03-30 15:17:25 UTC (rev 7429)
@@ -229,11 +229,7 @@
<description>CSS style(s) is/are to be applied when this component is rendered</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
- <property hidden="true">
- <name>size</name>
- <classname>int</classname>
- </property>
- <property>
+ <property>
<name>styleClass</name>
<classname>java.lang.String</classname>
<description>Corresponds to the HTML class attribute</description>
Modified: trunk/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/ui/combobox/src/main/templates/combobox.jspx 2008-03-30 15:09:54 UTC (rev 7428)
+++ trunk/ui/combobox/src/main/templates/combobox.jspx 2008-03-30 15:17:25 UTC (rev 7429)
@@ -209,7 +209,6 @@
disabled="#{disabled}"
class="#{valueStyle} rich-combobox-input-inactive #{inputDisabledClass}" type="text"
value="#{value}"
- size="#{inputSize}"
readonly="#{enableManualInput}"
onblur="#{component.attributes['onblur']}"
style="width:#{correction}; #{inputStyle}"
16 years, 9 months