blob: 414697bc3a96fdd1b385c3bbb8a19b7cb74e02dd [file] [log] [blame]
<?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 xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:ui="http://java.sun.com/jsf/facelets">
<tc:sheet id="sheet#{eventType}" value="#{eventController.planets}" var="planet" markup="small">
<tc:style maxHeight="200px"/>
<tc:column label="Planet">
<tc:out value="#{planet.name}" labelLayout="skip"/>
</tc:column>
<tc:row id="selectPlanet">
<c:if test="#{eventType == 'ajax'}">
<f:ajax event="click" render=":::metrics" listener="#{eventController.ajaxListener}"
disabled="#{eventName != 'click'}"/>
<f:ajax event="dblclick" render=":::metrics" listener="#{eventController.ajaxListener}"
disabled="#{eventName != 'dblclick'}"/>
</c:if>
<c:if test="#{eventType == 'event'}">
<tc:event event="click" action="#{eventController.action}" actionListener="#{eventController.actionListener}"
rendered="#{eventName == 'click'}"/>
<tc:event event="dblclick" action="#{eventController.action}" actionListener="#{eventController.actionListener}"
rendered="#{eventName == 'dblclick'}"/>
</c:if>
</tc:row>
</tc:sheet>
</ui:composition>