[ http://issues.apache.org/jira/browse/MYFACES-16?page=all ]
     
sean schofield closed MYFACES-16:
---------------------------------

    Resolution: Cannot Reproduce

I believe this issue was fixed a while back.  There are no outstanding issues 
with the tab example AFAIK.  Please let us know if this bug is still present.

> Moving between Tab's causes NullPointerException
> ------------------------------------------------
>
>          Key: MYFACES-16
>          URL: http://issues.apache.org/jira/browse/MYFACES-16
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.7 beta
>  Environment: JBoss3.2.5 on Win2k, IE6
>     Reporter: 

>
> I have the following page:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%@ taglib uri="http://java.sun.com/jsf/html";  prefix="h" %>
> <%@ taglib uri="http://java.sun.com/jsf/core";  prefix="f" %>
> <%@ taglib uri="http://myfaces.sourceforge.net/tld/myfaces_ext_0_9.tld"; 
> prefix="x"%>
> <html>
>   <body>
>     <f:view>
>             <h:panelGroup>
>                 <x:panelTabbedPane bgcolor="#FFFFCC">
>                     <x:panelTab id="tab1" label="Tab1" rendered="true">
>                         <h:inputText id="inp1"/><f:verbatim><br></f:verbatim>
>                         <h:inputText id="inp2" required="true" />
>                     </x:panelTab>
>                     <x:panelTab id="tab2" label="Tab2" rendered="true">
>                         <h:inputText id="inp3"/><f:verbatim><br></f:verbatim>
>                         <h:inputText id="inp4"/><f:verbatim><br></f:verbatim>
>                         <h:inputText id="inp5"/><f:verbatim><br></f:verbatim>
>                     </x:panelTab>
>                     <f:verbatim><br></f:verbatim>
>                     <h:commandButton value="Common submit button" />
>                 </x:panelTabbedPane>
>             </h:panelGroup>
>     </f:view>
>   </body>
> </html>
> When clicking on "Tab2" I get the following exception:
> java.lang.NullPointerException
>       
> javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:997)
>       
> javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
>       
> javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
>       
> javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
>       
> javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
>       
> net.sourceforge.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:158)
>       
> net.sourceforge.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:214)
>       
> net.sourceforge.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:262)
>       
> net.sourceforge.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:114)
>       
> net.sourceforge.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:67)
>       javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
> The only why I could get it to work was to nest the x:PanelGroup within a 
> x:panelLayout.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to