You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2021/10/06 11:14:41 UTC

[myfaces-tobago] branch master updated: refactor: remove duplicated severity page

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new b0be108  refactor: remove duplicated severity page
b0be108 is described below

commit b0be10836041dd8b0ab5cf919cd93699bbed8599
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Wed Oct 6 10:50:08 2021 +0200

    refactor: remove duplicated severity page
---
 .../02}/Severity.test.js                           |  0
 .../content/170-validation/02/Severity.xhtml       |  8 ++---
 .../content/900-test/4950-severity/Severity.xhtml  | 34 ----------------------
 3 files changed, 4 insertions(+), 38 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4950-severity/Severity.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/170-validation/02/Severity.test.js
similarity index 100%
rename from tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4950-severity/Severity.test.js
rename to tobago-example/tobago-example-demo/src/main/webapp/content/170-validation/02/Severity.test.js
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/170-validation/02/Severity.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/170-validation/02/Severity.xhtml
index 1283fd2..20c3ea9 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/170-validation/02/Severity.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/170-validation/02/Severity.xhtml
@@ -23,10 +23,10 @@
 
   The validator of each field creates a FacesMessage with the given severity.
 
-  <tc:in label="Fatal" value="something" validator="#{severityController.addFatal}"/>
-  <tc:in label="Error" value="something" validator="#{severityController.addError}"/>
-  <tc:in label="Warn" value="something" validator="#{severityController.addWarn}"/>
-  <tc:in label="Info" value="something" validator="#{severityController.addInfo}"/>
+  <tc:in id="fatal" label="Fatal" validator="#{severityController.addFatal}"/>
+  <tc:in id="error" label="Error" validator="#{severityController.addError}"/>
+  <tc:in id="warn" label="Warn" validator="#{severityController.addWarn}"/>
+  <tc:in id="info" label="Info" validator="#{severityController.addInfo}"/>
 
   <tc:button label="Submit" defaultCommand="true"/>
 </ui:composition>
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4950-severity/Severity.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4950-severity/Severity.xhtml
deleted file mode 100644
index f0ad94b..0000000
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4950-severity/Severity.xhtml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?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
- * 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.
--->
-
-<ui:composition template="/main.xhtml"
-                xmlns="http://www.w3.org/1999/xhtml"
-                xmlns:tc="http://myfaces.apache.org/tobago/component"
-                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
->
-  <ui:param name="title" value="messages"/>
-  <tc:button id="submit" label="Submit"/>
-
-  <tc:section label="Severity">
-    <tc:in id="fatal" label="Fatal" validator="#{severityController.addFatal}"/>
-    <tc:in id="error" label="Error" validator="#{severityController.addError}"/>
-    <tc:in id="warn" label="Warn" validator="#{severityController.addWarn}"/>
-    <tc:in id="info" label="Info" validator="#{severityController.addInfo}"/>
-  </tc:section>
-</ui:composition>