Author: sergeyhalipov
Date: 2007-10-03 10:20:14 -0400 (Wed, 03 Oct 2007)
New Revision: 3225
Modified:
trunk/ui/togglePanel/src/main/config/component/togglePanel.xml
trunk/ui/togglePanel/src/main/java/org/richfaces/component/UITogglePanel.java
trunk/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/TogglePanelRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-1015
Modified: trunk/ui/togglePanel/src/main/config/component/togglePanel.xml
===================================================================
--- trunk/ui/togglePanel/src/main/config/component/togglePanel.xml 2007-10-03 13:05:34 UTC
(rev 3224)
+++ trunk/ui/togglePanel/src/main/config/component/togglePanel.xml 2007-10-03 14:20:14 UTC
(rev 3225)
@@ -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: trunk/ui/togglePanel/src/main/java/org/richfaces/component/UITogglePanel.java
===================================================================
---
trunk/ui/togglePanel/src/main/java/org/richfaces/component/UITogglePanel.java 2007-10-03
13:05:34 UTC (rev 3224)
+++
trunk/ui/togglePanel/src/main/java/org/richfaces/component/UITogglePanel.java 2007-10-03
14:20:14 UTC (rev 3225)
@@ -63,11 +63,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:
trunk/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/TogglePanelRenderer.java
===================================================================
---
trunk/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/TogglePanelRenderer.java 2007-10-03
13:05:34 UTC (rev 3224)
+++
trunk/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/TogglePanelRenderer.java 2007-10-03
14:20:14 UTC (rev 3225)
@@ -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;