[
https://issues.jboss.org/browse/RF-12060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678626#comment-12678626
]
Jean ANDRE commented on RF-12060:
---------------------------------
Hello Brian,
Based on RF-12038, is it possible to add a check for null (NPE) before calling
if(!element.name) to see if the case can be resolved like this? - Could you
please try it?. Thank you very much and let me know your decision.
> 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
> Fix For: 4.Future
>
> 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
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues