Title: MYFaces and frames

Hi,

I'm trying to create a prototype of Frames and MyFaces. My index.jsp looks like the below. At present my header.jsp and navtree.jsp do not have anything other than a out.println under <f:view> tag. Whenever I access the application, I get this error.

Is there any best practices to work with frames? How is the page rendered. Should each jsp file under each frame should be included in <f:subview> instead of <f:view>.


org.apache.jasper.JasperException
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
        javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:646)
        javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:254)
        org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:90)
        org.apache.jsp.index_jsp._jspx_meth_f_view_0(org.apache.jsp.index_jsp:80)
        org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:56)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



<%@ page language="java" contentType="text/html" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<f:view>
<frameset rows="46,*" frameborder="yes" framespacing="0" border="2">
    <frame src="" name="header" scrolling="no" noresize="noresize"/>
    <frameset cols="20%,80%" border="2" frameborder="no" framespacing="2" >
        <frame src="" name="navigation" frameborder="no"/>
        <frameset rows="90%,22" frameborder="no" framespacing="0">                               
        </frameset>
    </frameset>
</frameset>
</f:view>



Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

Reply via email to