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 2018/03/07 09:51:19 UTC
[myfaces-tobago] branch master updated: example to the error
TOBAGO-1870
This is an automated email from the ASF dual-hosted git repository.
lofwyr 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 bf89551 example to the error TOBAGO-1870
bf89551 is described below
commit bf89551c6127acf44f8aa9c95d90d5ec9a67d5ff
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Wed Mar 7 10:46:36 2018 +0100
example to the error TOBAGO-1870
TOBAGO-1870: The file attribute of tc:style is not rendered after a submit.
---
.../content/40-test/6000-event/event-1870.xhtml | 59 ++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/6000-event/event-1870.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/6000-event/event-1870.xhtml
new file mode 100644
index 0000000..b872055
--- /dev/null
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/6000-event/event-1870.xhtml
@@ -0,0 +1,59 @@
+<?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="/plain.xhtml"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <tc:style file="#{request.contextPath}/style/demo.css"/>
+
+ <tc:button image="fa-refresh"/>
+
+ <p>
+ <a href="https://issues.apache.org/jira/browse/TOBAGO-1870">TOBAGO-1870</a>
+ The file attribute of tc:style is not rendered after a submit.
+ </p>
+
+ <tc:panel>
+ <tc:style customClass="demo-selected"/>
+ <p>
+ This box will be diplayed with background color #ffddff, because of the CSS class ".demo-selected".
+ The color is defined in the local file "style/demo.css".
+ </p>
+ <p>
+ <b>The bug:</b> After a click of "reload" the style is broken, because the include of the demo.css is missing.
+ </p>
+ <p>
+ The problem only occures with <code><ui:include src="x-event-\#{''}.xhtml"/></code>.
+ </p>
+ <p>
+ The problem NOT occures with <code><ui:include src="x-event-.xhtml"/></code>, but the EL should resolve to
+ excactly the same string.
+ </p>
+ </tc:panel>
+
+ <tc:box label="Include">
+ Here is included an empty facelet...
+
+ <ui:include src="x-event-#{''}.xhtml"/>
+ <!--<ui:include src="x-event-.xhtml"/>-->
+ </tc:box>
+
+</ui:composition>
--
To stop receiving notification emails like this one, please contact
lofwyr@apache.org.