Author: Alex.Kolonitsky
Date: 2010-12-09 09:50:01 -0500 (Thu, 09 Dec 2010)
New Revision: 20480
Modified:
trunk/core/api/src/main/java/org/ajax4jsf/context/AjaxContext.java
trunk/core/impl/src/main/java/org/ajax4jsf/context/AjaxContextImpl.java
trunk/ui/common/ui/src/main/java/org/richfaces/renderkit/AjaxChildrenRenderer.java
trunk/ui/common/ui/src/main/java/org/richfaces/renderkit/util/AjaxRendererUtils.java
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenu.java
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenuItem.java
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanel.java
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTooltip.java
trunk/ui/output/ui/src/main/java/org/richfaces/component/UIPanelMenu.java
trunk/ui/output/ui/src/main/java/org/richfaces/component/UIPanelMenuItem.java
trunk/ui/output/ui/src/main/java/org/richfaces/component/UITogglePanel.java
trunk/ui/output/ui/src/main/java/org/richfaces/component/UITooltip.java
trunk/ui/output/ui/src/main/resources/META-INF/pn.faces-config.xml
trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml
Log:
RF-9773 rich:tabPanel - replace attribute limitToList with disableImplicitRender
Modified: trunk/core/api/src/main/java/org/ajax4jsf/context/AjaxContext.java
===================================================================
--- trunk/core/api/src/main/java/org/ajax4jsf/context/AjaxContext.java 2010-12-09 14:40:27
UTC (rev 20479)
+++ trunk/core/api/src/main/java/org/ajax4jsf/context/AjaxContext.java 2010-12-09 14:50:01
UTC (rev 20480)
@@ -47,7 +47,7 @@
private static final String DEFAULT_CONTEXT_CLASS =
"org.ajax4jsf.context.AjaxContextImpl";
private static Map<ClassLoader, Class<? extends AjaxContext>>
ajaxContextClasses =
new HashMap<ClassLoader, Class<? extends AjaxContext>>();
- private boolean limitToList;
+ private boolean disableImplicitRender;
protected AjaxContext() { }
@@ -125,12 +125,12 @@
public abstract void setSubmittedRegionClientId(String submittedClientId);
- public boolean isLimitToList() {
- return limitToList;
+ public boolean isDisableImplicitRender() {
+ return disableImplicitRender;
}
- public void setLimitToList(boolean limitToList) {
- this.limitToList = limitToList;
+ public void setDisableImplicitRender(boolean disableImplicitRender) {
+ this.disableImplicitRender = disableImplicitRender;
}
/**
Modified: trunk/core/impl/src/main/java/org/ajax4jsf/context/AjaxContextImpl.java
===================================================================
--- trunk/core/impl/src/main/java/org/ajax4jsf/context/AjaxContextImpl.java 2010-12-09
14:40:27 UTC (rev 20479)
+++ trunk/core/impl/src/main/java/org/ajax4jsf/context/AjaxContextImpl.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -302,8 +302,8 @@
}
// Is that component limit to list ?
- if (Boolean.TRUE.equals(component.getAttributes().get("limitToList")))
{
- setLimitToList(true);
+ if
(Boolean.TRUE.equals(component.getAttributes().get("disableImplicitRender"))) {
+ setDisableImplicitRender(true);
}
}
Modified:
trunk/ui/common/ui/src/main/java/org/richfaces/renderkit/AjaxChildrenRenderer.java
===================================================================
---
trunk/ui/common/ui/src/main/java/org/richfaces/renderkit/AjaxChildrenRenderer.java 2010-12-09
14:40:27 UTC (rev 20479)
+++
trunk/ui/common/ui/src/main/java/org/richfaces/renderkit/AjaxChildrenRenderer.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -72,7 +72,7 @@
// Do not check children if we have no id to render under naming
// container.
- if (AjaxContext.getCurrentInstance(context).isLimitToList() &&
noIdUnderPath(path, ids)) {
+ if (AjaxContext.getCurrentInstance(context).isDisableImplicitRender()
&& noIdUnderPath(path, ids)) {
return;
}
}
@@ -113,7 +113,7 @@
if (component.isRendered()) { // skip not-rendered components.
boolean found = false;
- boolean limitToList =
AjaxContext.getCurrentInstance(context).isLimitToList();
+ boolean disableImplicitRender =
AjaxContext.getCurrentInstance(context).isDisableImplicitRender();
String elementId = component.getId();
String absoluteId = currentPath + elementId;
@@ -133,12 +133,12 @@
}
//
- if (!found && limitToList && (component instanceof
NamingContainer)
+ if (!found && disableImplicitRender && (component instanceof
NamingContainer)
&& noIdUnderPath(absoluteId + NamingContainer.SEPARATOR_CHAR,
ids)) {
return;
}
- if (!found && !limitToList && (component instanceof
AjaxOutput)) {
+ if (!found && !disableImplicitRender && (component instanceof
AjaxOutput)) {
if (((AjaxOutput) component).isAjaxRendered()) {
// renderChild(context, element);
Modified:
trunk/ui/common/ui/src/main/java/org/richfaces/renderkit/util/AjaxRendererUtils.java
===================================================================
---
trunk/ui/common/ui/src/main/java/org/richfaces/renderkit/util/AjaxRendererUtils.java 2010-12-09
14:40:27 UTC (rev 20479)
+++
trunk/ui/common/ui/src/main/java/org/richfaces/renderkit/util/AjaxRendererUtils.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -359,7 +359,7 @@
// options.put("parameters", parameters);
// }
// // parameter to render only current list of areas.
-//// if (isAjaxLimitToList(uiComponent)) {
+//// if (isAjaxDisableImplicitRender(uiComponent)) {
//// Set<? extends Object> ajaxAreas = getAjaxAreas(uiComponent);
//// Set<String> areasIds = new HashSet<String>();
//// if (null != ajaxAreas) {
@@ -507,7 +507,7 @@
// Set ajaxAreas = getAjaxAreas(uiComponent);
// onClick.append(',');
// // parameter to render only current list of areas.
- // if (isAjaxLimitToList(uiComponent) && ajaxAreas != null &&
+ // if (isAjaxDisableImplicitRender(uiComponent) && ajaxAreas != null
&&
// ajaxAreas.size() > 0)
// {
// onClick.append('[');
Modified: trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenu.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenu.java 2010-12-09
14:40:27 UTC (rev 20479)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenu.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -192,7 +192,7 @@
public abstract boolean isBypassUpdates();
- public abstract boolean isLimitToList();
+ public abstract boolean isDisableImplicitRender();
public abstract Object getData();
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenuItem.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenuItem.java 2010-12-09
14:40:27 UTC (rev 20479)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractPanelMenuItem.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -114,7 +114,7 @@
public abstract boolean isBypassUpdates();
- public abstract boolean isLimitToList();
+ public abstract boolean isDisableImplicitRender();
public abstract Object getData();
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanel.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanel.java 2010-12-09
14:40:27 UTC (rev 20479)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanel.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -564,7 +564,7 @@
public abstract boolean isBypassUpdates();
- public abstract boolean isLimitToList();
+ public abstract boolean isDisableImplicitRender();
public abstract boolean isCycledSwitching();
Modified: trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTooltip.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTooltip.java 2010-12-09
14:40:27 UTC (rev 20479)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTooltip.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -88,7 +88,7 @@
public abstract boolean isBypassUpdates();
- public abstract boolean isLimitToList();
+ public abstract boolean isDisableImplicitRender();
public abstract Object getData();
Modified: trunk/ui/output/ui/src/main/java/org/richfaces/component/UIPanelMenu.java
===================================================================
--- trunk/ui/output/ui/src/main/java/org/richfaces/component/UIPanelMenu.java 2010-12-09
14:40:27 UTC (rev 20479)
+++ trunk/ui/output/ui/src/main/java/org/richfaces/component/UIPanelMenu.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -42,7 +42,7 @@
activeItem,
itemChangeListener,
bypassUpdates,
- limitToList,
+ disableImplicitRender,
data,
status,
execute,
@@ -121,12 +121,12 @@
getStateHelper().put(PropertyKeys.bypassUpdates, bypassUpdates);
}
- public boolean isLimitToList() {
- return
Boolean.valueOf(String.valueOf(getStateHelper().eval(PropertyKeys.limitToList)));
+ public boolean isDisableImplicitRender() {
+ return
Boolean.valueOf(String.valueOf(getStateHelper().eval(PropertyKeys.disableImplicitRender)));
}
- public void setLimitToList(boolean limitToList) {
- getStateHelper().put(PropertyKeys.limitToList, limitToList);
+ public void setDisableImplicitRender(boolean disableImplicitRender) {
+ getStateHelper().put(PropertyKeys.disableImplicitRender, disableImplicitRender);
}
public Object getData() {
Modified: trunk/ui/output/ui/src/main/java/org/richfaces/component/UIPanelMenuItem.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/UIPanelMenuItem.java 2010-12-09
14:40:27 UTC (rev 20479)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/UIPanelMenuItem.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -37,7 +37,7 @@
name,
disabled,
bypassUpdates,
- limitToList,
+ disableImplicitRender,
data,
status,
execute,
@@ -84,12 +84,12 @@
getStateHelper().put(PropertyKeys.bypassUpdates, bypassUpdates);
}
- public boolean isLimitToList() {
- return
Boolean.valueOf(String.valueOf(getStateHelper().eval(PropertyKeys.limitToList)));
+ public boolean isDisableImplicitRender() {
+ return
Boolean.valueOf(String.valueOf(getStateHelper().eval(PropertyKeys.disableImplicitRender)));
}
- public void setLimitToList(boolean limitToList) {
- getStateHelper().put(PropertyKeys.limitToList, limitToList);
+ public void setDisableImplicitRender(boolean disableImplicitRender) {
+ getStateHelper().put(PropertyKeys.disableImplicitRender, disableImplicitRender);
}
public Object getData() {
Modified: trunk/ui/output/ui/src/main/java/org/richfaces/component/UITogglePanel.java
===================================================================
--- trunk/ui/output/ui/src/main/java/org/richfaces/component/UITogglePanel.java 2010-12-09
14:40:27 UTC (rev 20479)
+++ trunk/ui/output/ui/src/main/java/org/richfaces/component/UITogglePanel.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -33,7 +33,7 @@
public enum PropertyKeys {
switchType,
bypassUpdates,
- limitToList,
+ disableImplicitRender,
cycledSwitching,
data,
status,
@@ -59,12 +59,12 @@
getStateHelper().put(PropertyKeys.bypassUpdates, bypassUpdates);
}
- public boolean isLimitToList() {
- return
Boolean.valueOf(String.valueOf(getStateHelper().eval(PropertyKeys.limitToList)));
+ public boolean isDisableImplicitRender() {
+ return
Boolean.valueOf(String.valueOf(getStateHelper().eval(PropertyKeys.disableImplicitRender)));
}
- public void setLimitToList(boolean limitToList) {
- getStateHelper().put(PropertyKeys.limitToList, limitToList);
+ public void setDisableImplicitRender(boolean disableImplicitRender) {
+ getStateHelper().put(PropertyKeys.disableImplicitRender, disableImplicitRender);
}
public boolean isCycledSwitching() {
Modified: trunk/ui/output/ui/src/main/java/org/richfaces/component/UITooltip.java
===================================================================
--- trunk/ui/output/ui/src/main/java/org/richfaces/component/UITooltip.java 2010-12-09
14:40:27 UTC (rev 20479)
+++ trunk/ui/output/ui/src/main/java/org/richfaces/component/UITooltip.java 2010-12-09
14:50:01 UTC (rev 20480)
@@ -49,7 +49,7 @@
showEvent,
verticalOffset,
bypassUpdates,
- limitToList,
+ disableImplicitRender,
data,
status,
execute,
@@ -176,12 +176,12 @@
getStateHelper().put(PropertyKeys.bypassUpdates, bypassUpdates);
}
- public boolean isLimitToList() {
- return
Boolean.valueOf(String.valueOf(getStateHelper().eval(PropertyKeys.limitToList)));
+ public boolean isDisableImplicitRender() {
+ return
Boolean.valueOf(String.valueOf(getStateHelper().eval(PropertyKeys.disableImplicitRender)));
}
- public void setLimitToList(boolean limitToList) {
- getStateHelper().put(PropertyKeys.limitToList, limitToList);
+ public void setDisableImplicitRender(boolean disableImplicitRender) {
+ getStateHelper().put(PropertyKeys.disableImplicitRender, disableImplicitRender);
}
public Object getData() {
Modified: trunk/ui/output/ui/src/main/resources/META-INF/pn.faces-config.xml
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/pn.faces-config.xml 2010-12-09 14:40:27
UTC (rev 20479)
+++ trunk/ui/output/ui/src/main/resources/META-INF/pn.faces-config.xml 2010-12-09 14:50:01
UTC (rev 20480)
@@ -889,7 +889,7 @@
</property>
<property>
<description></description>
- <property-name>limitToList</property-name>
+ <property-name>disableImplicitRender</property-name>
<property-class>boolean</property-class>
</property>
<property>
@@ -940,7 +940,7 @@
</property>
<property>
<description></description>
- <property-name>limitToList</property-name>
+ <property-name>disableImplicitRender</property-name>
<property-class>boolean</property-class>
</property>
<property>
@@ -1000,7 +1000,7 @@
</property>
<property>
<description></description>
- <property-name>limitToList</property-name>
+ <property-name>disableImplicitRender</property-name>
<property-class>boolean</property-class>
</property>
<property>
@@ -1245,7 +1245,7 @@
</property>
<property>
<description></description>
- <property-name>limitToList</property-name>
+ <property-name>disableImplicitRender</property-name>
<property-class>boolean</property-class>
</property>
<property>
@@ -1615,7 +1615,7 @@
</property>
<property>
<description></description>
- <property-name>limitToList</property-name>
+ <property-name>disableImplicitRender</property-name>
<property-class>boolean</property-class>
</property>
<property>
@@ -1763,7 +1763,7 @@
</property>
<property>
<description></description>
- <property-name>limitToList</property-name>
+ <property-name>disableImplicitRender</property-name>
<property-class>boolean</property-class>
</property>
<property>
Modified: trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml 2010-12-09 14:40:27 UTC
(rev 20479)
+++ trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml 2010-12-09 14:50:01 UTC
(rev 20480)
@@ -1040,7 +1040,7 @@
</attribute>
<attribute>
<description></description>
- <name>limitToList</name>
+ <name>disableImplicitRender</name>
<type>boolean</type>
</attribute>
<attribute>
@@ -1290,7 +1290,7 @@
</attribute>
<attribute>
<description></description>
- <name>limitToList</name>
+ <name>disableImplicitRender</name>
<type>boolean</type>
</attribute>
<attribute>
@@ -1440,7 +1440,7 @@
</attribute>
<attribute>
<description></description>
- <name>limitToList</name>
+ <name>disableImplicitRender</name>
<type>boolean</type>
</attribute>
<attribute>
@@ -1770,7 +1770,7 @@
</attribute>
<attribute>
<description></description>
- <name>limitToList</name>
+ <name>disableImplicitRender</name>
<type>boolean</type>
</attribute>
<attribute>
@@ -1895,7 +1895,7 @@
</attribute>
<attribute>
<description></description>
- <name>limitToList</name>
+ <name>disableImplicitRender</name>
<type>boolean</type>
</attribute>
<attribute>
@@ -2106,7 +2106,7 @@
</attribute>
<attribute>
<description></description>
- <name>limitToList</name>
+ <name>disableImplicitRender</name>
<type>boolean</type>
</attribute>
<attribute>
@@ -2397,7 +2397,7 @@
</attribute>
<attribute>
<description></description>
- <name>limitToList</name>
+ <name>disableImplicitRender</name>
<type>boolean</type>
</attribute>
<attribute>