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" >
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.