Author: a.izobov
Date: 2007-06-21 10:25:24 -0400 (Thu, 21 Jun 2007)
New Revision: 1255
Modified:
trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-90 fixed
Modified:
trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
===================================================================
---
trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java 2007-06-21
14:19:33 UTC (rev 1254)
+++
trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java 2007-06-21
14:25:24 UTC (rev 1255)
@@ -113,7 +113,7 @@
if(UITogglePanel.CLIENT_METHOD.equals(switchType)) {
// Client
String panelId = panel.getClientId(context);
- String switchToDivId = getDivId(panelId, tgComp.getSwitchToState());
+ String switchToDivId = tgComp.getSwitchToState();
onClick.append("TogglePanelManager.toggleOnClient('")
.append(panelId)
.append("',")
@@ -151,14 +151,6 @@
return onClick.toString();
}
- private String getDivId(String panelId, String state) {
- if(state!=null) {
- return panelId + "_" + state;
- }
- return null;
- }
-
-
public void encodeChildren(FacesContext context, UIComponent component) throws
IOException {
super.encodeChildren(context, component);
}