You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2008/06/15 13:38:25 UTC

svn commit: r667941 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/PageRendererBase.java

Author: bommel
Date: Sun Jun 15 04:38:25 2008
New Revision: 667941

URL: http://svn.apache.org/viewvc?rev=667941&view=rev
Log:
checkstyle

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/PageRendererBase.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/PageRendererBase.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/PageRendererBase.java?rev=667941&r1=667940&r2=667941&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/PageRendererBase.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/PageRendererBase.java Sun Jun 15 04:38:25 2008
@@ -35,18 +35,17 @@
     if (component instanceof AbstractUIPage) {
       AbstractUIPage page = (AbstractUIPage) component;
 
-      {
-        String name = page.getClientId(facesContext) + SUBCOMPONENT_SEP + "form-action";
-        String newActionId = (String) facesContext.getExternalContext().getRequestParameterMap().get(name);
-        if (LOG.isDebugEnabled()) {
-          LOG.debug("action = " + newActionId);
-        }
-        page.setActionId(newActionId);
+      String actionIdName = page.getClientId(facesContext) + SUBCOMPONENT_SEP + "form-action";
+      String newActionId = (String) facesContext.getExternalContext().getRequestParameterMap().get(actionIdName);
+      if (LOG.isDebugEnabled()) {
+        LOG.debug("action = " + newActionId);
       }
+      page.setActionId(newActionId);
 
       try {
-        String name = page.getClientId(facesContext) + SUBCOMPONENT_SEP + "action-position";
-        String actionPositionString = (String) facesContext.getExternalContext().getRequestParameterMap().get(name);
+        String actionPositionName = page.getClientId(facesContext) + SUBCOMPONENT_SEP + "action-position";
+        String actionPositionString = (String)
+            facesContext.getExternalContext().getRequestParameterMap().get(actionPositionName);
         LOG.info("actionPosition='" + actionPositionString + "'");
         if (StringUtils.isNotEmpty(actionPositionString)) {
           Box actionPosition = new Box(actionPositionString);