myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1760943 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FormRenderer.java
Date Thu, 15 Sep 2016 14:41:04 GMT
Author: lofwyr
Date: Thu Sep 15 14:41:04 2016
New Revision: 1760943

URL: http://svn.apache.org/viewvc?rev=1760943&view=rev
Log:
TOBAGO-1524: Use standard AJAX mechanism
* using span instead of div, so we habe less layout impacts

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FormRenderer.java

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FormRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FormRenderer.java?rev=1760943&r1=1760942&r2=1760943&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FormRenderer.java
(original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FormRenderer.java
Thu Sep 15 14:41:04 2016
@@ -37,7 +37,7 @@ public class FormRenderer extends Render
     final TobagoResponseWriter writer = getResponseWriter(facesContext);
     final String clientId = form.getClientId(facesContext);
 
-    writer.startElement(HtmlElements.DIV);
+    writer.startElement(HtmlElements.SPAN);
     writer.writeIdAttribute(clientId);
     writer.writeClassAttribute(TobagoClass.FORM);;
   }
@@ -45,7 +45,7 @@ public class FormRenderer extends Render
   @Override
   public void encodeEnd(final FacesContext facesContext, final UIComponent component) throws
IOException {
     final TobagoResponseWriter writer = getResponseWriter(facesContext);
-    writer.endElement(HtmlElements.DIV);
+    writer.endElement(HtmlElements.SPAN);
   }
 
 }



Mime
View raw message