<!--
  JBoss, Home of Professional Open Source
  Copyright 2013, 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 xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j" xmlns:richx="http://richfaces.org/richx">

    <richx:actionMapper>
        <a4j:outputPanel layout="block" style="#{style}" styleClass="photoalbumButton #{styleClass}" lang="#{lang}" dir="#{dir}"
            title="#{title}" rendered="#{empty rendered or rendered}" onmousedown="$(this).css('background-position', '0 28px');"
            onmouseup="$(this).css('background-position', '0 0');" onmouseout="$(this).css('background-position', '0 0');">

            <div>#{value}</div>

            <a4j:commandButton accesskey="#{accesskey}" alt="#{alt}" type="image" image="resources/img/shell/spacer.gif"
                actionListener="#{mappedActionListener}" action="#{mappedAction}" bypassUpdates="#{bypassUpdates}"
                data="#{data}" disabled="#{disabled}" eventsQueue="#{eventsQueue}" focus="#{focus}" immediate="#{immediate}"
                limitRender="#{limitRender}" onbeforedomupdate="#{onbeforedomupdate}" tabindex="#{tabindex}" render="#{render}"
                execute="#{execute}" oncomplete="#{oncomplete}" onblur="#{onblur}" onclick="#{onclick}"
                ondblclick="#{ondblclick}" onfocus="#{onfocus}" onkeydown="#{onkeydown}" onkeypress="#{onkeypress}"
                onkeyup="#{onkeyup}" onmousedown="#{onmousedown}" onmousemove="#{onmousemove}" onmouseout="#{onmouseout}"
                onmouseover="#{onmouseover}" onmouseup="#{onmouseup}" />

        </a4j:outputPanel>
    </richx:actionMapper>

</ui:composition>