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

Jean ANDRE (Issue Comment Edited) (JIRA) jira-events at lists.jboss.org
Fri Nov 18 12:19:40 EST 2011


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

Jean ANDRE edited comment on RF-11054 at 11/18/11 12:18 PM:
------------------------------------------------------------

This is an inconsistent bug that depends of the context. See also other comments from similar bug reports related to the getActiveItem. Why the implementation did not take in consideration that tabs can be deleted, added, even moved and having a default behavior in case of the activeItem does not point to a valid item !? such as selecting the first tab if there is no tab (TabPanel is empty), all these case should work.
                
      was (Author: jorelia64):
    This is an inconsistent bug that depends of the context. See also other comments from similar bug reports related to the getActiveItem. Why the programmer did not take in consideration that tab can be deleted, added, even moved and having a default behavior in case of the activeItem does not point to a valid item !? such has selecting the first tab if there or none if the TabPanel is empty !!
                  
> 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