The Artima Developer Community
Sponsored Link

Java Answers Forum
How to come out from frame

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
vinutha ml

Posts: 3
Nickname: vinutha
Registered: Nov, 2006

How to come out from frame Posted: Nov 8, 2006 12:37 AM
Reply to this message Reply
Advertisement
I have designed one login page which has 2 textbox & one command button, after giving valid username & password & then after clicking command button, the page will navigate to welcome page.

This is my code for the welcome.xhtml,

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Frameset.dtd">
<html 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:t="http://myfaces.apache.org/tomahawk" >


<frameset rows="26%,*" border="0" frameborder="0">
<frame name="f1" src="heading.jsf" scrolling="no" noresize="noresize" />
<frameset cols="25%,*">
<frame name="f2" src="menuTree.jsf" scrolling="no" noresize="noresize" />
<frame name="f3" src="body.jsf" scrolling="auto" noresize="noresize" />
</frameset>
</frameset>

</html>

I have one command button for logOut in body.xhtml page.
This is the code for that logOut command button,
<h:commandButton value="Log Out" rendered="true" action="#{logOutManagedBean.logOut}" />

after clicking that logout button, i am giving again login.xhtml as success page.
I am getting that login page also when i click that logOut button but that page is displaying only in body part ie. body.xhtml part, but i want that resultant page to be displayed on entire screen without any frames.

How to solve this problem,
Regards,
Vinutha.

Topic: How to come out from frame Previous Topic   Next Topic Topic: Vector trouble

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use