Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-977

Invoking Seam Email render from a page containing Icefaces tags creates render exception

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.0.GA
    • Component/s: ICE Faces Integration
    • Labels:
      None
    • Environment:

      Windows XP, JDk 5.0, JBoss AP, JBoss Seam, Facelets, IceFaces

      Description

      When I invoke Seam E-mail functionality from an Iceface page containing menu Items to the child level (to any level) causes the following exception:

      Error send mail
      java.lang.NullPointerException:
      at com.icesoft.faces.component.menubar.MenuItemRenderer.renderChildrenRecursive(MenuItemRenderer.java:382)
      at com.icesoft.faces.component.menubar.MenuItemRenderer.encodeBegin(MenuItemRenderer.java:185)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
      at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:339)
      at com.icesoft.faces.component.menubar.MenuBarRenderer.encodeChildren(MenuBarRenderer.java:94)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
      at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:341)
      at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:97)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:174)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:106)
      at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:54)
      at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:38)

      When I remove the child Items (the page still contains other iceFaces tags), the issue leads me staright to issue # JBSEAM-827.

      Hence I am not able to use Seam E-mail with ICEFaces together.

      Things I used:
      ============
      mail Template (same as it is in Seam Examples):
      <m:message xmlns="http://www.w3.org/1999/xhtml"
      xmlns:m="http://jboss.com/products/seam/mail"
      xmlns:h="http://java.sun.com/jsf/html">

      <m:from name="Peter" address="peter@example.com" />
      <m:to name="#

      {person.firstname} #{person.lastname}">#{person.address}</m:to>
      <m:subject>Try out Seam!</m:subject>
      <m:body>
      <p><h:outputText value="Dear #{person.firstname}

      " />,</p>
      <p>You can try out Seam by visiting <a href="http://labs.jboss.com/jbossseam">http://labs.jboss.com/jbossseam</a>.</p>
      <p>Regards</p>
      <p>Peter</p>
      </m:body>
      </m:message>

      menu Items:
      =============
      <ice:form id="menu" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:ice="http://www.icesoft.com/icefaces/component">
      <ice:panelGroup id="menupanel" styleClass="formBorderHighlight">
      <ice:menuBar id="menubar" orientation="horizontal">
      <ice:menuItem value="Parent 1">
      <ice:menuItem value="Child 1" />
      </ice:menuItem>
      </ice:menuBar>
      </ice:panelGroup>
      </ice:form>

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jguglielmin judy guglielmin
                  Reporter:
                  karthikjboss Karthikeyan Pattabiraman
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: