[
https://jira.jboss.org/jira/browse/RF-4312?page=com.atlassian.jira.plugin...
]
Nick Belaevski updated RF-4312:
-------------------------------
Fix Version/s: 3.2.2
Assignee: Anton Belevich (was: Nick Belaevski)
Note that encodeEventsAttributes(facesContext, toolBar, writer); is not called for right
shoulder children - compare:
http://fisheye.jboss.org/browse/RichFaces/trunk/ui/toolBar/src/main/java/...
lines 101 & 118
Toolbar: HTML events are dublicated in children elements
--------------------------------------------------------
Key: RF-4312
URL:
https://jira.jboss.org/jira/browse/RF-4312
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: 3.2.2.BETA5
Reporter: Tsikhon Kuprevich
Assignee: Anton Belevich
Fix For: 3.2.2
Here is a page code:
<rich:toolBar ondblclick="alert('ondblclick');"
onkeydown="alert('onkeydown');"
onkeypress="alert('onkeypress');"
onkeyup="alert('onkeyup');"
onmousedown="alert('onmousedown');"
onmousemove="alert('onmousemove');"
onmouseout="alert('onmouseout');"
onmouseover="alert('onmouseover');"
onmouseup="alert('onmouseup');" >
<h:outputLink value="#"
onclick="enlarge('#{rich:clientId('pic')}');">
Enlarge
</h:outputLink>
<h:outputLink value="#"
onclick="decrease('#{rich:clientId('pic')}');">Decrease</h:outputLink>
</rich:toolBar>
<rich:panel>
<h:graphicImage value="#{slidesBean.currentPicture}" id="pic"
/>
</rich:panel>
<rich:toolBar>
<a4j:commandLink value="<< Previous"
action="#{slidesBean.previous}" reRender="slide"
disabled="#{not (slidesBean.currentIndex > 1)}" />
<a4j:commandLink value="Next >>"
action="#{slidesBean.next}"
reRender="slide" disabled="#{(slidesBean.currentIndex == 8)}"
/>
</rich:toolBar>
Here is HTML generated:
<form id="j_id_jsp_1491964007_1" name="j_id_jsp_1491964007_1"
method="post" action="/jsp/CustomizePage/CustomizePage.jsf"
enctype="application/x-www-form-urlencoded"><table border="0"
cellpadding="0" cellspacing="0" class="dr-toolbar-ext
rich-toolbar " id="j_id_jsp_1491964007_1:j_id_jsp_1491964007_2"
ondblclick="alert('ondblclick');"
onkeydown="alert('onkeydown');"
onkeypress="alert('onkeypress');"
onkeyup="alert('onkeyup');"
onmousedown="alert('onmousedown');"
onmousemove="alert('onmousemove');"
onmouseout="alert('onmouseout');"
onmouseover="alert('onmouseover');"
onmouseup="alert('onmouseup');" width="100%"><tr
valign="middle"><td class="dr-toolbar-int rich-toolbar-item "
onkeydown=";alert('onkeydown');"
onkeypress=";alert('onkeypress');"
onkeyup=";alert('onkeyup');"
ondblclick=";alert('ondblclick');"
onmousedown=";alert('onmousedown');"
onmousemove=";alert('onmousemove');"
onmouseover=";alert('onmouseover');"
onmouseout=";alert('onmouseout');"
onmouseup=";alert('onmouseup');"><a href="#"
onclick="enlarge('j_id_jsp_1491964007_1:pic');">
Enlarge
</a></td><td class="dr-toolbar-int rich-toolbar-item "
onkeydown=";alert('onkeydown');"
onkeypress=";alert('onkeypress');"
onkeyup=";alert('onkeyup');"
ondblclick=";alert('ondblclick');"
onmousedown=";alert('onmousedown');"
onmousemove=";alert('onmousemove');"
onmouseover=";alert('onmouseover');"
onmouseout=";alert('onmouseout');"
onmouseup=";alert('onmouseup');"><a href="#"
onclick="decrease('j_id_jsp_1491964007_1:pic');">Decrease</a></td><td
width="100%"></td></tr></table><div class="dr-pnl
rich-panel " id="j_id_jsp_1491964007_1:j_id_jsp_1491964007_5"><div
class="dr-pnl-b rich-panel-body "
id="j_id_jsp_1491964007_1:j_id_jsp_1491964007_5_body"><img
id="j_id_jsp_1491964007_1:pic" /></div></div><table
border="0" cellpadding="0" cellspacing="0"
class="dr-toolbar-ext rich-toolbar "
id="j_id_jsp_1491964007_1:j_id_jsp_1491964007_7"
width="100%"><tr valign="middle"><td
class="dr-toolbar-int rich-toolbar-item "><a href="#"
id="j_id_jsp_1491964007_1:j_id_jsp_1491964007_8"
name="j_id_jsp_1491964007_1:j_id_jsp_1491964007_8" onclick="return
false;">&lt;&lt; Previous</a></td><td
class="dr-toolbar-int rich-toolbar-item ">
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira