473,382 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to come out from frame

19
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.
Nov 8 '06 #1
3 2267
Vinutha
19
I have welcome page which code is like this,
This page will display after login page.

<!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 in body.xhtml page, after clicking that button, i want to dipaly login page again without any frame, ie. i want to display that page entire screen, but in my case its displaying only in body page.

How to solve this problem,
Regards,
Vinutha.
Nov 8 '06 #2
Vinutha
19
I have welcome page which code is like this,
This page will display after login page.

<!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 in body.xhtml page, after clicking that button, i want to dipaly login page again without any frame, ie. i want to display that page entire screen, but in my case its displaying only in body page.

How to solve this problem,
Regards,
Vinutha.
Nov 8 '06 #3
AricC
1,892 Expert 1GB
Stop triple posting.
Nov 8 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: |-|erc | last post by:
Hi! Small challenge for you. The index.php uses this file and calls layout(). Take a look at www.chatty.net this file draws the chat login box on the right. I traced the CHAT button it submits...
9
by: Bennie | last post by:
Hi all, I have a little problem. def tekst_in(self, tag): tekst_tag={'p': '\t\t<p>\n\n\t\t</p>\n', 'br': '<br />'} print tekst_tag works fine in my class But...
1
by: mailing | last post by:
Hello, I am hoping that someone can point me in the right direction. I have 4 frames to my site. Two Rows, Two Columns. |--------------------------------|-------------------------| | ...
17
by: Bruno | last post by:
I have a feature that is hosted on a different domain from the primary one in a frame, and need to retain values in a cookie. example: A web page at one.com contains a frame which has a page...
11
by: Rob | last post by:
I know, I know, don't use frames. Well, I'm stuck with these frames and I'm trying to add functionality without a complete redsign. You can look at this as a nostalgic journey. Anyway, I've got...
0
by: Vinutha | last post by:
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...
4
by: tudyfruity18 | last post by:
I'm suppose to write an applet that contains two buttons Investment calculator and Loan Calculator. When the Investment Calculator button is clicked, a frame appears in a new window for calculating...
0
oll3i
by: oll3i | last post by:
I want the get the value of attribute frame of selected node from xml and go to that frame my menu.xml <node label="» LEKCJA 1"> <node label="Dialog 1" frame="4" /> <node label="Słówka 1"...
1
by: v13tn1g | last post by:
so basically..what i have done is created a database, populated it and call that database from the GUI. When a user searches something in the database through the GUI, the result of the query...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.