[richfaces-issues] [JBoss JIRA] Created: (RF-3811) JS calls from toolbar children duplicated.
Ilya Shaikovsky (JIRA)
jira-events at lists.jboss.org
Thu Jun 26 08:08:58 EDT 2008
JS calls from toolbar children duplicated.
------------------------------------------
Key: RF-3811
URL: http://jira.jboss.com/jira/browse/RF-3811
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
<rich:toolBar>
<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>
in genearted HTML check next code:
<table class="dr-toolbar-ext rich-toolbar" id="j_id232:j_id233" width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr valign="middle"><td class="dr-toolbar-int rich-toolbar-item" onclick="enlarge('j_id232:pic');"><a href="#" onclick="enlarge('j_id232:pic');">
Enlarge</a></td><td class="dr-toolbar-int rich-toolbar-item" onclick="decrease('j_id232:pic');"><a href="#" onclick="decrease('j_id232:pic');">Decrease</a></td><td width="100%"></td></tr></tbody></table>
enlarge and decrease duplicated and called twice after link clicked.
I suppose this done in order to apply JS call to the whole td.. But it isn't looks fine due to duplicate call in the result.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list