[
https://issues.jboss.org/browse/RF-12060?page=com.atlassian.jira.plugin.s...
]
Jean ANDRE updated RF-12060:
----------------------------
Steps to Reproduce:
1) Install the workbench and do no hesitate to ask any information, material if necessary
1.1) See the readme.txt file enclosed in the zip file
2) Go to the Home page
3) Click on tab "Items Management"
4) Enter a number and "New List" button - It will open a new tab with a number
of items according to the number
5) From the list, click open - The content is refreshed to display a nested tab. At the
top of the nested tabs, there are 3 links about tasks (1,2,3).
6) Click on any task link, it will open a new tab (dynamic tabs have a close button)
7) Then click on the close button labelled "Close by getElementbyID" and you
will see the error.
was:
1) Install the workbench and do no hesitate to ask any information, material if necessary
2) Go to the Home page
3) Click on tab "Items Management"
4) Enter a number and "New List" button - It will open a new tab with a number
of items according to the number
5) From the list, click open - The content is refreshed to display a nested tab. At the
top of the nested tabs, there are 3 links about tasks (1,2,3).
6) Click on any task link, it will open a new tab (dynamic tabs have a close button)
7) Then click on the close button labelled "Close by getElementbyID" and you
will see the error.
element is null message when closing tab from an event click
------------------------------------------------------------
Key: RF-12060
URL:
https://issues.jboss.org/browse/RF-12060
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.2.0.Final
Environment: Websphere 8.0.0.2 - RAD 8 - JSF Mojorra 2.1.6 - Spring 3.0.6 Final -
Firefox 10.0.2 - Windows 7 (6.1 sp1) - AspectJ 1.6.12 / AJDT - RichFaces 4.2.0 Final -
Hibernate Validator 4.2.0 Final
Reporter: Jean ANDRE
Attachments: NestedWeb_RF-12060.zip
There is a link to RF-11950.
We got the message "element is null" when we send a click event for closing a
tab. To retrieve the id of the close button (an image), we use the function getElementById
(because of RF-11950). The click function calls a javascript function declared by
a4j:jsFunction (see index.hxtml file - close task).
This is the only information we have from firebug. When we close the tab directly by
clicking on the close button/image, it works perfectly.
*Note :* Moreover, there is also a strange behavior related to generated id on close
button/image. When we specified a fix id on the h:graphicImage, the first id is correct
but there is no id on other close button/image from other tabs!???. Having a fix id should
trigger a duplicate ID but as the ids are not generated on other tabs, it does not.
{code}
<f:facet name="header">
 <h:outputText value="#{msg[task.uiActivity.headerKey]}"
title="#{msg[task.uiActivity.headerKey]}" />
 <h:graphicImage id="closeTask"
value="/images/closeButton.png"
styleClass="closeButton"
onclick="closeTask('#{task.id}');event.stopPropagation();" />
</f:facet>
<f:subview id="#{task.id}-subview">
<ui:include src="#{task.uiActivity.xhtmlFile}" />
</f:subview>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira