Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.0 Final
-
Fix Version/s: 1.3.1
-
Component/s: None
-
Labels:None
-
Environment:ICEfaces 3.1
Description
There may be scenarios where a user wants to enclose all content (specifically contentStack/ContentPane) within 1 form tag. Currently the contentStackMenu will only work if a form tag directly surrounds it like so:
<h:form>
<h:panelGroup>
<mobi:contentStackMenu>
<mobi:contentMenuItem label="Menu" />
<mobi:contentMenuItem label="Pane 1" value="panel1" />
.............
</mobi:contentStackMenu>
</h:panelGroup>
</h:form>
If you were to move the closing form tag to the bottom of the page (below the contentPanes), the following NPE is thrown:
java.lang.NullPointerException
at org.icefaces.mobi.component.contentmenuitem.ContentMenuItemRenderer.renderItemAsList(ContentMenuItemRenderer.java:153)
at org.icefaces.mobi.component.contentmenuitem.ContentMenuItemRenderer.encodeEnd(ContentMenuItemRenderer.java:66)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
at org.icefaces.mobi.renderkit.BaseLayoutRenderer.renderChild(BaseLayoutRenderer.java:50)
at org.icefaces.mobi.renderkit.BaseLayoutRenderer.renderChildren(BaseLayoutRenderer.java:35)
at org.icefaces.mobi.component.contentstackmenu.ContentStackMenuRenderer.encodeEnd(ContentStackMenuRenderer.java:97)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
Test case demonstrating issue attached. Ready for deployment on Tomcat 7.
<h:form>
<h:panelGroup>
<mobi:contentStackMenu>
<mobi:contentMenuItem label="Menu" />
<mobi:contentMenuItem label="Pane 1" value="panel1" />
.............
</mobi:contentStackMenu>
</h:panelGroup>
</h:form>
If you were to move the closing form tag to the bottom of the page (below the contentPanes), the following NPE is thrown:
java.lang.NullPointerException
at org.icefaces.mobi.component.contentmenuitem.ContentMenuItemRenderer.renderItemAsList(ContentMenuItemRenderer.java:153)
at org.icefaces.mobi.component.contentmenuitem.ContentMenuItemRenderer.encodeEnd(ContentMenuItemRenderer.java:66)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
at org.icefaces.mobi.renderkit.BaseLayoutRenderer.renderChild(BaseLayoutRenderer.java:50)
at org.icefaces.mobi.renderkit.BaseLayoutRenderer.renderChildren(BaseLayoutRenderer.java:35)
at org.icefaces.mobi.component.contentstackmenu.ContentStackMenuRenderer.encodeEnd(ContentStackMenuRenderer.java:97)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
Test case demonstrating issue attached. Ready for deployment on Tomcat 7.
Issue Links
- depends on
-
MOBI-672 Client side api for contentStack using core rendering for JSP as well as JSF implementation
- Open
work done on MOBI-672 will resolve this.