You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2013/10/30 16:43:20 UTC

svn commit: r1537137 - /myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SplitLayoutRenderer.java

Author: weber
Date: Wed Oct 30 15:43:20 2013
New Revision: 1537137

URL: http://svn.apache.org/r1537137
Log:
TOBAGO-1332 - SplitLayout: fix update layout

Modified:
    myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SplitLayoutRenderer.java

Modified: myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SplitLayoutRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SplitLayoutRenderer.java?rev=1537137&r1=1537136&r2=1537137&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SplitLayoutRenderer.java (original)
+++ myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SplitLayoutRenderer.java Wed Oct 30 15:43:20 2013
@@ -47,13 +47,12 @@ import java.util.Map;
 public class SplitLayoutRenderer extends GridLayoutRenderer {
   
   private static final Logger LOG = LoggerFactory.getLogger(SplitLayoutRenderer.class);
-  private static final String HANDLE_ID_POSTFIX = "_spLH";
   private static final String POSITION_ID_POSTFIX = "_spLP";
 
   @Override
   public void decode(FacesContext facesContext, UIComponent component) {
     String clientId = component.getClientId();
-    if ((clientId + HANDLE_ID_POSTFIX).equals(ComponentUtils.findPage(facesContext).getActionId())) {
+    if (clientId.equals(ComponentUtils.findPage(facesContext).getActionId())) {
       // only decode and update layout at resize request
       Map<String, String> parameterMap = facesContext.getExternalContext().getRequestParameterMap();
       String position = parameterMap.get(clientId + POSITION_ID_POSTFIX);
@@ -85,7 +84,7 @@ public class SplitLayoutRenderer extends
     
     TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
     writer.startElement(HtmlElements.SPAN, layout);
-    writer.writeIdAttribute(id + HANDLE_ID_POSTFIX);
+    writer.writeIdAttribute(id);
     writer.writeAttribute("data-tobago-split-layout", layout.getOrientation().toLowerCase(), true);
     Style style = calculateHandleStyle(layout);
     writer.writeStyleAttribute(style);