JBoss Rich Faces SVN: r4026 - trunk/sandbox/samples/contextMenuDemo/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-11-15 13:48:47 -0500 (Thu, 15 Nov 2007)
New Revision: 4026
Modified:
trunk/sandbox/samples/contextMenuDemo/src/main/webapp/WEB-INF/web.xml
Log:
moved to javascript rendering
Modified: trunk/sandbox/samples/contextMenuDemo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/contextMenuDemo/src/main/webapp/WEB-INF/web.xml 2007-11-15 18:48:36 UTC (rev 4025)
+++ trunk/sandbox/samples/contextMenuDemo/src/main/webapp/WEB-INF/web.xml 2007-11-15 18:48:47 UTC (rev 4026)
@@ -10,6 +10,10 @@
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
<!--
-->
<filter>
18 years, 5 months
JBoss Rich Faces SVN: r4025 - trunk/framework/api/src/main/java/org/ajax4jsf/javascript.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-11-15 13:48:36 -0500 (Thu, 15 Nov 2007)
New Revision: 4025
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/javascript/AjaxSubmitFunction.java
trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSFunction.java
Log:
moved to javascript rendering
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/javascript/AjaxSubmitFunction.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/javascript/AjaxSubmitFunction.java 2007-11-15 18:48:28 UTC (rev 4024)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/javascript/AjaxSubmitFunction.java 2007-11-15 18:48:36 UTC (rev 4025)
@@ -60,7 +60,7 @@
public static final String AJAX_REGIONS_ATTRIBUTE = "reRender";
- private static final Class OBJECT_ARRAY_CLASS = (new Object[0]).getClass();
+ private static final Class<?> OBJECT_ARRAY_CLASS = (new Object[0]).getClass();
private UIComponent component;
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSFunction.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSFunction.java 2007-11-15 18:48:28 UTC (rev 4024)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSFunction.java 2007-11-15 18:48:36 UTC (rev 4025)
@@ -34,7 +34,7 @@
private String name;
- private List parameters = null;
+ private List<Object> parameters = null;
/**
* @param name
@@ -48,7 +48,7 @@
* @param name
* @param parameters
*/
- public JSFunction(String name, List parameters) {
+ public JSFunction(String name, List<Object> parameters) {
// TODO Auto-generated constructor stub
this.name = name;
this.parameters = parameters;
@@ -61,7 +61,7 @@
public JSFunction(String name, Object parameter) {
// TODO Auto-generated constructor stub
this.name = name;
- this.parameters = new ArrayList(1);
+ this.parameters = new ArrayList<Object>(1);
this.parameters.add(parameter);
}
@@ -73,9 +73,9 @@
public void appendScript(StringBuffer functionString) {
functionString.append(name).append('(');
boolean first = true;
- List parameters = getParameters();
+ List<?> parameters = getParameters();
if (null != parameters) {
- for (Iterator param = parameters.iterator(); param.hasNext();) {
+ for (Iterator<?> param = parameters.iterator(); param.hasNext();) {
Object element = param.next();
if (!first) {
functionString.append(',');
@@ -95,9 +95,9 @@
/**
* @return the parameters
*/
- public List getParameters() {
+ public List<Object> getParameters() {
if (this.parameters == null) {
- this.parameters = new ArrayList();
+ this.parameters = new ArrayList<Object>();
}
return this.parameters;
}
18 years, 5 months
JBoss Rich Faces SVN: r4024 - trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-11-15 13:48:28 -0500 (Thu, 15 Nov 2007)
New Revision: 4024
Modified:
trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/AbstractMenuRenderer.java
Log:
moved to javascript rendering
Modified: trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/AbstractMenuRenderer.java
===================================================================
--- trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/AbstractMenuRenderer.java 2007-11-15 18:03:13 UTC (rev 4023)
+++ trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/AbstractMenuRenderer.java 2007-11-15 18:48:28 UTC (rev 4024)
@@ -56,6 +56,11 @@
protected InternetResource[] getScripts() {
return scripts;
}
+
+ @Override
+ protected InternetResource[] getStyles() {
+ return super.getStyles();
+ }
public void encodeScript(FacesContext context, UIComponent component) throws IOException {
StringBuffer buffer = new StringBuffer();
18 years, 5 months
JBoss Rich Faces SVN: r4023 - trunk/sandbox/samples/orderingListDemo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-15 13:03:13 -0500 (Thu, 15 Nov 2007)
New Revision: 4023
Modified:
trunk/sandbox/samples/orderingListDemo/src/main/webapp/pages/index.jsp
Log:
Some enhancements for orderingList
Modified: trunk/sandbox/samples/orderingListDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/orderingListDemo/src/main/webapp/pages/index.jsp 2007-11-15 18:03:04 UTC (rev 4022)
+++ trunk/sandbox/samples/orderingListDemo/src/main/webapp/pages/index.jsp 2007-11-15 18:03:13 UTC (rev 4023)
@@ -20,7 +20,7 @@
}
</style>
- <script type="text/javascript" src="scripts/effects.js" />
+ <script type="text/javascript" src="scripts/effects.js"></script>
<title>Ordering List Demo.</title>
</head>
<body>
18 years, 5 months
JBoss Rich Faces SVN: r4022 - in trunk/sandbox/ui/orderingList/src/main: java/org/richfaces/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-15 13:03:04 -0500 (Thu, 15 Nov 2007)
New Revision: 4022
Removed:
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/ArrayUtil.java
Modified:
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
Log:
Some enhancements for orderingList
Deleted: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/ArrayUtil.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/ArrayUtil.java 2007-11-15 17:45:40 UTC (rev 4021)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/ArrayUtil.java 2007-11-15 18:03:04 UTC (rev 4022)
@@ -1,83 +0,0 @@
-/**
- *
- */
-package org.richfaces.component;
-
-
-/**
- * @author Nick Belaevski
- * mailto:nbelaevski@exadel.com
- * created 05.11.2007
- *
- * @since 3.2
- */
-class ArrayUtil {
-
- final static void copy(Object out, Object in, int[] indexes) {
- if (in instanceof int[]) {
- copy((int[])out, (int[])in, indexes);
- } else if (in instanceof short[]) {
- copy((short[])out, (short[])in, indexes);
- } else if (in instanceof byte[]) {
- copy((byte[])out, (byte[])in, indexes);
- } else if (in instanceof boolean[]) {
- copy((boolean[])out, (boolean[])in, indexes);
- } else if (in instanceof char[]) {
- copy((char[])out, (char[])in, indexes);
- } else if (in instanceof float[]) {
- copy((float[])out, (float[])in, indexes);
- } else if (in instanceof double[]) {
- copy((double[])out, (double[])in, indexes);
- } else if (in instanceof long[]) {
- copy((long[])out, (long[])in, indexes);
- } else {
- copy((Object[])out, (Object[])in, indexes);
- }
- }
-
- final static void copy(Object[] out, Object[] in, int[] indexes) {
- for (int i = 0; i < indexes.length; i++) {
- out[i] = in[indexes[i]];
- }
- }
- final static void copy(int[] out, int[] in, int[] indexes) {
- for (int i = 0; i < indexes.length; i++) {
- out[i] = in[indexes[i]];
- }
- }
- final static void copy(short[] out, short[] in, int[] indexes) {
- for (int i = 0; i < indexes.length; i++) {
- out[i] = in[indexes[i]];
- }
- }
- final static void copy(byte[] out, byte[] in, int[] indexes) {
- for (int i = 0; i < indexes.length; i++) {
- out[i] = in[indexes[i]];
- }
- }
- final static void copy(boolean[] out, boolean[] in, int[] indexes) {
- for (int i = 0; i < indexes.length; i++) {
- out[i] = in[indexes[i]];
- }
- }
- final static void copy(char[] out, char[] in, int[] indexes) {
- for (int i = 0; i < indexes.length; i++) {
- out[i] = in[indexes[i]];
- }
- }
- final static void copy(float[] out, float[] in, int[] indexes) {
- for (int i = 0; i < indexes.length; i++) {
- out[i] = in[indexes[i]];
- }
- }
- final static void copy(double[] out, double[] in, int[] indexes) {
- for (int i = 0; i < indexes.length; i++) {
- out[i] = in[indexes[i]];
- }
- }
- final static void copy(long[] out, long[] in, int[] indexes) {
- for (int i = 0; i < indexes.length; i++) {
- out[i] = in[indexes[i]];
- }
- }
-}
Modified: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java 2007-11-15 17:45:40 UTC (rev 4021)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java 2007-11-15 18:03:04 UTC (rev 4022)
@@ -3,6 +3,7 @@
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
@@ -829,10 +830,15 @@
}
convertedValue = arrayList;
} else {
- convertedValue = Array.newInstance(savedValue.getClass().getComponentType(),
+ Object[] savedValueArray = (Object[]) savedValue;
+ Object[] convertedValueArray = (Object[]) Array.newInstance(savedValue.getClass().getComponentType(),
Array.getLength(savedValue));
- ArrayUtil.copy(convertedValue,
- savedValue, indexes);
+
+ convertedValue = convertedValueArray;
+
+ for (int i = 0; i < indexes.length; i++) {
+ convertedValueArray[i] = savedValueArray[indexes[i]];
+ }
}
//submittedValueHolder.newValue = convertedValue;
@@ -956,7 +962,11 @@
} else if (value == null) {
return (true);
} else {
- return (!(previous.equals(value)));
+ if (previous instanceof Object[]) {
+ return !Arrays.equals((Object[]) previous, (Object[]) value);
+ } else {
+ return (!(previous.equals(value)));
+ }
}
}
Modified: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java 2007-11-15 17:45:40 UTC (rev 4021)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java 2007-11-15 18:03:04 UTC (rev 4022)
@@ -5,10 +5,14 @@
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
import javax.faces.component.UIColumn;
import javax.faces.component.UIComponent;
+import javax.faces.component.UIViewRoot;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
@@ -25,6 +29,8 @@
public abstract class OrderingListRendererBase extends AbstractRowsRenderer {
+ private static final String MESSAGE_BUNDLE_NAME = OrderingListRendererBase.class.getPackage().getName() + "OrderingList";
+
private final static Character ACTIVITY_MARKER = 'a';
private final static Character SELECTION_MARKER = 's';
@@ -96,7 +102,7 @@
protected static abstract class ControlsHelper {
private String name;
- private String text;
+ private String bundlePropertyName;
private String imageURI;
@@ -113,15 +119,18 @@
private String buttonStyle;
private boolean enable;
+
+ private String defaultText;
public abstract boolean isRendered(FacesContext context, UIOrderingList list);
- public ControlsHelper(String name, String text, String imageURI,
+ public ControlsHelper(String name, String bundlePropertyName, String defaultText, String imageURI,
String facetName, String styleClassName, String styleFromAttribute, String buttonStyle,
String idSuffix, String customEvent, boolean isEnable) {
super();
this.name = name;
- this.text = text;
+ this.bundlePropertyName = bundlePropertyName;
+ this.defaultText = defaultText;
this.imageURI = imageURI;
this.facetName = facetName;
this.styleClassName = styleClassName;
@@ -136,8 +145,8 @@
return name;
}
- public String getText() {
- return text;
+ public String getBundlePropertyName() {
+ return bundlePropertyName;
}
public String getImageURI() {
@@ -171,10 +180,14 @@
public boolean isEnable() {
return enable;
}
+
+ public String getDefaultText() {
+ return defaultText;
+ }
};
protected static final ControlsHelper[] HELPERS = new ControlsHelper[] {
- new ControlsHelper("top", "↟", OrderingListIconTop.class.getName(), FACET_TOP,
+ new ControlsHelper("top", "TOP_LABEL", "Top", OrderingListIconTop.class.getName(), FACET_TOP,
" rich-ordering-control-top", ATTRIBUTE_CLASS_TOP_CONTROL, "ol_control_bn_top",
CONTROL_ID_TOP, ATTRIBUTE_CE_ONTOPCLICK, true) {
@@ -183,7 +196,7 @@
}
},
- new ControlsHelper("disabledTop", "↟", OrderingListIconTopDisabled.class.getName(), FACET_DIS_TOP,
+ new ControlsHelper("disabledTop", "TOP_LABEL", "Top", OrderingListIconTopDisabled.class.getName(), FACET_DIS_TOP,
" rich-ordering-control-disabled", ATTRIBUTE_CLASS_DISABLED_CONTROL, "ol_control_dbn_top",
DIS_CONTROL_ID_PREFIX.concat(CONTROL_ID_TOP), null, false) {
@@ -192,7 +205,7 @@
}
},
- new ControlsHelper("up", "↑", OrderingListIconUp.class.getName(), FACET_UP,
+ new ControlsHelper("up", "UP_LABEL", "Up", OrderingListIconUp.class.getName(), FACET_UP,
" rich-ordering-control-up", ATTRIBUTE_CLASS_UP_CONTROL, "ol_control_bn_up",
CONTROL_ID_UP, ATTRIBUTE_CE_ONUPCLICK ,true) {
@@ -201,7 +214,7 @@
}
},
- new ControlsHelper("disabledUp", "↑", OrderingListIconUpDisabled.class.getName(), FACET_DIS_UP,
+ new ControlsHelper("disabledUp", "UP_LABEL", "Up", OrderingListIconUpDisabled.class.getName(), FACET_DIS_UP,
" rich-ordering-control-disabled", ATTRIBUTE_CLASS_DISABLED_CONTROL, "ol_control_dbn_up",
DIS_CONTROL_ID_PREFIX.concat(CONTROL_ID_UP), null, false) {
@@ -210,7 +223,7 @@
}
},
- new ControlsHelper("down", "↓", OrderingListIconDown.class.getName(), FACET_DOWN,
+ new ControlsHelper("down", "DOWN_LABEL", "Down", OrderingListIconDown.class.getName(), FACET_DOWN,
" rich-ordering-control-down", ATTRIBUTE_CLASS_DOWN_CONTROL, "ol_control_bn_down",
CONTROL_ID_DOWN, ATTRIBUTE_CE_ONDOWNCLICK, true) {
@@ -219,7 +232,7 @@
}
},
- new ControlsHelper("disabledDown", "↓", OrderingListIconDownDisabled.class.getName(), FACET_DIS_DOWN,
+ new ControlsHelper("disabledDown", "DOWN_LABEL", "Down", OrderingListIconDownDisabled.class.getName(), FACET_DIS_DOWN,
" rich-ordering-control-disabled", ATTRIBUTE_CLASS_DISABLED_CONTROL, "ol_control_dbn_down",
DIS_CONTROL_ID_PREFIX.concat(CONTROL_ID_DOWN), null, false) {
@@ -228,7 +241,7 @@
}
},
- new ControlsHelper("bottom", "↡", OrderingListIconBottom.class.getName(), FACET_BOTTOM,
+ new ControlsHelper("bottom", "BOTTOM_LABEL", "Bottom", OrderingListIconBottom.class.getName(), FACET_BOTTOM,
" rich-ordering-control-bottom", ATTRIBUTE_CLASS_BOTTOM_CONTROL, "ol_control_bn_bottom",
CONTROL_ID_BOTTOM, ATTRIBUTE_CE_ONBOTTOMCLICK, true) {
@@ -237,7 +250,7 @@
}
},
- new ControlsHelper("disabledBottom", "↡", OrderingListIconBottomDisabled.class.getName(), FACET_DIS_BOTTOM,
+ new ControlsHelper("disabledBottom", "BOTTOM_LABEL", "Bottom", OrderingListIconBottomDisabled.class.getName(), FACET_DIS_BOTTOM,
" rich-ordering-control-disabled", ATTRIBUTE_CLASS_DISABLED_CONTROL, "ol_control_dbn_bottom",
DIS_CONTROL_ID_PREFIX.concat(CONTROL_ID_BOTTOM), null, false) {
@@ -310,7 +323,24 @@
protected void encodeControlFacet(FacesContext context, UIOrderingList orderingList, ControlsHelper helper, String clientId, ResponseWriter writer)
throws IOException {
+ Locale locale = null;
+ UIViewRoot viewRoot = context.getViewRoot();
+ if (viewRoot != null) {
+ locale = viewRoot.getLocale();
+ }
+
+ ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
+ ResourceBundle bundle = null;
+
+ if (locale != null) {
+ try {
+ bundle = ResourceBundle.getBundle(MESSAGE_BUNDLE_NAME, locale, contextClassLoader);
+ } catch (MissingResourceException e) {
+
+ }
+ }
+
UIComponent facet = orderingList.getFacet(helper.getFacetName());
boolean isButton = false;
boolean useFacet = (facet != null && facet.isRendered());
@@ -336,7 +366,7 @@
//none
}
- boolean encodeDiv = useFacet || htmlElem != null;
+ boolean encodeDiv = !isButton && (useFacet || htmlElem != null);
if (encodeDiv) {
writer.startElement(HTML.DIV_ELEM, orderingList);
@@ -371,12 +401,27 @@
renderChild(context, facet);
} else {
if (isButton) {
- writer.writeAttribute("style", "font-size: 1.5em;", null);
currentStyle = helper.buttonStyle.concat(currentStyle);
//writer.writeAttribute(HTML.class_ATTRIBUTE, currentStyle, null);
if (!helper.enable) {
writer.writeAttribute(HTML.DISABLED_ATTR, "true", null);
}
+
+ String label = null;
+
+ if (bundle != null) {
+ try {
+ label = bundle.getString(helper.getBundlePropertyName());
+ } catch (MissingResourceException e) {
+
+ }
+ }
+
+ if (label == null) {
+ label = helper.getDefaultText();
+ }
+
+ writer.writeText(label, null);
} else {
//writer.writeAttribute(HTML.class_ATTRIBUTE, currentStyle, null);
writer.startElement(HTML.IMG_ELEMENT, orderingList);
@@ -394,6 +439,11 @@
writer.endElement(htmlElem);
}
+ if (isButton) {
+ writer.startElement("br", orderingList);
+ writer.endElement("br");
+ }
+
if (encodeDiv) {
writer.endElement(HTML.DIV_ELEM);
writer.endElement(HTML.DIV_ELEM);
Modified: trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-11-15 17:45:40 UTC (rev 4021)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-11-15 18:03:04 UTC (rev 4022)
@@ -122,7 +122,6 @@
<u:style name="color" skin="generalTextColor"/>
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
- <u:style name="border" value="0"/>
<u:style name="white-space" value="nowrap"/>
</u:selector>
<u:selector name=".ol_control_bn_up">
18 years, 5 months
JBoss Rich Faces SVN: r4021 - trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-15 12:45:40 -0500 (Thu, 15 Nov 2007)
New Revision: 4021
Modified:
branches/3.1.x/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss
trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss
Log:
http://jira.jboss.com/jira/browse/RF-1236
Modified: branches/3.1.x/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss
===================================================================
--- branches/3.1.x/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss 2007-11-15 16:44:58 UTC (rev 4020)
+++ branches/3.1.x/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss 2007-11-15 17:45:40 UTC (rev 4021)
@@ -14,6 +14,7 @@
<u:style name="background-color" skin="tableBackgroundColor" /> <!--tableBackgroundColor-->
<!-- <u:style name="border-collapse" value="inherit" /> fix RF-535 -->
<u:style name="empty-cells" value="show" />
+ <u:style name="border-collapse" value="collapse" />
</u:selector>
<u:selector name=".dr-table-cell" >
Modified: trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss
===================================================================
--- trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss 2007-11-15 16:44:58 UTC (rev 4020)
+++ trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss 2007-11-15 17:45:40 UTC (rev 4021)
@@ -14,6 +14,7 @@
<u:style name="background-color" skin="tableBackgroundColor" /> <!--tableBackgroundColor-->
<!-- <u:style name="border-collapse" value="inherit" /> fix RF-535 -->
<u:style name="empty-cells" value="show" />
+ <u:style name="border-collapse" value="collapse" />
</u:selector>
<u:selector name=".dr-table-cell" >
18 years, 5 months
JBoss Rich Faces SVN: r4020 - in management/design: orderingList and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-11-15 11:44:58 -0500 (Thu, 15 Nov 2007)
New Revision: 4020
Modified:
management/design/listShuttle/FuncSpec - ListShuttle.doc
management/design/orderingList/FuncSpec - orderingList.doc
Log:
Modified: management/design/listShuttle/FuncSpec - ListShuttle.doc
===================================================================
(Binary files differ)
Modified: management/design/orderingList/FuncSpec - orderingList.doc
===================================================================
(Binary files differ)
18 years, 5 months
JBoss Rich Faces SVN: r4019 - management/design/orderingList.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-11-15 11:41:05 -0500 (Thu, 15 Nov 2007)
New Revision: 4019
Modified:
management/design/orderingList/FuncSpec - orderingList.doc
Log:
Modified: management/design/orderingList/FuncSpec - orderingList.doc
===================================================================
(Binary files differ)
18 years, 5 months
JBoss Rich Faces SVN: r4018 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-11-15 11:37:46 -0500 (Thu, 15 Nov 2007)
New Revision: 4018
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-1042 - Added section "Other usefil atributes" with description of status and focus attributes.
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-11-15 16:32:48 UTC (rev 4017)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-11-15 16:37:46 UTC (rev 4018)
@@ -547,12 +547,76 @@
</section>
- <!--section id="Otherusefulattributes">
+ <section id="Otherusefulattributes">
<?dbhtml filename="Otherusefulattributes.html"?>
<title>Other useful attributes</title>
-
- </section-->
+ <para><emphasis>
+ <property>"status"</property>
+ </emphasis> attribute for Ajax components (such as <emphasis role="bold">
+ <property><a4j:commandButton></property>
+ </emphasis>, <emphasis role="bold">
+ <property><a4j:poll></property>
+ </emphasis>, etc.) points to an ID of <emphasis role="bold">
+ <property><a4j:status></property>
+ </emphasis> component. Use this attribute if you want to share <emphasis role="bold">
+ <property><a4j:status></property>
+ </emphasis> component between different Ajax components from different regions. The
+ following example shows it. </para>
+ <programlisting role="XML"><![CDATA[...
+ <a4j:region id="extr">
+ <h:form>
+ <h:outputText value="Status:" />
+ <a4j:status id="commonstatus" startText="In Progress...." stopText=""/>
+ <h:panelGrid columns="2">
+ <h:outputText value="Name"/>
+ <h:inputText id="name" value="#{userBean.name}">
+ <a4j:support event="onkeyup" reRender="out" />
+ </h:inputText>
+ <h:outputText value="Job"/>
+ <a4j:region id="intr">
+ <h:inputText id="job" value="#{userBean.job}">
+ <a4j:support event="onkeyup" reRender="out" status="commonstatus"/>
+ </h:inputText>
+ </a4j:region>
+ </h:panelGrid>
+
+ <a4j:region>
+ <h:outputText id="out" value="Name: #{userBean.name}, Job: #{userBean.job}" />
+ <br />
+ <a4j:commandButton ajaxSingle="true" value="Clean Up Form" reRender="name, job, out" status="commonstatus">
+ <a4j:actionparam name="n" value="" assignTo="#{userBean.name}" />
+ <a4j:actionparam name="j" value="" assignTo="#{userBean.job}" />
+ </a4j:commandButton>
+ </a4j:region>
+ </h:form>
+ </a4j:region>
+...
+]]></programlisting>
+
+ <para>In the example <emphasis role="bold">
+ <property><a4j:support></property>
+ </emphasis> and <emphasis role="bold">
+ <property><a4j:commandButton></property>
+ </emphasis> are defined in different regions. Values of <emphasis>
+ <property>"status"</property>
+ </emphasis> attribute for these components points to an ID of <emphasis role="bold">
+ <property><a4j:support></property>
+ </emphasis>.Thus, the <emphasis role="bold">
+ <property><a4j:support></property>
+ </emphasis> component is shared between two components from different regions.</para>
+
+ <para>More information could be found <ulink
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/status.jsf?c=status"
+ >here</ulink>.</para>
+
+ <para>Other useful attribute is <emphasis>
+ <property>"focus"</property>
+ </emphasis>. It points to an ID of a component where focus will be set after an Ajax
+ request.</para>
+
+ </section>
+
</section>
<section id="HowTo...">
18 years, 5 months
JBoss Rich Faces SVN: r4017 - branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/model/selection.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-11-15 11:32:48 -0500 (Thu, 15 Nov 2007)
New Revision: 4017
Modified:
branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/model/selection/SelectionRange.java
Log:
RF-1354
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/model/selection/SelectionRange.java
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/model/selection/SelectionRange.java 2007-11-15 16:30:25 UTC (rev 4016)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/model/selection/SelectionRange.java 2007-11-15 16:32:48 UTC (rev 4017)
@@ -3,11 +3,17 @@
*/
package org.richfaces.model.selection;
+import java.io.Serializable;
+
/**
* @author Maksim Kaszynski
*
*/
-public class SelectionRange {
+public class SelectionRange implements Serializable{
+ /**
+ *
+ */
+ private static final long serialVersionUID = 7275902516967658502L;
private int startIndex = -1;;
private int endIndex = -1;
18 years, 5 months