1.) Tiles is working in MyFaces - no prob
2.) Tiles won't help you anything with client-side updates and resizing of frames

regards,

Martin

On 7/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
We use tiles (with different tiles-def files for english and french) with jsf without any hitches...
 
 
 
Mark
 


De : Balaji Saranathan [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 27 juillet 2005 14:58
À : 'MyFaces Discussion'
Objet : RE: MYFaces and frames

IMO, If you are using JSF, do not look at Tiles, particularly, if you are going to weave it into Frames.
It is not worth the effort ;-). I learnt it the hard way. The biggest problem in tiles and JSF I face is that the Tiles-Config.xml does not work in JSF environment. (Or maybe I'm missing something) which I think is the best thing about Tiles.
-----Original Message-----
From: Don Walters [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 27, 2005 2:52 PM
To: MyFaces Discussion
Subject: RE: MYFaces and frames

With some non-trivial _javascript_ it is possible to simulate the the resizing of panels using CSS panels or even HTML tables.
 
But the other nice thing about frames is that it supports a simplistic "partial update" mechanism.  That is, by using the 'target' attribute on an h:form + navigation rules, you can have a selection in one frame cause an update in a different frame.  This is pretty common behavior in non-web applications, and greatly improves the apparent responsiveness of the application.
 
I've heard that people have done things like using a zero-size-iframe and using _javascript_ to bit-blit into a CSS panel, but that sounds like a lot of work!
 
Is there another way in JSF or MyFaces to handle this?  Unlike most web developers, I have never looked at Tiles.  Does it provide some support for this?
 
Thanks,
Don


From: Balaji Saranathan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 27, 2005 10:49 AM
To: 'MyFaces Discussion'
Subject: RE: MYFaces and frames

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:[EMAIL PROTECTED]]
Sent: Wednesday, July 27, 2005 1:09 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: MYFaces and frames

Well,

you are certainly right with that ;)

regards,

martin

On 7/27/05, [EMAIL PROTECTED] < [EMAIL PROTECTED]> 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="" 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.
>
>------------------------------------------------------------------------
>
>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 [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.


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