| <?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> |
| <tc:badge markup="warning" value="Warning: Only works with JSF 2.1 and higher, not with JSF 2.0!" /> |
| </p> |
| |
| <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> |