You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2016/09/15 14:41:04 UTC
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
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);
}
}