Author: sergeyhalipov
Date: 2007-10-03 12:45:17 -0400 (Wed, 03 Oct 2007)
New Revision: 3234
Modified:
branches/3.1.x/ui/togglePanel/src/main/config/component/togglePanel.xml
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/component/UITogglePanel.java
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/TogglePanelRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-1015
Modified: branches/3.1.x/ui/togglePanel/src/main/config/component/togglePanel.xml
===================================================================
--- branches/3.1.x/ui/togglePanel/src/main/config/component/togglePanel.xml 2007-10-03
16:33:40 UTC (rev 3233)
+++ branches/3.1.x/ui/togglePanel/src/main/config/component/togglePanel.xml 2007-10-03
16:45:17 UTC (rev 3234)
@@ -179,7 +179,7 @@
</description>
</property>
- <property required="false" el="true"
elonly="true">
+ <property required="false" el="true"
elonly="false">
<name>switchToState</name>
<classname>java.lang.String</classname>
<description>Contains one of the facets names where target togglePanel is
switched to
Modified:
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/component/UITogglePanel.java
===================================================================
---
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/component/UITogglePanel.java 2007-10-03
16:33:40 UTC (rev 3233)
+++
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/component/UITogglePanel.java 2007-10-03
16:45:17 UTC (rev 3234)
@@ -57,11 +57,6 @@
List stateOrderList = getStateOrderList();
if (stateName != null) {
- int index = stateOrderList.indexOf(stateName);
- if (index == -1) {
- throw new IllegalArgumentException("State " + stateName + " is not in
order list!");
- }
-
return stateName;
} else {
//switch to next state
Modified:
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/TogglePanelRenderer.java
===================================================================
---
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/TogglePanelRenderer.java 2007-10-03
16:33:40 UTC (rev 3233)
+++
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/TogglePanelRenderer.java 2007-10-03
16:45:17 UTC (rev 3234)
@@ -70,7 +70,7 @@
UIComponent child = (UIComponent) togglePanel.getFacet(facetName);
if (child == null) {
- throw new FacesException("Facet with name: " + facetName + " mentioned
in stateOrder not found!");
+ throw new FacesException("Facet with name: " + facetName + " not
found!");
}
return child;
@@ -172,4 +172,4 @@
panel.setValue(value);
}
}
-}
\ No newline at end of file
+}