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.js f" scrolling="no" noresize="nores ize" />
<frameset cols="25%,*">
<frame name="f2" src="menuTree.j sf" scrolling="no" noresize="nores ize" />
<frame name="f3" src="body.jsf" scrolling="auto " noresize="nores ize" />
</frameset>
</frameset>
</html>
I have one command button for logOut in body.xhtml page.
This is the code for that logOut command button,
<h:commandButto n value="Log Out" rendered="true" action="#{logOu tManagedBean.lo gOut}" />
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.
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.js f" scrolling="no" noresize="nores ize" />
<frameset cols="25%,*">
<frame name="f2" src="menuTree.j sf" scrolling="no" noresize="nores ize" />
<frame name="f3" src="body.jsf" scrolling="auto " noresize="nores ize" />
</frameset>
</frameset>
</html>
I have one command button for logOut in body.xhtml page.
This is the code for that logOut command button,
<h:commandButto n value="Log Out" rendered="true" action="#{logOu tManagedBean.lo gOut}" />
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.
Comment