How to come out from frame

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vinutha
    New Member
    • Nov 2006
    • 19

    How to come out from frame

    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.
  • Vinutha
    New Member
    • Nov 2006
    • 19

    #2
    How to come out from a frame

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

    Comment

    • Vinutha
      New Member
      • Nov 2006
      • 19

      #3
      About frame

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

      Comment

      • AricC
        Recognized Expert Top Contributor
        • Oct 2006
        • 1885

        #4
        Stop triple posting.

        Comment

        Working...