Author: jjamrich
Date: 2012-01-06 11:36:16 -0500 (Fri, 06 Jan 2012)
New Revision: 23133
Added:
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/components/richContextMenu/components.xhtml
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/resources/images/pics/
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/resources/images/pics/pic9.jpg
modules/tests/metamer/branches/contextMenu/notes
Modified:
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/components/richContextMenu/list.xhtml
Log:
RF-10197: Add more placeholders for rich:contextMenu
Add more container which should trigger display contextMenu.
Added:
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/components/richContextMenu/components.xhtml
===================================================================
---
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/components/richContextMenu/components.xhtml
(rev 0)
+++
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/components/richContextMenu/components.xhtml 2012-01-06
16:36:16 UTC (rev 23133)
@@ -0,0 +1,131 @@
+<?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:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:c="http://java.sun.com/jsp/jstl/core"
+
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/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="head">
+
+ </ui:define>
+
+ <ui:define name="component">
+
+ <table>
+ <thead>
+ <td>h:graphicImage</td>
+ <td>h:dataTable</td>
+ <td>h:outputText</td>
+ <td>div</td>
+ <td>rich:panelGroup</td>
+ </thead>
+ <tfoot>
+ <td><i>form:imageClick</i></td>
+ <td><i>form:tableClick</i></td>
+ <td><i>form:outputTextClick</i></td>
+ <td><i>divClick</i></td>
+ <td><i>form:panelClick</i></td>
+ </tfoot>
+ <tr>
+ <td>
+ <h:graphicImage id="imageClick"
value="/resources/images/pics/pic9.jpg" style="border : 5px solid
#E4EAEF"/>
+ </td>
+ <td>
+ <h:dataTable id="tableClick"
style="width:150px; height: 130px; background-color: lightgreen; padding: 10px;
border: 5px solid #E4EAEF" />
+ </td>
+ <td>
+ <h:outputLabel id="outputTextClick"
value="outputTextClick" />
+ </td>
+ <td>
+ <div id="divClick" style="width:120px; height:
100px; background-color: lightgreen; padding: 10px; border: 5px solid #E4EAEF"/>
+
+ </td>
+ <td>
+ <h:panelGroup id="panelClick"
layout="block" style="width:120px; height: 100px; background-color:
lightgreen; padding: 10px; border: 5px solid #E4EAEF;"/>
+ </td>
+ </tr>
+ </table>
+
+ <rich:contextMenu id="ctxmenu"
+
attachTo="#{richContextMenuBean.attributes['attachTo'].value}"
+
dir="#{richContextMenuBean.attributes['dir'].value}"
+
direction="#{richContextMenuBean.attributes['direction'].value}"
+
disabled="#{richContextMenuBean.attributes['disabled'].value}"
+
hideDelay="#{richContextMenuBean.attributes['hideDelay'].value}"
+
horizontalOffset="#{richContextMenuBean.attributes['horizontalOffset'].value}"
+
jointPoint="#{richContextMenuBean.attributes['jointPoint'].value}"
+
label="#{richContextMenuBean.attributes['label'].value}"
+
lang="#{richContextMenuBean.attributes['lang'].value}"
+
mode="#{richContextMenuBean.attributes['mode'].value}"
+
onclick="#{richContextMenuBean.attributes['onclick'].value}"
+
ondblclick="#{richContextMenuBean.attributes[''].value}"
+
ongrouphide="#{richContextMenuBean.attributes['ongrouphide'].value}"
+
ongroupshow="#{richContextMenuBean.attributes['ongroupshow'].value}"
+
onhide="#{richContextMenuBean.attributes['onhide'].value}"
+
onitemclick="#{richContextMenuBean.attributes['onitemclick'].value}"
+
onkeydown="#{richContextMenuBean.attributes['onkeydown'].value}"
+
onkeypress="#{richContextMenuBean.attributes['onkeypress'].value}"
+
onkeyup="#{richContextMenuBean.attributes['onkeyup'].value}"
+
onmousedown="#{richContextMenuBean.attributes['onmousedown'].value}"
+
onmousemove="#{richContextMenuBean.attributes['onmousemove'].value}"
+
onmouseout="#{richContextMenuBean.attributes['onmouseout'].value}"
+
onmouseover="#{richContextMenuBean.attributes['onmouseover'].value}"
+
onmouseup="#{richContextMenuBean.attributes['onmouseup'].value}"
+
onshow="#{richContextMenuBean.attributes['onshow'].value}"
+
popupWidth="#{richContextMenuBean.attributes['popupWidth'].value}"
+
rendered="#{richContextMenuBean.attributes['rendered'].value}"
+
showDelay="#{richContextMenuBean.attributes['showDelay'].value}"
+
showEvent="#{richContextMenuBean.attributes['showEvent'].value}"
+
style="#{richContextMenuBean.attributes['showEvent'].value}"
+
styleClass="#{richContextMenuBean.attributes['styleClass'].value}"
+
title="#{richContextMenuBean.attributes['title'].value}"
+
verticalOffset="#{richContextMenuBean.attributes['verticalOffset'].value}"
+ >
+ <rich:menuItem id="menuItem31" label="Save"
icon="/resources/images/icons/save.gif" />
+ <rich:menuItem id="zin" label="Zoom In"
onclick="enlarge('imageClick');" />
+ <rich:menuItem id="zout" label="Zoom Out"
onclick="decrease('imageClick');" />
+ </rich:contextMenu>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{richContextMenuBean.attributes}"
id="attributes" />
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Modified:
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/components/richContextMenu/list.xhtml
===================================================================
---
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/components/richContextMenu/list.xhtml 2012-01-05
18:17:39 UTC (rev 23132)
+++
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/components/richContextMenu/list.xhtml 2012-01-06
16:36:16 UTC (rev 23133)
@@ -34,6 +34,10 @@
<metamer:testPageLink id="simple" outcome="simple"
value="Simple">
Simple page that contains rich:contextMenu
</metamer:testPageLink>
+
+ <metamer:testPageLink id="components"
outcome="components" value="Various components as placeholder">
+ Simple page that contains various components as placeholder to invoke
rich:contextMenu
+ </metamer:testPageLink>
</ui:define>
Added:
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/resources/images/pics/pic9.jpg
===================================================================
---
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/resources/images/pics/pic9.jpg
(rev 0)
+++
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/resources/images/pics/pic9.jpg 2012-01-06
16:36:16 UTC (rev 23133)
@@ -0,0 +1,65 @@
+����
+
+
+
+
+
+��
+��Ǐ�p{g�
+%!O7�'E�����:*F���
+��G�2SIF;}���ǖ~'�Ou����m�
+�b�[-���5��.�/_3�U��ȭ�
+��JPC#=�bڴ�58~�҂��E۔.�Sݢ bv���L#�$��
+tG�Ri�f�f]���r�j��R0�#,E-��G!Rh���Qb��s�#�oo$�VI�Oo�XH��ʵ4�`4�)�;7�ED���J��m�r2�ڸs8�������0jOVi��/B���p0F
+�ˆ��_Kq�Θw�Xq�HB�䞞���a���c�T���T&���O)�#S��(g=��<�k���-��w�{���LK�:�:�pK���H���R��Bof�R���L������B�J�
+�A!�M�L��J���F#ա����r� ]�b%fa�
+�� K/C\��:�kf�t�Ӧ��!K{������+j/�2��p�=G�H�M=���5��V�/�����k쮽�����N�m��s�L_�Z��
+\�kgg-��Giaj��y�DQF���~�v��V�/��9���C����e�G�E'6����K���Q �F�/�4��.N]�Э8��2�T�����I�\�v�\�Lr<�hUl+W-�(fnt��|���er��Muf�yVIm�ӓ���02\��g���Ӥ:�|����o��4��,fJĠ��]�#��\+F��$3�)�TR�N'�Qk-��id��Vn��H�"�(Q���"�2���얡Ml]Ի����Wݤ�`&�{y��n
+B�@ ����#
+R�
+jK濘�rZFX��:�g�Q(��.� 4!hG�W��vtY�����|���&4)e4�<iQ�Z�Y_?1�I�9�d/��2��HFG��bo:�J48Q⸑R�BȦH��l��<(�`Z:#�����k=��km<˛��u�R�FV�QP�1���4�3j��
+yc@��wt��eL9@�
+F(��#H=?��M8铖��
+g�7��xɏu��H�&��F�t4�Ԫ(�&�o�r�\�SL�z�^I�n.8r̒�纽�Id{��T�R3;��wv,I,jY�qϩ}B�����&f
+D�D*j<��8e�)��dwi,b6�PU�d
+9b��Z��eܢ��xڕ�
+B
+���',��"�t/���p72{��q�_���:I_(U�`Z�x�w{;�0�~�J�U�.�G[sK-���0y�5i
+�1�G�|��웵�m7p\�M�s ��̩r�YYe��:�������-��57=�*W%���
+Dg����v��)�0,{�x����ס��y��q�6y�`5NaI�T�#H5L-���R8N�����i�}�7h@anДJ���GDY)[�$�2��W���"A
+Gg����z��Ԛ(�vA�j��dKt�
+*�J�<�$�}0��;�夿Fiֿ2[Au%�NG�cM�l��,���?RT�-��WW�x1J�L��k���m�s��{���Os1�<�"+ZP%G`�2��r��ߵ���3X[���kwrHH�@}SL�UZ�J��jR�oL�����r�4��7�U��s%��j�
+�H��
+Q%M2ɶ�a��w���%a��r��M"깙�8�R��G��&�\��h��w��o����f�k�
+Ck&�θ$[E
+:���'Prœ$�R�EO�i���$����Kw�eɁ��'�j��7-��l���o$��مK}�vYc�Ʒhk��{E
+��Qp�6�قG�ʕ۱OًI([���aHm"�}�
+�%��v0#���T�8���
+��B�\�6�c�����)I���"ߕ�-%+�ʝ��b��a|Ȫ7�x4;>��,�y�lf�]D��2�0�F$�Z�k"L��W5[m3��$�O�=��l{`cWv�y�.x4�I
�!��
++� ��q�BW�#���6Lc�����
+B�H@����� �)�f
+�!�cb$��^!k�q�[b��T�&t P5H�������5�ȸ�-$0F�n��������5�ۉY�R�._M��E�����z��
+���Ƹ�����2�P�Ȓ
+X�X�caN��َ+SS�<�
+�YDF�ڈd*=5�P%}$��scS�7QdH
+h
+0*�lc�Y��WX�r�-�w>�T���:4�1��mѢ;b�h�9ԻU��cp�@�a��bU�T}Fg�ְ�[v/Q|�Ӫ�%�!�\�0�
++C�7fyu�Q�Nw['5?1|x��R�T�����
+��4�mt�Q'�|������.���9��hhY*(�0?��z�*��H/X�}�g\��;��ڻ�����X=z�O:,�R;s&�~�z2yM'��`;�~�8R3�<�֜5ۂB; <��>�&�$!!��I�9�p�M���~���1����r�)�{�W����
+�^���
+��
+��f�C�����q�)K�~�ŁY��n��
+k��}���
\ No newline at end of file
Property changes on:
modules/tests/metamer/branches/contextMenu/application/src/main/webapp/resources/images/pics/pic9.jpg
___________________________________________________________________
Added: svn:executable
+ *
Added: modules/tests/metamer/branches/contextMenu/notes
===================================================================
--- modules/tests/metamer/branches/contextMenu/notes (rev 0)
+++ modules/tests/metamer/branches/contextMenu/notes 2012-01-06 16:36:16 UTC (rev 23133)
@@ -0,0 +1,22 @@
+
+label: where should this attribute value apears
+
+showEvent: list of attacheable events (format)
+
+onmouseup: it is ok that this event is triggered before menu show? (so, you get this
event everytime you click to trigger menu show)
+
+Doesn't work within following containers:
+ - Rich Collapsible Sub Table
+ - Rich Data Table
+ - Rich Data Grid
+ - Rich Exatended Data Table
+ - Rich List
+ - JSF Data Table
+ - UI Repeat
+ - A4j Repeat
+
+
+
+
+
+<h:outputScript library="script" name="picturesUtils.js"/>