Author: ppitonak(a)redhat.com
Date: 2011-12-20 08:42:18 -0500 (Tue, 20 Dec 2011)
New Revision: 23118
Added:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichHotKeyBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/editor.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/orderingList.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/pickList.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/simple.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
Log:
RFPL-1956 rich:hotKey samples created
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2011-12-20
13:25:14 UTC (rev 23117)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2011-12-20
13:42:18 UTC (rev 23118)
@@ -145,6 +145,7 @@
richComponents.put("richFunctions", "Rich Functions");
richComponents.put("richGraphValidator", "Rich Graph
Validator");
richComponents.put("richHashParam", "Rich Hash Parameter");
+ richComponents.put("richHotKey", "Rich Hot Key");
richComponents.put("richInplaceInput", "Rich Inplace
Input");
richComponents.put("richInplaceSelect", "Rich Inplace
Select");
richComponents.put("richInputNumberSlider", "Rich Input Number
Slider");
Added:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichHotKeyBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichHotKeyBean.java
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichHotKeyBean.java 2011-12-20
13:42:18 UTC (rev 23118)
@@ -0,0 +1,87 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010-2011, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.bean.rich;
+
+import java.io.Serializable;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ViewScoped;
+
+import org.richfaces.component.UIHotKey;
+import org.richfaces.tests.metamer.Attributes;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Managed bean for rich:hotKey.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "richHotKeyBean")
+@ViewScoped
+public class RichHotKeyBean implements Serializable {
+
+ private static final long serialVersionUID = -1L;
+ private static Logger logger;
+ private Attributes attributes;
+ private Attributes attributes2;
+
+ /**
+ * Initializes the managed bean.
+ */
+ @PostConstruct
+ public void init() {
+ logger = LoggerFactory.getLogger(getClass());
+ logger.debug("initializing bean " + getClass().getName());
+
+ attributes = Attributes.getComponentAttributesFromFacesConfig(UIHotKey.class,
getClass());
+ attributes2 = Attributes.getComponentAttributesFromFacesConfig(UIHotKey.class,
getClass());
+
+ attributes.setAttribute("enabledInInput", true);
+ attributes.setAttribute("key", "ctrl+x");
+ attributes.setAttribute("rendered", true);
+ attributes.remove("onpress");
+
+ attributes2.setAttribute("enabledInInput", true);
+ attributes2.setAttribute("key", "alt+x");
+ attributes2.setAttribute("rendered", true);
+ attributes2.remove("onpress");
+ }
+
+ public Attributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(Attributes attributes) {
+ this.attributes = attributes;
+ }
+
+ public Attributes getAttributes2() {
+ return attributes2;
+ }
+
+ public void setAttributes2(Attributes attributes) {
+ this.attributes2 = attributes;
+ }
+}
Property changes on:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichHotKeyBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/editor.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/editor.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/editor.xhtml 2011-12-20
13:42:18 UTC (rev 23118)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
+
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:editor id="editor" />
+
+ <rich:hotKey id="richHotKey1"
enabledInInput="#{richHotKeyBean.attributes['enabledInInput'].value}"
+ key="#{richHotKeyBean.attributes['key'].value}"
onpress="#{rich:component('editor')}.focus()"
+ rendered="#{richHotKeyBean.attributes['rendered'].value}"
selector="#{richHotKeyBean.attributes['selector'].value}"
+ type="#{richHotKeyBean.attributes['type'].value}" />
+
+ <rich:hotKey id="richHotKey2"
enabledInInput="#{richHotKeyBean.attributes2['enabledInInput'].value}"
+ key="#{richHotKeyBean.attributes2['key'].value}"
onpress="#{rich:component('editor')}.blur()"
+ rendered="#{richHotKeyBean.attributes2['rendered'].value}"
+ selector="#{richHotKeyBean.attributes2['selector'].value}"
type="#{richHotKeyBean.attributes2['type'].value}" />
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <fieldset>
+ <legend>Hot key that calls editor's focus()
function</legend>
+ <metamer:attributes value="#{richHotKeyBean.attributes}"
id="attributes" />
+ </fieldset>
+
+ <br />
+
+ <fieldset>
+ <legend>Hot key that calls editor's blur() function</legend>
+ <metamer:attributes value="#{richHotKeyBean.attributes2}"
id="attributes2" />
+ </fieldset>
+ </ui:define>
+
+</ui:composition>
+</html>
\ No newline at end of file
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/list.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/list.xhtml 2011-12-20
13:42:18 UTC (rev 23118)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:composition template="/templates/list.xhtml">
+
+ <ui:define name="pageTitle">Rich Hot Key</ui:define>
+
+ <ui:define name="links">
+
+ <metamer:testPageLink id="simple" outcome="simple"
value="Simple">
+ Simple page containing two <b>rich:hotKey</b>s and input
boxes for all their attributes.
+ </metamer:testPageLink>
+
+ <metamer:testPageLink id="editor" outcome="editor"
value="Editor">
+ Simple page containing rich:editor with two
<b>rich:hotKey</b>s and input boxes for all their attributes.
+ </metamer:testPageLink>
+
+ <metamer:testPageLink id="pickList" outcome="pickList"
value="Pick List">
+ Simple page containing rich:pickList with two
<b>rich:hotKey</b>s and input boxes for all their attributes.
+ </metamer:testPageLink>
+
+ <metamer:testPageLink id="orderingList"
outcome="orderingList" value="Ordering List">
+ Simple page containing rich:orderingList with two
<b>rich:hotKey</b>s and input boxes for all their attributes.
+ </metamer:testPageLink>
+
+ </ui:define>
+
+</ui:composition>
+
+</html>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/orderingList.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/orderingList.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/orderingList.xhtml 2011-12-20
13:42:18 UTC (rev 23118)
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
+
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:orderingList id="orderingList"
listHeight="#{richOrderingListBean.attributes['listHeight'].value}"
+
listWidth="#{richOrderingListBean.attributes['listWidth'].value}"
value="#{richOrderingListBean.capitals}"
+ var="capital">
+
+ <f:converter converterId="capitalConverter" />
+
+ <rich:column>
+ <f:facet name="header">State</f:facet>
+ #{capital.state}
+ </rich:column>
+ <rich:column>
+ <f:facet name="header">Name</f:facet>
+ #{capital.name}
+ </rich:column>
+
+ </rich:orderingList>
+
+ <rich:hotKey id="richHotKey1"
enabledInInput="#{richHotKeyBean.attributes['enabledInInput'].value}"
+ key="#{richHotKeyBean.attributes['key'].value}"
onpress="#{rich:component('orderingList')}.upTop()"
+ rendered="#{richHotKeyBean.attributes['rendered'].value}"
selector="#{richHotKeyBean.attributes['selector'].value}"
+ type="#{richHotKeyBean.attributes['type'].value}" />
+
+ <rich:hotKey id="richHotKey2"
enabledInInput="#{richHotKeyBean.attributes2['enabledInInput'].value}"
+ key="#{richHotKeyBean.attributes2['key'].value}"
onpress="#{rich:component('orderingList')}.downBottom()"
+ rendered="#{richHotKeyBean.attributes2['rendered'].value}"
+ selector="#{richHotKeyBean.attributes2['selector'].value}"
type="#{richHotKeyBean.attributes2['type'].value}" />
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <fieldset>
+ <legend>>Hot key that calls ordering list's upTop()
function</legend>
+ <metamer:attributes value="#{richHotKeyBean.attributes}"
id="attributes1" />
+ </fieldset>
+
+ <br />
+
+ <fieldset>
+ <legend>>Hot key that calls ordering list's downBottom()
function</legend>
+ <metamer:attributes value="#{richHotKeyBean.attributes2}"
id="attributes2" />
+ </fieldset>
+ </ui:define>
+
+ <!-- we don't want two logs on the page -->
+ <ui:define name="beforeFooter"></ui:define>
+
+</ui:composition>
+</html>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/pickList.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/pickList.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/pickList.xhtml 2011-12-20
13:42:18 UTC (rev 23118)
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
+
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:pickList id="pickList" listHeight="250px"
value="#{richPickListBean.value}" var="tmp">
+
+ <f:selectItems value="#{richPickListBean.capitals}" />
+
+ <h:column id="columnFlag">
+ <h:graphicImage name="#{tmp.stateFlag}" />
+ </h:column>
+
+ <h:column id="columnCapital">
+ <f:facet name="header">
+ <h:outputText id="columnHeaderCapital"
value="Capital Header" />
+ </f:facet>
+ <h:outputText value="#{tmp.name}" />
+ </h:column>
+
+ <h:column id="columnState">
+ <f:facet name="header">
+ <h:outputText id="columnHeaderState" value="State
Header" />
+ </f:facet>
+ <h:outputText value="#{tmp.state}" />
+ </h:column>
+
+ </rich:pickList>
+
+ <rich:hotKey id="richHotKey1"
enabledInInput="#{richHotKeyBean.attributes['enabledInInput'].value}"
+ key="#{richHotKeyBean.attributes['key'].value}"
onpress="#{rich:component('pickList')}.add()"
+ rendered="#{richHotKeyBean.attributes['rendered'].value}"
selector="#{richHotKeyBean.attributes['selector'].value}"
+ type="#{richHotKeyBean.attributes['type'].value}" />
+
+ <rich:hotKey id="richHotKey2"
enabledInInput="#{richHotKeyBean.attributes2['enabledInInput'].value}"
+ key="#{richHotKeyBean.attributes2['key'].value}"
onpress="#{rich:component('pickList')}.remove()"
+ rendered="#{richHotKeyBean.attributes2['rendered'].value}"
+ selector="#{richHotKeyBean.attributes2['selector'].value}"
type="#{richHotKeyBean.attributes2['type'].value}" />
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <fieldset>
+ <legend>Hot key that calls pick list's add()
function</legend>
+ <metamer:attributes value="#{richHotKeyBean.attributes}"
id="attributes" />
+ </fieldset>
+
+ <br />
+
+ <fieldset>
+ <legend>Hot key that calls pick list's remove()
function</legend>
+ <metamer:attributes value="#{richHotKeyBean.attributes2}"
id="attributes2" />
+ </fieldset>
+ </ui:define>
+
+</ui:composition>
+</html>
+
+
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/simple.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richHotKey/simple.xhtml 2011-12-20
13:42:18 UTC (rev 23118)
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
+
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <a4j:log id="log" style="height: 200px;" />
+
+ <a4j:outputPanel id="panel" layout="block">
+
+ <h:inputText id="firstInput" styleClass="first-input"
value="first input" />
+ <h:inputText id="secondInput"
styleClass="second-input" value="second input" />
+
+ <rich:hotKey id="richHotKey1"
enabledInInput="#{richHotKeyBean.attributes['enabledInInput'].value}"
+ key="#{richHotKeyBean.attributes['key'].value}"
onpress="RichFaces.log.info('hotkey 1')"
+
rendered="#{richHotKeyBean.attributes['rendered'].value}"
+
selector="#{richHotKeyBean.attributes['selector'].value}"
type="#{richHotKeyBean.attributes['type'].value}" />
+
+ <rich:hotKey id="richHotKey2"
enabledInInput="#{richHotKeyBean.attributes2['enabledInInput'].value}"
+ key="#{richHotKeyBean.attributes2['key'].value}"
onpress="RichFaces.log.info('hotkey 2')"
+
rendered="#{richHotKeyBean.attributes2['rendered'].value}"
+
selector="#{richHotKeyBean.attributes2['selector'].value}"
type="#{richHotKeyBean.attributes2['type'].value}" />
+
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <fieldset>
+ <legend>hot key 1</legend>
+ <metamer:attributes value="#{richHotKeyBean.attributes}"
id="attributes1" />
+ </fieldset>
+
+ <br />
+
+ <fieldset>
+ <legend>hot key 2</legend>
+ <metamer:attributes value="#{richHotKeyBean.attributes2}"
id="attributes2" />
+ </fieldset>
+ </ui:define>
+
+ <!-- we don't want two logs on the page -->
+ <ui:define name="beforeFooter"></ui:define>
+
+</ui:composition>
+</html>