You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/01/20 16:07:28 UTC
svn commit: r613572 -
/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
Author: skitching
Date: Sun Jan 20 07:07:27 2008
New Revision: 613572
URL: http://svn.apache.org/viewvc?rev=613572&view=rev
Log:
Remove tabs only.
Modified:
myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java?rev=613572&r1=613571&r2=613572&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java (original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java Sun Jan 20 07:07:27 2008
@@ -69,11 +69,11 @@
private static final String FIRST_SUBMIT_SCRIPT_ON_PAGE = "org.apache.MyFaces.FIRST_SUBMIT_SCRIPT_ON_PAGE";
- public static final String NON_SUBMITTED_VALUE_WARNING
- = "There should always be a submitted value for an input if it is rendered,"
- + " its form is submitted, and it was not originally rendered disabled or read-only."
- + " You cannot submit a form after disabling an input element via javascript."
- + " Consider setting read-only to true instead"
+ public static final String NON_SUBMITTED_VALUE_WARNING
+ = "There should always be a submitted value for an input if it is rendered,"
+ + " its form is submitted, and it was not originally rendered disabled or read-only."
+ + " You cannot submit a form after disabling an input element via javascript."
+ + " Consider setting read-only to true instead"
+ " or resetting the disabled value back to false prior to form submission.";
private HtmlRendererUtils() {
@@ -870,8 +870,8 @@
writer.writeAttribute(HTML.TYPE_ATTR, "text/javascript", null);
final ExternalContext externalContext = facesContext.getExternalContext();
- final MyfacesConfig currentInstance = MyfacesConfig.getCurrentInstance(externalContext);
- boolean autoScroll = currentInstance.isAutoScroll();
+ final MyfacesConfig currentInstance = MyfacesConfig.getCurrentInstance(externalContext);
+ boolean autoScroll = currentInstance.isAutoScroll();
ScriptContext context = new ScriptContext(currentInstance
.isPrettyHtml());
@@ -1151,11 +1151,11 @@
}
public static boolean isAllowedCdataSection(FacesContext fc) {
- Boolean value = null;
+ Boolean value = null;
- if (fc != null) {
- value = (Boolean) fc.getExternalContext().getRequestMap().get(ALLOW_CDATA_SECTION_ON);
- }
+ if (fc != null) {
+ value = (Boolean) fc.getExternalContext().getRequestMap().get(ALLOW_CDATA_SECTION_ON);
+ }
return value != null && ((Boolean) value).booleanValue();
}