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 2010/07/19 11:13:10 UTC
svn commit: r965393 - in /myfaces/tobago/branches/tobago-1.0.x:
core/src/main/java/org/apache/myfaces/tobago/component/
core/src/main/java/org/apache/myfaces/tobago/renderkit/html/
example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/ exam...
Author: lofwyr
Date: Mon Jul 19 09:13:10 2010
New Revision: 965393
URL: http://svn.apache.org/viewvc?rev=965393&view=rev
Log:
TOBAGO-897: Components with a FacesMessage severity warn/info/fatal should render a special css-style, especially for labels.
Added:
myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/ValidationSeverity.java
myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation-severity.jsp (contents, props changed)
- copied, changed from r952975, myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation.jsp
Modified:
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/StyleClasses.java
myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java
myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/WEB-INF/faces-config.xml
myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation.jsp
myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml
myfaces/tobago/branches/tobago-1.0.x/theme/richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css
myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java?rev=965393&r1=965392&r2=965393&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java Mon Jul 19 09:13:10 2010
@@ -311,6 +311,21 @@ public class ComponentUtil {
return false;
}
+ public static FacesMessage.Severity getMaximumSeverity(UIComponent component) {
+ final boolean invalid = component instanceof javax.faces.component.UIInput
+ && !((javax.faces.component.UIInput)component).isValid();
+ FacesMessage.Severity max = invalid ? FacesMessage.SEVERITY_ERROR : null;
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ final Iterator messages = facesContext.getMessages(component.getClientId(facesContext));
+ while (messages.hasNext()) {
+ FacesMessage message = (FacesMessage) messages.next();
+ if (max == null || message.getSeverity().getOrdinal() > max.getOrdinal()) {
+ max = message.getSeverity();
+ }
+ }
+ return max;
+ }
+
public static boolean isError(javax.faces.component.UIInput uiInput) {
FacesContext facesContext = FacesContext.getCurrentInstance();
return !uiInput.isValid()
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/StyleClasses.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/StyleClasses.java?rev=965393&r1=965392&r2=965393&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/StyleClasses.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/StyleClasses.java Mon Jul 19 09:13:10 2010
@@ -18,18 +18,15 @@ package org.apache.myfaces.tobago.render
*/
import org.apache.commons.collections.set.ListOrderedSet;
+import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.apache.commons.lang.StringUtils;
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_DISABLED;
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_INLINE;
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_READONLY;
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_STYLE_CLASS;
import org.apache.myfaces.tobago.component.ComponentUtil;
import org.apache.myfaces.tobago.component.SupportsMarkup;
import org.apache.myfaces.tobago.context.ClientProperties;
import org.apache.myfaces.tobago.context.Theme;
+import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
import javax.faces.context.FacesContext;
@@ -38,9 +35,10 @@ import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
-/*
- * Date: 2007-05-01
- */
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_DISABLED;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_INLINE;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_READONLY;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_STYLE_CLASS;
public class StyleClasses implements Serializable {
@@ -221,11 +219,29 @@ public class StyleClasses implements Ser
if (ComponentUtil.getBooleanAttribute(component, ATTR_INLINE)) {
addAspectClass(rendererName, Aspect.INLINE);
}
+ FacesMessage.Severity severity = ComponentUtil.getMaximumSeverity(component);
+ if (severity != null) {
+ switch (severity.getOrdinal()) {
+ case 4:
+ addMarkupClass(rendererName, "fatal");
+ addAspectClass(rendererName, Aspect.ERROR);
+ break;
+ case 3:
+ addMarkupClass(rendererName, "error");
+ addAspectClass(rendererName, Aspect.ERROR);
+ break;
+ case 2:
+ addMarkupClass(rendererName, "warn");
+ break;
+ case 1:
+ addMarkupClass(rendererName, "info");
+ break;
+ default:
+ assert false : "Ordinal constants may be wrong";
+ }
+ }
if (component instanceof UIInput) {
UIInput input = (UIInput) component;
- if (ComponentUtil.isError(input)) {
- addAspectClass(rendererName, Aspect.ERROR);
- }
if (input.isRequired()) {
addAspectClass(rendererName, Aspect.REQUIRED);
}
Modified: myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java?rev=965393&r1=965392&r2=965393&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java Mon Jul 19 09:13:10 2010
@@ -57,7 +57,9 @@ public class Navigation {
overview.add(new DefaultMutableTreeNode(new Node("tree", "overview/tree")));
overview.add(new DefaultMutableTreeNode(new Node("tab", "overview/tab")));
overview.add(new DefaultMutableTreeNode(new Node("toolbar", "overview/toolbar")));
- overview.add(new DefaultMutableTreeNode(new Node("validation", "overview/validation")));
+ DefaultMutableTreeNode validation = new DefaultMutableTreeNode(new Node("validation", "overview/validation"));
+ validation.add(new DefaultMutableTreeNode(new Node("validationSeverity", "overview/validation-severity")));
+ overview.add(validation);
overview.add(new DefaultMutableTreeNode(new Node("form", "overview/form")));
overview.add(new DefaultMutableTreeNode(new Node("themes", "overview/themes")));
overview.add(new DefaultMutableTreeNode(new Node("browser", "overview/browser")));
Added: myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/ValidationSeverity.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/ValidationSeverity.java?rev=965393&view=auto
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/ValidationSeverity.java (added)
+++ myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/ValidationSeverity.java Mon Jul 19 09:13:10 2010
@@ -0,0 +1,49 @@
+package org.apache.myfaces.tobago.example.demo.overview;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+public class ValidationSeverity {
+
+ public void addFatal(FacesContext facesContext, UIComponent component, Object value) {
+ FacesMessage message = new FacesMessage(
+ FacesMessage.SEVERITY_FATAL, "Custom fatal", "This is a custom fatal error");
+ facesContext.addMessage(component.getClientId(facesContext), message);
+ }
+
+ public void addError(FacesContext facesContext, UIComponent component, Object value) {
+ FacesMessage message = new FacesMessage(
+ FacesMessage.SEVERITY_ERROR, "Custom error", "This is a custom error");
+ facesContext.addMessage(component.getClientId(facesContext), message);
+ }
+
+ public void addWarn(FacesContext facesContext, UIComponent component, Object value) {
+ FacesMessage message = new FacesMessage(
+ FacesMessage.SEVERITY_WARN, "Custom warning", "This is a custom warning");
+ facesContext.addMessage(component.getClientId(facesContext), message);
+ }
+
+ public void addInfo(FacesContext facesContext, UIComponent component, Object value) {
+ FacesMessage message = new FacesMessage(
+ FacesMessage.SEVERITY_INFO, "Custom info", "This is a custom information");
+ facesContext.addMessage(component.getClientId(facesContext), message);
+ }
+}
Modified: myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/WEB-INF/faces-config.xml?rev=965393&r1=965392&r2=965393&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/WEB-INF/faces-config.xml Mon Jul 19 09:13:10 2010
@@ -128,6 +128,10 @@
<to-view-id>/overview/validation.jsp</to-view-id>
</navigation-case>
<navigation-case>
+ <from-outcome>overview/validation-severity</from-outcome>
+ <to-view-id>/overview/validation-severity.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
<from-outcome>overview/form</from-outcome>
<to-view-id>/overview/form.jsp</to-view-id>
</navigation-case>
@@ -191,6 +195,12 @@
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>validationSeverity</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.tobago.example.demo.overview.ValidationSeverity</managed-bean-class>
+ <managed-bean-scope>none</managed-bean-scope>
+ </managed-bean>
+
<!--best practice-->
<managed-bean>
Copied: myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation-severity.jsp (from r952975, myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation.jsp)
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation-severity.jsp?p2=myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation-severity.jsp&p1=myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation.jsp&r1=952975&r2=965393&rev=965393&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation.jsp (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation-severity.jsp Mon Jul 19 09:13:10 2010
@@ -21,49 +21,41 @@
<layout:overview>
<jsp:body>
- <tc:panel>
+
+ <tc:box label="Validation and Severity">
<f:facet name="layout">
- <tc:gridLayout rows="80px;200px;1*;" />
+ <tc:gridLayout rows="fixed;30px;fixed;*;fixed"/>
</f:facet>
- <tc:out escape="false" value="#{overviewBundle.validation_text}" />
-
- <tc:box label="#{overviewBundle.validation_sampleTitle}" >
+ <tc:messages/>
+
+ <tc:out value="The validation process in JSF creates FacesMessages with different severities.
+ These severities will be used to add an corresponding CSS class to the elements via the markup mechanism, e. g. tobago-label-markup-error"/>
+
+ <tc:panel>
+ <f:facet name="layout">
+ <tc:gridLayout columns="1*;1*"/>
+ </f:facet>
+ <tx:in label="Fatal" value="something" validator="#{validationSeverity.addFatal}"/>
+ <tc:out value="(Validator creates an fatal error)"/>
+ <tx:in label="Error" value="something" validator="#{validationSeverity.addError}"/>
+ <tc:out value="(Validator creates an error)"/>
+ <tx:in label="Warn" value="something" validator="#{validationSeverity.addWarn}"/>
+ <tc:out value="(Validator creates a warning)"/>
+ <tx:in label="Info" value="something" validator="#{validationSeverity.addInfo}"/>
+ <tc:out value="(Validator creates an info)"/>
+ </tc:panel>
+
+ <tc:cell/>
+
+ <tc:panel>
<f:facet name="layout">
- <tc:gridLayout rows="fixed;1*;fixed;fixed" />
+ <tc:gridLayout columns="1*;100px"/>
</f:facet>
+ <tc:cell/>
+ <tc:button label="#{overviewBundle.validation_submit}"/>
+ </tc:panel>
- <tc:panel>
- <f:facet name="layout">
- <tc:gridLayout columns="1*;1*" />
- </f:facet>
- <tx:in label="#{overviewBundle.validation_number}" markup="number" required="true">
- <f:validateLength minimum="7" maximum="7" />
- <f:validateLongRange maximum="9000000"/>
- </tx:in>
- <tx:in label="#{overviewBundle.validation_price}" markup="number">
- <f:validateDoubleRange minimum="0.01" maximum="1000" />
- </tx:in>
- <tx:in label="#{overviewBundle.validation_custom}" validator="#{overviewController.customValidator}" >
- </tx:in>
- </tc:panel>
-
- <tx:textarea label="#{overviewBundle.validation_description}"
- required="true" />
-
- <tc:messages />
-
- <tc:panel>
- <f:facet name="layout">
- <tc:gridLayout columns="1*;100px" />
- </f:facet>
- <tc:cell/>
- <tc:button action="#{clientConfigController.submit}"
- label="#{overviewBundle.validation_submit}" />
- </tc:panel>
-
- </tc:box>
- <tc:cell />
- </tc:panel>
+ </tc:box>
</jsp:body>
</layout:overview>
Propchange: myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation-severity.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation-severity.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation.jsp
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation.jsp?rev=965393&r1=965392&r2=965393&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation.jsp (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/overview/validation.jsp Mon Jul 19 09:13:10 2010
@@ -27,7 +27,7 @@
</f:facet>
<tc:out escape="false" value="#{overviewBundle.validation_text}" />
-
+
<tc:box label="#{overviewBundle.validation_sampleTitle}" >
<f:facet name="layout">
<tc:gridLayout rows="fixed;1*;fixed;fixed" />
Modified: myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml?rev=965393&r1=965392&r2=965393&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml Mon Jul 19 09:13:10 2010
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!--
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -45,6 +45,7 @@
<entry key="tab">Tab Control</entry>
<entry key="toolbar">Toolbar</entry>
<entry key="validation">Validation</entry>
+ <entry key="validationSeverity">Severity</entry>
<entry key="form">Forms</entry>
<entry key="themes">Themes</entry>
<entry key="browser">Browser</entry>
Modified: myfaces/tobago/branches/tobago-1.0.x/theme/richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css?rev=965393&r1=965392&r2=965393&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css Mon Jul 19 09:13:10 2010
@@ -199,6 +199,22 @@ label.tobago-label-default {
background: #e6e6e6;
}
+label.tobago-label-markup-fatal {
+ color: #FF00FF;
+}
+
+label.tobago-label-markup-error {
+ color: #FF0000;
+}
+
+label.tobago-label-markup-warn {
+ color: #FFA500;
+}
+
+label.tobago-label-markup-info {
+ color: #000000;
+}
+
/* Tab ---------------------------------------------------------------------- */
.tobago-tab-link {
font: bold 12px Arial, Helvetica, sans-serif;
@@ -419,4 +435,4 @@ a:link.tab, a:visited.tab, a:active.tab
.tobago-validation-message {
color: #ff0000;
font: 14px arial, helvetica, sans-serif;
-}
\ No newline at end of file
+}
Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css?rev=965393&r1=965392&r2=965393&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css Mon Jul 19 09:13:10 2010
@@ -264,12 +264,24 @@ td.tobago-calendar-day-selected {
/* validation */
.tobago-validation-message {
- color: red;
+ color: #FF0000;
white-space: nowrap;
}
+.tobago-messages-markup-fatal {
+ color: #FF00FF;
+}
+
+.tobago-messages-markup-error {
+ color: #FF0000;
+}
+
+.tobago-messages-markup-warn {
+ color: #FFA500;
+}
+
.tobago-messages-markup-info {
- color: black;
+ color: #000000;
}
/* ----------------------------------------------------------------------------
@@ -493,6 +505,22 @@ label.tobago-label-inline {
padding-left: 0px;
}
+label.tobago-label-markup-fatal {
+ color: #FF00FF;
+}
+
+label.tobago-label-markup-error {
+ color: #FF0000;
+}
+
+label.tobago-label-markup-warn {
+ color: #FFA500;
+}
+
+label.tobago-label-markup-info {
+ color: #000000;
+}
+
/* selectManyListbox ------------------------------------------------------- */
.tobago-selectManyListbox-default {
Modified: myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css?rev=965393&r1=965392&r2=965393&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css Mon Jul 19 09:13:10 2010
@@ -468,6 +468,22 @@ label.tobago-label-error {
color: #FF0000;
}
+label.tobago-label-markup-fatal {
+ color: #FF00FF;
+}
+
+label.tobago-label-markup-error {
+ color: #FF0000;
+}
+
+label.tobago-label-markup-warn {
+ color: #FFA500;
+}
+
+label.tobago-label-markup-info {
+ color: #000000;
+}
+
/* page -------------------------------------------------------------------- */
.tobago-page-default {
background: #E2E2E2;