[richfaces-issues] [JBoss JIRA] (RF-10267) Accordion creating from Java NPE if activeItem is not set
Christophe Noel (JIRA)
jira-events at lists.jboss.org
Thu Jan 24 06:58:47 EST 2013
[ https://issues.jboss.org/browse/RF-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750187#comment-12750187 ]
Christophe Noel edited comment on RF-10267 at 1/24/13 6:56 AM:
---------------------------------------------------------------
Get the same issue but simply creating the component from JSF including a repeat element for the items. Really surprising!
was (Author: christophe.noel):
Get the same issue. Really surprising!
> Accordion creating from Java NPE if activeItem is not set
> ---------------------------------------------------------
>
> Key: RF-10267
> URL: https://issues.jboss.org/browse/RF-10267
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: base functionality
> Affects Versions: 4.0.0.Milestone5
> Environment: Ununtu 10.10, Java 6
> Reporter: Konstantin Pupkov
> Priority: Minor
> Fix For: 5-Future
>
>
> in Java...
> FacesContext ctx=FacesContext.getCurrentInstance();
> pendingBar = (HtmlAccordion) ctx
> .getApplication()
> .createComponent(ctx, HtmlAccordion.COMPONENT_TYPE, "org.richfaces.AccordionRenderer");
> pendingBar.setId("pend");
> ......
> error on page:
> ...
> ava.lang.NullPointerException
> org.richfaces.component.AbstractAccordion.getActiveItem(AbstractAccordion.java:50)
> org.richfaces.renderkit.html.TogglePanelRenderer.doEncodeBegin(TogglePanelRenderer.java:116)
> org.richfaces.renderkit.html.AccordionRenderer.doEncodeBegin(AccordionRenderer.java:55)
> org.richfaces.renderkit.RendererBase.encodeBegin(RendererBase.java:116)
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:824)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list