JBoss Rich Faces SVN: r3065 - branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-09-24 07:54:25 -0400 (Mon, 24 Sep 2007)
New Revision: 3065
Modified:
branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
Log:
RF-976
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-09-24 11:54:08 UTC (rev 3064)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-09-24 11:54:25 UTC (rev 3065)
@@ -70,20 +70,18 @@
int prevWidth = 0;
int width = 0;
+
-
String widthPx = (String)column.getAttributes().get("width");
+ widthPx = getFormattedWidth(widthPx);
prevWidth = state.getSumWidth();
+ width = prevWidth + Integer.parseInt(widthPx);
+ state.setSumWidth(width);
- if(widthPx.endsWith("px")){
- width = prevWidth + Integer.parseInt(widthPx.substring(0, widthPx.indexOf("px")));
- }
-
- state.setSumWidth(width);
return 1;
}
};
-
+
private final ColumnVisitor colsRenderer = new ExtendedColumnVisitor(){
public void renderContent(FacesContext context, UIComponent column, ResponseWriter writer, ScrollableDataTableRendererState state) throws IOException {
@@ -112,13 +110,9 @@
ComponentsVariableResolver.getVariables(headerCellTemplate, column);
String widthPx = (String)column.getAttributes().get("width");
- // temporary solution RF-957
- if(widthPx.contains("%")){
- throw new FacesException(PERSENTAGE_SUPPORT_ERROR_MSG);
- }
-
- int width = Integer.parseInt(widthPx.substring(0, widthPx.indexOf("px")));
-
+ widthPx = getFormattedWidth(widthPx);
+ int width = Integer.parseInt(widthPx);
+
int sepOffset = 0;
if(state.isFrozenColumn()){
@@ -395,7 +389,20 @@
}
};
+ // temporary solution RF-957
+ public String getFormattedWidth(String receivedWidth ) throws IOException{
+
+ String formattedWidth = receivedWidth;
+
+ if(formattedWidth.endsWith("%")){
+ throw new FacesException(PERSENTAGE_SUPPORT_ERROR_MSG);
+ }else if(formattedWidth.endsWith("px")){
+ formattedWidth = formattedWidth.substring(0,formattedWidth.indexOf("px"));
+ }
+ return formattedWidth;
+ }
+
public ScrollableDataTableBaseRenderer() {
addContributor(new SelectionRendererContributor());
}
16 years, 8 months
JBoss Rich Faces SVN: r3064 - trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-09-24 07:54:08 -0400 (Mon, 24 Sep 2007)
New Revision: 3064
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
Log:
RF-976
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-09-24 10:34:32 UTC (rev 3063)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-09-24 11:54:08 UTC (rev 3064)
@@ -70,20 +70,18 @@
int prevWidth = 0;
int width = 0;
+
-
String widthPx = (String)column.getAttributes().get("width");
+ widthPx = getFormattedWidth(widthPx);
prevWidth = state.getSumWidth();
+ width = prevWidth + Integer.parseInt(widthPx);
+ state.setSumWidth(width);
- if(widthPx.endsWith("px")){
- width = prevWidth + Integer.parseInt(widthPx.substring(0, widthPx.indexOf("px")));
- }
-
- state.setSumWidth(width);
return 1;
}
};
-
+
private final ColumnVisitor colsRenderer = new ExtendedColumnVisitor(){
public void renderContent(FacesContext context, UIComponent column, ResponseWriter writer, ScrollableDataTableRendererState state) throws IOException {
@@ -112,13 +110,9 @@
ComponentsVariableResolver.getVariables(headerCellTemplate, column);
String widthPx = (String)column.getAttributes().get("width");
- // temporary solution RF-957
- if(widthPx.contains("%")){
- throw new FacesException(PERSENTAGE_SUPPORT_ERROR_MSG);
- }
-
- int width = Integer.parseInt(widthPx.substring(0, widthPx.indexOf("px")));
-
+ widthPx = getFormattedWidth(widthPx);
+ int width = Integer.parseInt(widthPx);
+
int sepOffset = 0;
if(state.isFrozenColumn()){
@@ -395,7 +389,20 @@
}
};
+ // temporary solution RF-957
+ public String getFormattedWidth(String receivedWidth ) throws IOException{
+
+ String formattedWidth = receivedWidth;
+
+ if(formattedWidth.endsWith("%")){
+ throw new FacesException(PERSENTAGE_SUPPORT_ERROR_MSG);
+ }else if(formattedWidth.endsWith("px")){
+ formattedWidth = formattedWidth.substring(0,formattedWidth.indexOf("px"));
+ }
+ return formattedWidth;
+ }
+
public ScrollableDataTableBaseRenderer() {
addContributor(new SelectionRendererContributor());
}
16 years, 8 months
JBoss Rich Faces SVN: r3063 - trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-09-24 06:34:32 -0400 (Mon, 24 Sep 2007)
New Revision: 3063
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
Log:
http://jira.jboss.com/jira/browse/RF-523 - fixed linka for message and messages components.
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-09-24 10:25:23 UTC (rev 3062)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-09-24 10:34:32 UTC (rev 3063)
@@ -34,8 +34,8 @@
menuItem= richMenu, Menu Item, /images/ico_dropDownMenu.gif, /images/cn_MenuItem.gif, RichFacesComponentsLibrary.html#menuItem, jbossrichfaces/freezone/docs/tlddoc/rich/menuItem.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIMenuItem.html, /richfaces/dropDownMenu.jsf
menuSeparator= richMenu, Menu Separator, /images/ico_dropDownMenu.gif, /images/cn_MenuSeparator.gif, RichFacesComponentsLibrary.html#menuSeparator, jbossrichfaces/freezone/docs/tlddoc/rich/menuSeparator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIMenuSeparator.html, /richfaces/dropDownMenu.jsf
calendar= richInputs, Calendar, /images/ico_common.gif, /images/cn_Calendar.gif, RichFacesComponentsLibrary.html#calendar, jbossrichfaces/freezone/docs/tlddoc/rich/calendar.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UICalendar.html, /richfaces/calendar.jsf
-message= richMisc, Message, /images/ico_common.gif, /images/cn_Message.gif, RichFacesComponentsLibrary.html#message, jbossrichfaces/freezone/docs/tlddoc/rich/message.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIMessage.html, /richfaces/message.jsf
-messages= richMisc, Messages, /images/ico_common.gif, /images/cn_Messages.gif, RichFacesComponentsLibrary.html#messages, jbossrichfaces/freezone/docs/tlddoc/rich/messages.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIMessages.html, /richfaces/messages.jsf
+message= richMisc, Message, /images/ico_common.gif, /images/cn_Message.gif, RichFacesComponentsLibrary.html#message, jbossrichfaces/freezone/docs/tlddoc/rich/message.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIRichMessage.html, /richfaces/message.jsf
+messages= richMisc, Messages, /images/ico_common.gif, /images/cn_Messages.gif, RichFacesComponentsLibrary.html#messages, jbossrichfaces/freezone/docs/tlddoc/rich/messages.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIRichMessages.html, /richfaces/messages.jsf
virtualEarth= richMisc, Virtual Earth, /images/ico_VirtualEarth.gif, /images/cn_VirtualEarth.gif, RichFacesComponentsLibrary.html#virtualEarth, jbossrichfaces/freezone/docs/tlddoc/rich/virtualEarth.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIVirtualEarth.html, /richfaces/virtualEarth.jsf
insert= richMisc, Insert, /images/ico_common.gif, /images/cn_insert.gif, RichFacesComponentsLibrary.html#insert, jbossrichfaces/freezone/docs/tlddoc/rich/insert.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIInsert.html, /richfaces/insert.jsf
scrollableDataTable= richDataIterators, Scrollable Data Table,/images/ico_common.gif, /images/cn_ScrollableDataTable.gif, RichFacesComponentsLibrary.html#scrollableDataTable, jbossrichfaces/freezone/docs/tlddoc/rich/scrollableDataTable.html,jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIScrollableDataTable.html, /richfaces/scrollableDataTable.jsf
16 years, 8 months
JBoss Rich Faces SVN: r3061 - trunk/framework/test/src/test/java/org/richfaces/model.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-09-22 05:01:03 -0400 (Sat, 22 Sep 2007)
New Revision: 3061
Modified:
trunk/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java
Log:
fixed test/java/org/richfaces/model/StackingTreeDataModelTest.java
Modified: trunk/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java
===================================================================
--- trunk/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java 2007-09-22 08:56:21 UTC (rev 3060)
+++ trunk/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java 2007-09-22 09:01:03 UTC (rev 3061)
@@ -149,22 +149,28 @@
this.stackingTreeModel.setRowKey(new ListRowKey(new StackingTreeModel.Key("project", "projectAAAAA")));
assertFalse(this.stackingTreeModel.isRowAvailable());
try {
- this.stackingTreeModel.getRowData();
- fail();
+ Object rowData = this.stackingTreeModel.getRowData();
+ assertNull(rowData);
+ //FIXME: Maksim - bad keys happen for a reason
+ //fail();
} catch (Exception e) {
}
try {
- this.stackingTreeModel.isLeaf();
- fail();
+ boolean leaf = this.stackingTreeModel.isLeaf();
+ assertTrue(leaf);
+ //FIXME: Maksim - bad keys happen for a reason
+ //fail();
} catch (Exception e) {
}
try {
- this.stackingTreeModel.getTreeNode();
- fail();
+ TreeNode node = this.stackingTreeModel.getTreeNode();
+ assertNull(node);
+ //FIXME: Maksim - bad keys happen for a reason
+ //fail();
} catch (Exception e) {
}
16 years, 8 months
JBoss Rich Faces SVN: r3060 - branches/3.1.x/framework/test/src/test/java/org/richfaces/model.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-09-22 04:56:21 -0400 (Sat, 22 Sep 2007)
New Revision: 3060
Modified:
branches/3.1.x/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java
Log:
Fixed test/java/org/richfaces/model/StackingTreeDataModelTest.java
Modified: branches/3.1.x/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java
===================================================================
--- branches/3.1.x/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java 2007-09-21 18:17:14 UTC (rev 3059)
+++ branches/3.1.x/framework/test/src/test/java/org/richfaces/model/StackingTreeDataModelTest.java 2007-09-22 08:56:21 UTC (rev 3060)
@@ -149,22 +149,28 @@
this.stackingTreeModel.setRowKey(new ListRowKey(new StackingTreeModel.Key("project", "projectAAAAA")));
assertFalse(this.stackingTreeModel.isRowAvailable());
try {
- this.stackingTreeModel.getRowData();
- fail();
+ Object rowData = this.stackingTreeModel.getRowData();
+ assertNull(rowData);
+ //FIXME: Maksim - bad keys happen for a reason
+ //fail();
} catch (Exception e) {
}
try {
- this.stackingTreeModel.isLeaf();
- fail();
+ boolean leaf = this.stackingTreeModel.isLeaf();
+ assertTrue(leaf);
+ //FIXME: Maksim - bad keys happen for a reason
+ //fail();
} catch (Exception e) {
}
try {
- this.stackingTreeModel.getTreeNode();
- fail();
+ TreeNode node = this.stackingTreeModel.getTreeNode();
+ assertNull(node);
+ //FIXME: Maksim - bad keys happen for a reason
+ //fail();
} catch (Exception e) {
}
16 years, 8 months
JBoss Rich Faces SVN: r3059 - in branches/3.1.x: ui/tree/src/main/java/org/richfaces/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-09-21 14:17:14 -0400 (Fri, 21 Sep 2007)
New Revision: 3059
Modified:
branches/3.1.x/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java
branches/3.1.x/ui/tree/src/main/java/org/richfaces/component/UITree.java
branches/3.1.x/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
Log:
http://jira.jboss.com/jira/browse/RF-980
Modified: branches/3.1.x/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java
===================================================================
--- branches/3.1.x/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java 2007-09-21 17:31:32 UTC (rev 3058)
+++ branches/3.1.x/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java 2007-09-21 18:17:14 UTC (rev 3059)
@@ -76,8 +76,12 @@
return ((StackEntry) stackEntries.getLast()).model;
}
+ return null;
+ //FIXME: Maksim: Handle deleted entries correctly
+/*
throw new IllegalStateException(
"No tree element available or row key not set!");
+*/
}
public boolean isEmpty() {
@@ -222,9 +226,12 @@
if (isRowAvailable()) {
return null;
}
-
+ return null;
+ //FIXME: Maksim: Handle deleted entries correctly
+/*
throw new IllegalStateException(
"No tree element available or row key not set!");
+*/
}
/*
@@ -245,9 +252,12 @@
return true;
}
-
+ return true;
+ //FIXME: Maksim: Handle deleted entries correctly
+/*
throw new IllegalStateException(
"No tree element available or row key not set!");
+*/
}
protected StackingTreeModel getRoot() {
@@ -481,8 +491,12 @@
return lastEntry.model.rowData;
}
+ return null;
+ //FIXME: Maksim: Handle deleted entries correctly
+ /*
throw new IllegalStateException(
"No tree element available or row key not set!");
+ */
}
/*
Modified: branches/3.1.x/ui/tree/src/main/java/org/richfaces/component/UITree.java
===================================================================
--- branches/3.1.x/ui/tree/src/main/java/org/richfaces/component/UITree.java 2007-09-21 17:31:32 UTC (rev 3058)
+++ branches/3.1.x/ui/tree/src/main/java/org/richfaces/component/UITree.java 2007-09-21 18:17:14 UTC (rev 3059)
@@ -22,7 +22,9 @@
package org.richfaces.component;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.Iterator;
+import java.util.List;
import java.util.Map;
import javax.faces.application.Application;
@@ -62,6 +64,7 @@
import org.richfaces.event.NodeSelectedListener;
import org.richfaces.event.TreeListenerEventsProducer;
import org.richfaces.model.AbstractTreeDataModel;
+import org.richfaces.model.ListRowKey;
import org.richfaces.model.StackingTreeModel;
import org.richfaces.model.StackingTreeModelProvider;
import org.richfaces.model.TreeDataModel;
@@ -473,10 +476,10 @@
return !SWITCH_CLIENT.equals(getSwitchType());
}
-
+
public void broadcast(FacesEvent event) throws AbortProcessingException {
super.broadcast(event);
-
+
DataComponentState componentState = getComponentState();
if (componentState instanceof FacesListener) {
FacesListener facesListener = (FacesListener) componentState;
Modified: branches/3.1.x/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
===================================================================
--- branches/3.1.x/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2007-09-21 17:31:32 UTC (rev 3058)
+++ branches/3.1.x/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2007-09-21 18:17:14 UTC (rev 3059)
@@ -25,6 +25,7 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -49,6 +50,7 @@
import org.richfaces.component.state.TreeState;
import org.richfaces.component.state.TreeStateAdvisor;
import org.richfaces.model.LastElementAware;
+import org.richfaces.model.ListRowKey;
import org.richfaces.model.TreeRange;
import org.richfaces.model.TreeRowKey;
@@ -365,6 +367,28 @@
NSUtils.writeNameSpace(context, component);
}
+
+ private TreeRowKey parentRowKey(TreeRowKey key) {
+ //If depth is > 1, return parent row key
+ int depth = key.depth();
+ TreeRowKey rowKey = key;
+
+ if (depth > 1) {
+ List keyComps = new ArrayList(depth);
+
+ for(Iterator iter = key.iterator(); iter.hasNext(); ) {
+ Object next = iter.next();
+ if (iter.hasNext()) {
+ keyComps.add(next);
+ }
+ }
+
+ rowKey = new ListRowKey(keyComps);
+ }
+
+ return rowKey;
+ }
+
public void encodeAjaxChildren(FacesContext context, UIComponent component,
String path, Set ids, Set renderedAreas) throws IOException {
super.encodeAjaxChildren(context, component, path, ids, renderedAreas);
@@ -392,7 +416,23 @@
try {
Set ajaxKeys = tree.getAllAjaxKeys();
+
if (ajaxKeys != null) {
+ Set aKeys = new HashSet();
+
+ for(Iterator it = ajaxKeys.iterator(); it.hasNext(); ) {
+ TreeRowKey treeRowKey = (TreeRowKey) it.next();
+ treeRowKey = parentRowKey(treeRowKey);
+
+ if (treeRowKey.depth() > 0) {
+ aKeys.add(treeRowKey);
+ }
+ }
+ ajaxKeys = aKeys;
+ }
+
+
+ if (ajaxKeys != null) {
List sortedKeys = new ArrayList(ajaxKeys.size());
sortedKeys.addAll(ajaxKeys);
Collections.sort(sortedKeys, treeRowKeyComparator);
@@ -400,6 +440,8 @@
TreeRowKey lastKey = null;
boolean nullRoot = false;
+ System.err.println("TreeRendererBase.encodeAjaxChildren()" + sortedKeys);
+
while (!nullRoot && ajaxKeysItr.hasNext()) {
TreeRowKey key = (TreeRowKey) ajaxKeysItr.next();
@@ -419,8 +461,32 @@
key = null;
}
+
+
+
tree.setRowKey(context, key);
-
+
+ if (key != null) {
+ int d = key.depth();
+ List components = new ArrayList(d);
+
+ for(Iterator iter = key.iterator(); iter.hasNext(); components.add(iter.next()));
+
+ while(!tree.isRowAvailable()) {
+
+ key = new ListRowKey(components.subList(0, d--));
+
+ tree.setRowKey(context, key);
+ }
+ }
+
+
+ //key.getPath().
+
+ //TODO: In case of deleted entry, try to update its parent
+ //ey.getSubPathIterator(fromIndex)
+
+
String treeClientId;
if (key == null) {
treeClientId = tree.getClientId(context);
16 years, 8 months
JBoss Rich Faces SVN: r3058 - in trunk: ui/tree/src/main/java/org/richfaces/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-09-21 13:31:32 -0400 (Fri, 21 Sep 2007)
New Revision: 3058
Modified:
trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java
trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
Log:
http://jira.jboss.com/jira/browse/RF-980
Quick fix - not sure it does all the things
Modified: trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java 2007-09-21 16:41:32 UTC (rev 3057)
+++ trunk/framework/api/src/main/java/org/richfaces/model/StackingTreeModel.java 2007-09-21 17:31:32 UTC (rev 3058)
@@ -76,8 +76,12 @@
return ((StackEntry) stackEntries.getLast()).model;
}
+ return null;
+ //FIXME: Maksim: Handle deleted entries correctly
+/*
throw new IllegalStateException(
"No tree element available or row key not set!");
+*/
}
public boolean isEmpty() {
@@ -222,9 +226,12 @@
if (isRowAvailable()) {
return null;
}
-
+ return null;
+ //FIXME: Maksim: Handle deleted entries correctly
+/*
throw new IllegalStateException(
"No tree element available or row key not set!");
+*/
}
/*
@@ -245,9 +252,12 @@
return true;
}
-
+ return true;
+ //FIXME: Maksim: Handle deleted entries correctly
+/*
throw new IllegalStateException(
"No tree element available or row key not set!");
+*/
}
protected StackingTreeModel getRoot() {
@@ -481,8 +491,12 @@
return lastEntry.model.rowData;
}
+ return null;
+ //FIXME: Maksim: Handle deleted entries correctly
+ /*
throw new IllegalStateException(
"No tree element available or row key not set!");
+ */
}
/*
Modified: trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java 2007-09-21 16:41:32 UTC (rev 3057)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java 2007-09-21 17:31:32 UTC (rev 3058)
@@ -22,7 +22,9 @@
package org.richfaces.component;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.Iterator;
+import java.util.List;
import java.util.Map;
import javax.faces.application.Application;
@@ -62,6 +64,7 @@
import org.richfaces.event.NodeSelectedListener;
import org.richfaces.event.TreeListenerEventsProducer;
import org.richfaces.model.AbstractTreeDataModel;
+import org.richfaces.model.ListRowKey;
import org.richfaces.model.StackingTreeModel;
import org.richfaces.model.StackingTreeModelProvider;
import org.richfaces.model.TreeDataModel;
@@ -473,10 +476,10 @@
return !SWITCH_CLIENT.equals(getSwitchType());
}
-
+
public void broadcast(FacesEvent event) throws AbortProcessingException {
super.broadcast(event);
-
+
DataComponentState componentState = getComponentState();
if (componentState instanceof FacesListener) {
FacesListener facesListener = (FacesListener) componentState;
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2007-09-21 16:41:32 UTC (rev 3057)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2007-09-21 17:31:32 UTC (rev 3058)
@@ -25,6 +25,7 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -49,6 +50,7 @@
import org.richfaces.component.state.TreeState;
import org.richfaces.component.state.TreeStateAdvisor;
import org.richfaces.model.LastElementAware;
+import org.richfaces.model.ListRowKey;
import org.richfaces.model.TreeRange;
import org.richfaces.model.TreeRowKey;
@@ -365,6 +367,28 @@
NSUtils.writeNameSpace(context, component);
}
+
+ private TreeRowKey parentRowKey(TreeRowKey key) {
+ //If depth is > 1, return parent row key
+ int depth = key.depth();
+ TreeRowKey rowKey = key;
+
+ if (depth > 1) {
+ List keyComps = new ArrayList(depth);
+
+ for(Iterator iter = key.iterator(); iter.hasNext(); ) {
+ Object next = iter.next();
+ if (iter.hasNext()) {
+ keyComps.add(next);
+ }
+ }
+
+ rowKey = new ListRowKey(keyComps);
+ }
+
+ return rowKey;
+ }
+
public void encodeAjaxChildren(FacesContext context, UIComponent component,
String path, Set ids, Set renderedAreas) throws IOException {
super.encodeAjaxChildren(context, component, path, ids, renderedAreas);
@@ -392,7 +416,23 @@
try {
Set ajaxKeys = tree.getAllAjaxKeys();
+
if (ajaxKeys != null) {
+ Set aKeys = new HashSet();
+
+ for(Iterator it = ajaxKeys.iterator(); it.hasNext(); ) {
+ TreeRowKey treeRowKey = (TreeRowKey) it.next();
+ treeRowKey = parentRowKey(treeRowKey);
+
+ if (treeRowKey.depth() > 0) {
+ aKeys.add(treeRowKey);
+ }
+ }
+ ajaxKeys = aKeys;
+ }
+
+
+ if (ajaxKeys != null) {
List sortedKeys = new ArrayList(ajaxKeys.size());
sortedKeys.addAll(ajaxKeys);
Collections.sort(sortedKeys, treeRowKeyComparator);
@@ -400,6 +440,8 @@
TreeRowKey lastKey = null;
boolean nullRoot = false;
+ System.err.println("TreeRendererBase.encodeAjaxChildren()" + sortedKeys);
+
while (!nullRoot && ajaxKeysItr.hasNext()) {
TreeRowKey key = (TreeRowKey) ajaxKeysItr.next();
@@ -419,8 +461,32 @@
key = null;
}
+
+
+
tree.setRowKey(context, key);
-
+
+ if (key != null) {
+ int d = key.depth();
+ List components = new ArrayList(d);
+
+ for(Iterator iter = key.iterator(); iter.hasNext(); components.add(iter.next()));
+
+ while(!tree.isRowAvailable()) {
+
+ key = new ListRowKey(components.subList(0, d--));
+
+ tree.setRowKey(context, key);
+ }
+ }
+
+
+ //key.getPath().
+
+ //TODO: In case of deleted entry, try to update its parent
+ //ey.getSubPathIterator(fromIndex)
+
+
String treeClientId;
if (key == null) {
treeClientId = tree.getClientId(context);
16 years, 8 months
JBoss Rich Faces SVN: r3057 - in trunk/ui/modal-panel/src/main/java/org/richfaces: renderkit and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-09-21 12:41:32 -0400 (Fri, 21 Sep 2007)
New Revision: 3057
Modified:
trunk/ui/modal-panel/src/main/java/org/richfaces/component/UIModalPanel.java
trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java
Log:
http://jira.jboss.com/jira/browse/RF-959
Modified: trunk/ui/modal-panel/src/main/java/org/richfaces/component/UIModalPanel.java
===================================================================
--- trunk/ui/modal-panel/src/main/java/org/richfaces/component/UIModalPanel.java 2007-09-21 16:01:43 UTC (rev 3056)
+++ trunk/ui/modal-panel/src/main/java/org/richfaces/component/UIModalPanel.java 2007-09-21 16:41:32 UTC (rev 3057)
@@ -26,6 +26,7 @@
import javax.faces.component.UIInput;
import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
import org.richfaces.skin.Skin;
import org.richfaces.skin.SkinFactory;
@@ -46,6 +47,9 @@
* Shadow depth.
*/
private static final int SHADOW_DEPTH = 4;
+
+ private boolean resizeable = true;
+ private boolean resizeableSet = false;
public abstract int getWidth();
public abstract int getHeight();
@@ -59,11 +63,9 @@
public abstract void setMinWidth(int width);
public abstract void setMinHeight(int height);
- public abstract boolean isResizeable();
public abstract boolean isMoveable();
public abstract boolean isAutosized();
- public abstract void setResizeable(boolean resizeable);
public abstract void setMoveable(boolean moveable);
public abstract void setAutosized(boolean autosized);
@@ -130,4 +132,35 @@
public void setVisualOptions(Map visualOptions) {
this.visualOptions = visualOptions;
}
+
+ /**
+ * if "true" there is possibility to change component size
+ * Setter for resizeable
+ * @param resizeable - new value
+ */
+ public void setResizeable(boolean __resizeable) {
+ this.resizeable = __resizeable;
+ this.resizeableSet = true;
+ }
+
+ /**
+ * if "true" there is possibility to change component size
+ * Getter for resizeable
+ * @return resizeable value from local variable or value bindings
+ */
+ public boolean isResizeable() {
+ if (this.resizeableSet) {
+ return this.resizeable;
+ }
+ ValueBinding vb = getValueBinding("resizeable");
+ if (vb != null) {
+ Boolean value = (Boolean) vb.getValue(getFacesContext());
+ if (null == value) {
+ return !isAutosized();
+ }
+ return (value.booleanValue());
+ } else {
+ return !isAutosized();
+ }
+ }
}
Modified: trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java
===================================================================
--- trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java 2007-09-21 16:01:43 UTC (rev 3056)
+++ trunk/ui/modal-panel/src/main/java/org/richfaces/renderkit/ModalPanelRendererBase.java 2007-09-21 16:41:32 UTC (rev 3057)
@@ -88,7 +88,7 @@
//TODO nick - add messages
public void checkOptions(FacesContext context, UIModalPanel panel) {
if (panel.isAutosized() && panel.isResizeable()) {
- throw new IllegalArgumentException();
+ throw new IllegalArgumentException("Autosized modal panel can't be resizeable.");
}
if (panel.getMinHeight() != -1) {
if (panel.getMinHeight() < sizeA) {
16 years, 8 months
JBoss Rich Faces SVN: r3056 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-09-21 12:01:43 -0400 (Fri, 21 Sep 2007)
New Revision: 3056
Modified:
trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml
trunk/docs/userguide/en/src/main/docbook/included/form.xml
trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml
trunk/docs/userguide/en/src/main/docbook/included/message.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/page.xml
trunk/docs/userguide/en/src/main/docbook/included/panel.xml
trunk/docs/userguide/en/src/main/docbook/included/push.xml
trunk/docs/userguide/en/src/main/docbook/included/region.xml
trunk/docs/userguide/en/src/main/docbook/included/spacer.xml
trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
trunk/docs/userguide/en/src/main/docbook/included/support.xml
trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
Log:
http://jira.jboss.com/jira/browse/RF-769 Added commas to attributes by E. Hvasko
Modified: trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -75,7 +75,7 @@
a good place for update the list of re-rendered components, for example.
Ajax Listener is not invoked for non-Ajax request and when RichFaces works in "Ajax Request generates
Non-Ajax Response" mode. Therefore, Ajax Listener invocation is a good indicator that Ajax response is going to be processed.
-Attribute 'type' defines the fully qualified Java class name for listener. This class should implement org.ajax4jsf.framework.ajax.AjaxListener
+Attribute "type" defines the fully qualified Java class name for listener. This class should implement org.ajax4jsf.framework.ajax.AjaxListener
interface. You can access to the source of the event (Ajax component) using event.getSource() call.
</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/form.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/form.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/form.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -57,7 +57,7 @@
<property>"true"</property>
</emphasis>, it becomes possible to set Ajax submission way for any components inside, i.e. not a page URL is used as an <emphasis >
<property>"action"</property>
- </emphasis> attribute, but the javascript:A4J.AJAX.Submit(...) call. In this case, rendering is defined as reRender=list of Ids for the form element itself.</para>
+ </emphasis> attribute, but the javascript:A4J.AJAX.Submit(...) call. In this case, rendering is defined as "reRender"=list of Ids for the form element itself.</para>
<para>Example</para>
<programlisting role="XML"><![CDATA[<a4j:form id="helloForm" ajaxSubmit="true" reRender="table">
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -68,7 +68,7 @@
<section>
<title>Key attributes and ways of usage</title>
<para> As the component uses Ajax request to get data from server - it has all common Ajax
- Action attributes. Hence, action and actionListener can be invoked, and reRendering some parts of
+ Action attributes. Hence, "action" and "actionListener" can be invoked, and reRendering some parts of
the page fired after calling function. </para>
<para> When using the <emphasis role="bold">
<property><a4j:jsFunction></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/mediaOutput.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -84,7 +84,7 @@
<para>As it was shown in the example above there are two main components:</para>
<itemizedlist>
<listitem>
- createContent specifies a method accepting 2 parameters. The first (of java.io.OutputStream type) defines a stream, where any binary data is output. The second (of java.lang.Object type) contains deserialized object with data specified in the <emphasis >
+ "createContent" specifies a method accepting 2 parameters. The first (of java.io.OutputStream type) defines a stream, where any binary data is output. The second (of java.lang.Object type) contains deserialized object with data specified in the <emphasis >
<property>"value"</property>
</emphasis> attribute.
</listitem>
Modified: trunk/docs/userguide/en/src/main/docbook/included/message.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/message.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/message.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -99,7 +99,7 @@
<para> The following example shows different variants of customization of the component. The
attribute 'passedLabel' is used for definition the label to be displayed when no message
appears. But the message component isn't appears before the form submission even with passed
- state defined (on initial rendering).Boolean attribute 'showSummary' defines possibility to
+ state defined (on initial rendering).Boolean attribute "showSummary" defines possibility to
display summary portion of displayed messages. The facets "errorMarker" and 'passedMarker' set
corresponding images for markers. </para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -249,11 +249,11 @@
>RichFaces Development Forum</ulink>.</para>
<para> There is a possibility to restore of the previous component state on a page (including
position on the screen) after submitting and reloading. The modalPanel has some special
- attributes like 'showWhenRendered' and 'keepVisualState'. </para>
- <para> showWhenRendered - This boolean attribute is used if modalPanel should be rendered after
+ attributes like "showWhenRendered" and "keepVisualState". </para>
+ <para> "showWhenRendered" - This boolean attribute is used if modalPanel should be rendered after
first page loading. </para>
- <para> keepVisualState - Used if modalPanel should save state after submission. If
- keepVisualState=true then parameters which modalPanel has during opening should be submitted
+ <para> "keepVisualState" - Used if modalPanel should save state after submission. If
+ "keepVisualState"=true then parameters which modalPanel has during opening should be submitted
and passed to new page. </para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/outputPanel.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -77,9 +77,9 @@
</h:panelGrid>
</a4j:outputPanel>
]]></programlisting>
- <para>In addition to the areas directly indicated in reRender attribute of Ajax components, <emphasis role="bold">
+ <para>In addition to the areas directly indicated in "reRender" attribute of Ajax components, <emphasis role="bold">
<property><a4j:outputPanel></property>
- </emphasis> allows to update a part of a page basing on its own flag. The flag is defined by the ajaxRendered attribute. The flag is commonly used when a part of a page must be updated or can be updated on any response.</para>
+ </emphasis> allows to update a part of a page basing on its own flag. The flag is defined by the "ajaxRendered" attribute. The flag is commonly used when a part of a page must be updated or can be updated on any response.</para>
<para><emphasis role="bold">Example:</emphasis></para>
<programlisting role="XML"><![CDATA[<a4j:outputPanel ajaxRendered="true">
<h:messages/>
@@ -116,7 +116,7 @@
]]></programlisting>
<para>As you see, the code is very similar to the one shown above, but <emphasis ><property>"reRender "</property></emphasis> attribute refers directly to the updating panelGrid and not to the framing outputPanel, and it's more semantically correct.</para>
<para><emphasis role="bold"><property><a4j:outPanel></property></emphasis> should be used for non-JSF component part framing, which is to be updated on Ajax response, as Ajax4jsf specifies the list of updating areas as a list of an existing JSF component. </para>
- <para>On default non-JSF context isn't saved in a component tree, but is rendered anew every time. To accelerate the processing speed and Ajax response input speed, Ajax4jsf saves non-JSF context in a component tree on default. This option could be canceled by keepTransient attribute that cancels transient flag forced setting for child components. This flag setting keeps the current value set by child components.</para>
+ <para>On default non-JSF context isn't saved in a component tree, but is rendered anew every time. To accelerate the processing speed and Ajax response input speed, Ajax4jsf saves non-JSF context in a component tree on default. This option could be canceled by "keepTransient" attribute that cancels transient flag forced setting for child components. This flag setting keeps the current value set by child components.</para>
<para>Note: In JSF 1.1 implementation and lower, where non-JSF context should be framed with the "f:verbatim" attribute, <emphasis role="bold">
<property><a4j:outputPanel></property>
</emphasis> doesn't improve this JSF implementation option in any way, so you still have to use this tag where it's necessary without Ajax4jsf usage. </para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/page.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -82,7 +82,7 @@
</emphasis> on a page round the Ajax updatable area. In the last versions of both frameworks the problem is successfully fixed and no <emphasis role="bold"><property><a4j:page></property></emphasis> usage is required.</para>
<para>The component is rendered as a full HTML page template (it was shown in the example). The "<emphasis >
<property>head</property>
- </emphasis>" section is defined with the help of the corresponding facet with the name="head" and also there is an attribute with the same name for contentType definition.</para>
+ </emphasis>" section is defined with the help of the corresponding facet with the name="head" and also there is an attribute with the same name for "contentType" definition.</para>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -142,15 +142,15 @@
<para>As it has been mentioned <link linkend="panel">above</link>, the component is mostly used for a page style definition,
hence the main attributes are style ones.</para>
<itemizedlist>
- <listitem> styleClass and style </listitem>
- <listitem> headerClass and headerStyle </listitem>
- <listitem> bodyClass and bodyStyle </listitem>
+ <listitem> "styleClass" and "style" </listitem>
+ <listitem> "headerClass" and "headerStyle" </listitem>
+ <listitem> "bodyClass" and "bodyStyle" </listitem>
</itemizedlist>
<para>Moreover, to add e.g. some JavaScript effects, events defined on it are used.</para>
<itemizedlist>
- <listitem> onmouseover </listitem>
- <listitem> onclick </listitem>
- <listitem> onmouseout </listitem>
+ <listitem> "onmouseover" </listitem>
+ <listitem> "onclick" </listitem>
+ <listitem> "onmouseout" </listitem>
<listitem> etc. </listitem>
</itemizedlist>
Modified: trunk/docs/userguide/en/src/main/docbook/included/push.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/push.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/push.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -57,7 +57,7 @@
There are some attributes which allows to customize of the component behaviour:
</para>
<para>
-'interval' - Interval (in ms) for call push requests. Default value 1000 (1 sec).
+"interval" - Interval (in ms) for call push requests. Default value 1000 (1 sec).
<!-- If "0" a connection is permanent. Also you can set different value for parameter 'timeout'. -->
</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/region.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/region.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/region.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -85,7 +85,7 @@
<!--..Some content that will be decoded on server after Ajax request.-->
</a4j:region >]]></programlisting>
<para>Therefore, the external region is decoded for the "link1" and the internal one is decoded for the "link2".</para>
- <para>Ajax4jsf allows setting Ajax responses rendering directly basing on component tree nodes without referring to the JSP (XHTML) page code. It could be defined by selfRendered attribute setting to <emphasis><property>"true"</property></emphasis> on <emphasis role="bold">
+ <para>Ajax4jsf allows setting Ajax responses rendering directly basing on component tree nodes without referring to the JSP (XHTML) page code. It could be defined by "selfRendered" attribute setting to <emphasis><property>"true"</property></emphasis> on <emphasis role="bold">
<property><a4j:region></property>
</emphasis> and could help considerably speed up a response output. However, this rapid processing could cause missing of transient components that present on view and don't come into a component tree as well as omitting of <emphasis role="bold">
<property><a4j:outputPanel></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/spacer.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/spacer.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/spacer.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -71,8 +71,8 @@
<property><rich:spacer></property>
</emphasis> is a simple layout component which represents a transparent
<property>spacer</property>. Thus, the main attributes that define its style are <emphasis>
- <property>style</property>
- </emphasis> and <emphasis><property>styleClass</property>.</emphasis></para>
+ <property>"style"</property>
+ </emphasis> and <emphasis><property>"styleClass"</property>.</emphasis></para>
<para>In addition, the attributes are responsible for the component size: <emphasis>
<property>"width"</property>
</emphasis> and <emphasis><property>"height"</property>.</emphasis></para>
@@ -94,9 +94,9 @@
own CSS (replacing in the result properties defined in a skin with your own).</para>
<para>To define appearance of the particular <property>spacer</property>, it's possible
to write your own CSS classes and properties in the component style attributes
- (<emphasis><property>style</property>, </emphasis>
+ (<emphasis><property>"style"</property>, </emphasis>
<emphasis>
- <property>styleClass</property>
+ <property>"styleClass"</property>
</emphasis>) modifying component property.</para>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -193,7 +193,7 @@
<section>
<para>
There is possibility to define what be shown if the autocomplete returns empty list.
-Attribute "nothingLabel" or facet with the same name could be used for it.
+Attribute "nothingLabel" or facet with the same name could be used for it.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -102,7 +102,7 @@
<para><emphasis ><property>"ajaxSingle"</property></emphasis> is an attribute that allows submission on the server only component sending a request, as if the component presented on a separate form.
</para>
- <para><emphasis ><property>"limitToList"</property></emphasis> is an attribute that allows to limit areas, which are updated after the responses. Only these components defined in the reRender attribute are updated. </para>
+ <para><emphasis ><property>"limitToList"</property></emphasis> is an attribute that allows to limit areas, which are updated after the responses. Only these components defined in the "reRender" attribute are updated. </para>
</listitem>
</itemizedlist></para>
<para><emphasis role="bold">Example 1:</emphasis></para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -167,9 +167,9 @@
<emphasis
><property>style class</property></emphasis> of a generated component, i.e.
to redefine at once all <property>toolBarGroups</property> appearance on a page, redefine this class in your CSS.</para>
- <para>The component also has the standard attribute style and <emphasis
+ <para>The component also has the standard attribute "style" and <emphasis
-><property>style class</property></emphasis> that could redefine an
+><property>"style class"</property></emphasis> that could redefine an
appearance of particular component variants.
</para>
<para>It's necessary to define a class according to the corresponding name, so as an
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-09-21 15:55:29 UTC (rev 3055)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-09-21 16:01:43 UTC (rev 3056)
@@ -72,7 +72,7 @@
<title>Details of Usage</title>
<para>As it has been mentioned <link linkend="tree">above</link> the tree component allows to render any tree-like structure
of data.</para>
- <para>A bean property is passed into a tree <property>value</property> attribute. The property
+ <para>A bean property is passed into a tree <property>"value"</property> attribute. The property
keeps the structure of a org.richfaces.component.TreeNode type (you could have a look at this
interface description in the <ulink
url="http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..."
16 years, 8 months