[richfaces-issues] [JBoss JIRA] (RF-11054) Dynamically created tabs within tabPanel causes NPE in getActiveItem()

Jean ANDRE (Commented) (JIRA) jira-events at lists.jboss.org
Wed Nov 9 16:21:45 EST 2011


    [ https://issues.jboss.org/browse/RF-11054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641539#comment-12641539 ] 

Jean ANDRE commented on RF-11054:
---------------------------------

Moreover, even if you set the tab by program on action or action listener, during the rendering but after the deletion in your model, we still get the NPE on getActiveItem. Then setting the activeItem does not work in such case.

FacesContext facesContext = FacesContext.getCurrentInstance();
UIComponent desktopTab = facesContext.getViewRoot().findComponent("tabbedForm:desktopTabPanel");
((UITabPanel)desktopTab).setActiveItem("tab-search");

I've also tried to bind the tabPanel with a backing bean, it's  seem that the F5 key show a memory corruption because the tabPanel does not appears except its content !!!
                
> Dynamically created tabs within tabPanel causes NPE in getActiveItem()
> ----------------------------------------------------------------------
>
>                 Key: RF-11054
>                 URL: https://issues.jboss.org/browse/RF-11054
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: base functionality , component-panels-layout-themes
>    Affects Versions: 4.0.0.Final
>         Environment: RichFaces 4.1.0-SNAPSHOT r.22526
> Metamer r.22526
> Mojarra 2.0.4-b09
> Apache Tomcat 7.0.12
> Java(TM) SE Runtime Environment 1.6.0_19-b04 @ Linux
> Chrome 12.0.718.0 @ Linux i686
>            Reporter: Ján Jamrich
>             Fix For: 4.Future
>
>         Attachments: exception-on-tab-switch
>
>
> When set switchType on TabPanel to "server" (notice that with "client" everything works correctly, with "ajax" tab switch not work as well as with "null"), all dynamically created tabs causes NPE on tab switch.

--
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

       



More information about the richfaces-issues mailing list