You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Balaji Saranathan <ba...@wipro.com> on 2005/07/27 17:17:26 UTC
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.ja
va: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.jav
a: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.ja
va: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="header.jsf" name="header" scrolling="no"
noresize="noresize"/>
<frameset cols="20%,80%" border="2" frameborder="no"
framespacing="2" >
<frame src="navtree.jsf" 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 Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.
Re: MYFaces and frames
Posted by Martin Marinschek <ma...@gmail.com>.
As for intermingling text and JSF tags - JSF 1.2. is also going to fix that,
so you'll be happy even staying with JSP.
regards,
Martin
On 7/28/05, Maksimenko Alexander <ma...@bird.cris.net> wrote:
>
> Balaji Saranathan wrote:
>
> > I know....Heard very often of the saying " Frames are Evil" ;-) But
> > there is one thing that we do not want to compromise on...
> > It is the resizing of the width of the navigation tree on the left. I
> > know horizontal scroll bars will help but our user interface guide
> > lines do not accept that. The user should have the facility to drag
> > the width of the navigation tree on the left, just like how you do on
> > the Eclipse Navigation View Pane.
> >
> We had the same problem. And firstly begin to work with frames but got
> many problems using them. One of them is architectural because for every
> server side action you should decide weather we need refresh neighbor
> frames or not. And it was problem - it can be solved but not very cleanly.
>
> Now we use tiles and task about resizing was solved by our good
> javascript-er ;)
> Only thng that I dont like it's necessity to wrap any text with
> verbatium tag. It realy makes js page not readable. So we look forward
> for tapestry like component definition ;)
>
>
> > I have not come across any solution for this other than frames yet.
> > Probably a custom container component similar to JScrollPane in
> > Java Swing might help. But such a component on the HTML rendering??
> > *sigh* Need a lot of time for me to do that which is not at our
> disposal.
> >
> >
> > -----Original Message-----
> > *From:* Martin Marinschek [mailto:martin.marinschek@gmail.com]
> > *Sent:* Wednesday, July 27, 2005 1:09 PM
> > *To:* MyFaces Discussion; joerg@artaker.at
> > *Subject:* Re: MYFaces and frames
> >
> > Well,
> >
> > you are certainly right with that ;)
> >
> > regards,
> >
> > martin
> >
> > On 7/27/05, *joerg@artaker.at <ma...@artaker.at>*
> > <joerg@artaker.at <ma...@artaker.at>> wrote:
> >
> > hi i know this is probably not the answer you like, but why do
> > you want
> > to use a frameset? wouldn't it be better to use tiles, frames
> > always
> > cause problems, especially dealing withbowser compatibility
> >
> > Balaji Saranathan wrote:
> >
> > > 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
> > <http://java.sun.com/jsf/core>" prefix="f" %>
> > >
> > > <f:view>
> > > <frameset rows="46,*" frameborder="yes" framespacing="0"
> > border="2">
> > > <frame src=" header.jsf" name="header" scrolling="no"
> > > noresize="noresize"/>
> > > <frameset cols="20%,80%" border="2" frameborder="no"
> > > framespacing="2" >
> > > <frame src="navtree.jsf" 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 Mailadmin@wipro.com <ma...@wipro.com> immediately
> > > and destroy all copies of this message and any attachments.
> > >
> >
> >------------------------------------------------------------------------
> >
> > >
> > >No virus found in this incoming message.
> > >Checked by AVG Anti-Virus.
> > >Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date:
> > 25.07.2005
> > >
> > >
> >
> >
> >
> >
> >
> > 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 Mailadmin@wipro.com immediately
> > and destroy all copies of this message and any attachments.
> >
>
>
Re: MYFaces and frames
Posted by Maksimenko Alexander <ma...@bird.cris.net>.
Balaji Saranathan wrote:
> I know....Heard very often of the saying " Frames are Evil" ;-) But
> there is one thing that we do not want to compromise on...
> It is the resizing of the width of the navigation tree on the left. I
> know horizontal scroll bars will help but our user interface guide
> lines do not accept that. The user should have the facility to drag
> the width of the navigation tree on the left, just like how you do on
> the Eclipse Navigation View Pane.
>
We had the same problem. And firstly begin to work with frames but got
many problems using them. One of them is architectural because for every
server side action you should decide weather we need refresh neighbor
frames or not. And it was problem - it can be solved but not very cleanly.
Now we use tiles and task about resizing was solved by our good
javascript-er ;)
Only thng that I dont like it's necessity to wrap any text with
verbatium tag. It realy makes js page not readable. So we look forward
for tapestry like component definition ;)
> I have not come across any solution for this other than frames yet.
> Probably a custom container component similar to JScrollPane in
> Java Swing might help. But such a component on the HTML rendering??
> *sigh* Need a lot of time for me to do that which is not at our disposal.
>
>
> -----Original Message-----
> *From:* Martin Marinschek [mailto:martin.marinschek@gmail.com]
> *Sent:* Wednesday, July 27, 2005 1:09 PM
> *To:* MyFaces Discussion; joerg@artaker.at
> *Subject:* Re: MYFaces and frames
>
> Well,
>
> you are certainly right with that ;)
>
> regards,
>
> martin
>
> On 7/27/05, *joerg@artaker.at <ma...@artaker.at>*
> <joerg@artaker.at <ma...@artaker.at>> wrote:
>
> hi i know this is probably not the answer you like, but why do
> you want
> to use a frameset? wouldn't it be better to use tiles, frames
> always
> cause problems, especially dealing withbowser compatibility
>
> Balaji Saranathan wrote:
>
> > 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
> <http://java.sun.com/jsf/core>" prefix="f" %>
> >
> > <f:view>
> > <frameset rows="46,*" frameborder="yes" framespacing="0"
> border="2">
> > <frame src=" header.jsf" name="header" scrolling="no"
> > noresize="noresize"/>
> > <frameset cols="20%,80%" border="2" frameborder="no"
> > framespacing="2" >
> > <frame src="navtree.jsf" 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 Mailadmin@wipro.com <ma...@wipro.com> immediately
> > and destroy all copies of this message and any attachments.
> >
> >------------------------------------------------------------------------
>
> >
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date:
> 25.07.2005
> >
> >
>
>
>
>
>
> 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 Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>
Backing Bean Question - Please Help
Posted by Jay Kaul <Ja...@notes.ntrs.com>.
We have created a parent JSP page which references a Backing Bean (in
session scope). The reason is the parent maintains a list of children and
needs to keep track of changes on the child pages. The child pages(in
tabbed-panes) refer to a Common-Child Backing Bean(again in session
scope).
The problem is as follows:
1) The child pages as mentioned are sharing the Backing Bean. Is there a
way for each child page to Invoke a new Instance of the Backing Bean, so
that if the child pages share same properties, they could have different
values.
2) If the two child pages are similar (same JSP's) but different
instances(included twice in the parent). The Backing Bean just replicates
the data in both JSP's. Is there a way to say, Yes we are creating a child
which the EL already knows about, but this time it is a Different Instance
of the Same Backing Bean.
I am not sure if MyFaces or RI supports Multiple Instances of Backing
Beans.
Any help will be highly appreciated.
Thanks and Regards,
Jay Kaul
RE: MYFaces and frames
Posted by Balaji Saranathan <ba...@wipro.com>.
I know....Heard very often of the saying " Frames are Evil" ;-) But
there is one thing that we do not want to compromise on...
It is the resizing of the width of the navigation tree on the left. I
know horizontal scroll bars will help but our user interface guide lines
do not accept that. The user should have the facility to drag the width
of the navigation tree on the left, just like how you do on the Eclipse
Navigation View Pane.
I have not come across any solution for this other than frames yet.
Probably a custom container component similar to JScrollPane in Java
Swing might help. But such a component on the HTML rendering?? *sigh*
Need a lot of time for me to do that which is not at our disposal.
-----Original Message-----
From: Martin Marinschek [mailto:martin.marinschek@gmail.com]
Sent: Wednesday, July 27, 2005 1:09 PM
To: MyFaces Discussion; joerg@artaker.at
Subject: Re: MYFaces and frames
Well,
you are certainly right with that ;)
regards,
martin
On 7/27/05, joerg@artaker.at <jo...@artaker.at> wrote:
hi i know this is probably not the answer you like, but why do you want
to use a frameset? wouldn't it be better to use tiles, frames always
cause problems, especially dealing withbowser compatibility
Balaji Saranathan wrote:
> 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.jav
a: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.ja
va: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
<http://java.sun.com/jsf/core> " prefix="f" %>
>
> <f:view>
> <frameset rows="46,*" frameborder="yes" framespacing="0" border="2">
> <frame src=" header.jsf" name="header" scrolling="no"
> noresize="noresize"/>
> <frameset cols="20%,80%" border="2" frameborder="no"
> framespacing="2" >
> <frame src="navtree.jsf" 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 Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>
>-----------------------------------------------------------------------
-
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date:
25.07.2005
>
>
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 Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.
Re: MYFaces and frames
Posted by Martin Marinschek <ma...@gmail.com>.
Well,
you are certainly right with that ;)
regards,
martin
On 7/27/05, joerg@artaker.at <jo...@artaker.at> wrote:
>
> hi i know this is probably not the answer you like, but why do you want
> to use a frameset? wouldn't it be better to use tiles, frames always
> cause problems, especially dealing withbowser compatibility
>
> Balaji Saranathan wrote:
>
> > 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="header.jsf" name="header" scrolling="no"
> > noresize="noresize"/>
> > <frameset cols="20%,80%" border="2" frameborder="no"
> > framespacing="2" >
> > <frame src="navtree.jsf" 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 Mailadmin@wipro.com immediately
> > and destroy all copies of this message and any attachments.
> >
> >------------------------------------------------------------------------
> >
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25.07.2005
> >
> >
>
>
>
Re: MYFaces and frames
Posted by "joerg@artaker.at" <jo...@artaker.at>.
hi i know this is probably not the answer you like, but why do you want
to use a frameset? wouldn't it be better to use tiles, frames always
cause problems, especially dealing withbowser compatibility
Balaji Saranathan wrote:
> 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="header.jsf" name="header" scrolling="no"
> noresize="noresize"/>
> <frameset cols="20%,80%" border="2" frameborder="no"
> framespacing="2" >
> <frame src="navtree.jsf" 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 Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25.07.2005
>
>
RE: MYFaces and frames
Posted by Mariano Petrakovsky <mp...@tecnonexo.com>.
MYFaces and framesMake this...
in your index.jsp put only the frameset
<frameset rows="46,*" frameborder="yes" framespacing="0" border="2">
<frame src="header.jsf" name="header" scrolling="no"
noresize="noresize"/>
<frameset cols="20%,80%" border="2" frameborder="no" framespacing="2" >
<frame src="navtree.jsf" name="navigation" frameborder="no"/>
<frameset rows="90%,22" frameborder="no" framespacing="0">
</frameset>
</frameset>
</frameset>
without the jsf tags.
Then... into the header, navtree and other frames... put the f:view, one for
each file...
example:
---- header.jsp ---
<html>
<body>
<f:view>
....
....
</f:view>
</body>
</html>
---- navTree.jsp ---
<html>
<body>
<f:view>
....
....
</f:view>
</body>
</html>
--
Mariano G. Petrakovsky
Programmer . Software Factory
AXG Tecnonexo - www.tecnonexo.com
Development facilities:Av. Maipu 1252 8o (C1006ACT) . Buenos Aires .
Argentina.
Tel.: (54-11) 4878-0005 - Fax: (54-11) 4878-0065.
Headquarters: 1604 Spring Hill Road, Suite 160 Vienna . VA 22182 . USA.
Tel.: (202) 986-7541 - Fax: (202) 787-3891.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . .
-----Mensaje original-----
De: Balaji Saranathan [mailto:balaji.saranathan@wipro.com]
Enviado el: Miercoles, 27 de Julio de 2005 12:17
Para: 'MyFaces Discussion'
Asunto: 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:3
73)
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:64
6)
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:3
25)
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="header.jsf" name="header" scrolling="no"
noresize="noresize"/>
<frameset cols="20%,80%" border="2" frameborder="no" framespacing="2"
>
<frame src="navtree.jsf" 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 Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.