Frames In Jsf

Firends
i want to set url of the frame in jsf. i can set web url but i can't set the jsp page in there. when i set a jsp page its showing Faces context not found ...

Explain better!

Similar Messages

  • Using Frames in JSF

    Can anyone provide an example on how to use frames inside JSF? I don't know how to define the framesets inside the jsf file. A simple example will go a long way. Thanks.

    Nope, I'm not big on samples, especially of code I've never tried to write. Give it a try, if you have a problem post your code and we'll take a look.

  • Split frame in JSF

    Hi everybody !
    I have a problem with frame when use JSF. . In html, we use tag <a> and target attribute to display wanted pages in the right frame. But in JSF, we use navigation System (XML), so how can we control it?????

    JavaServer Faces is not an HTML specific Web technology.
    I think the best approach for using JSF is NOT TO USE functionalities that is dependant on a
    particular mark-up language environment.
    <quote>
    Usual mobile devices have small size of screens, and some of them support only
    textual information. Frames strongly depend on screen interface, and are not part
    of the HTML 4.0 Strict. Therefore, frames should not be used.
    </quote>
    from: http://www.w3.org/TR/1999/NOTE-html40-mobile-19990315/

  • Navigation between 2 frames in JSF

    Hi,
    I have 2 frames. I want to change the right frame when pressing a link on the left frame. How can I do so in JSF?
    Thanks,
    Eran
    Message was edited by:
    Eran

    Hi Fernand,
    I guess by now you can easily understand the reason behing this error. The obvious reason is because you cannot create a cycle while defining the used components.
    in you scenario you are using the component A in component B as used component and then again to come back to component A you are using Component B in component A as used component. This has created a cycle and therefore the cyclic dependencies.
    This kind of component usage is not allowed. Instead just check whether you can resolve this issue by ysing another compoent which can be a launch component? Like this:
                                                    Component C
                                       Component A             Component B
    I hope using this kind of architecture you can resolve this cyclic dependency.
    Thanks and Regards,
    Pravesh

  • Example of using frames in JSF

    I am considering using frames in my JSF/JSP page but am having trouble getting started. I'd like to display my page as
    Frame 2 | Frame1
    Frame 3 |
    I started using iFrames in my JSP page but because I needed Frame1 to be resizable, I dropped iFrames and started using Frames.
    I wrote my JSP page to contain these frames. My JSF project compiles successfully but at runtime, my page appears blank in the browser window.
    Can someone give me an example of using frames in a JSF/JSP page or point out the error in my JSP.
    My page looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{Page1.page1}" id="page1">
    <ui:html binding="#{Page1.html1}" id="html1">
    <ui:head binding="#{Page1.head1}" id="head1">
    <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{Page1.body1}" id="body1">
    <frameset rows="16%,84%">
    <frame name="top" src="faces/overview/overview.html"/>
    <frameset cols="30%,70%">
    <frame name="left" src="faces/overview/leftPage.jsp"/>
    <frameset rows="20%,80%">
    <frame name="right" src="faces/overview/rightPage.jsp"/>
    <frame name="right2" src="faces/overview/rightPage.jsp"/>
    </frameset>
    </frameset>
    </frameset>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    thanks,
    tsc

    <frameset> should not be the child of the <body> element. It should be the child of <html> element.
    This works:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page id="page1">
    <ui:html id="html1">
    <ui:head id="head1">
    <ui:link id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <frameset cols="30%,70%">
    <frame name="left" src="faces/Page1.jsp"/>
    <frameset rows="80%,20%">
    <frame name="top" src="faces/rightPage.jsp"/>
    <frame name="bottom" src="faces/bottomPage.jsp"/>
    </frameset>
    </frameset>
    </ui:html>
    </ui:page>
    </f:view>
    <ui:form binding="#{bean.form1}" id="form1"/>
    </jsp:root>
    thanks,
    tsc

  • By using div or frames in jsf such as visisble and hidden

    hi
    i have 2 buttons in my page if i click on one i want to show one DIV or IFRAME
    and on click of second button it should show second DIV of IFRAME
    can some one send me code snippet or guide me how to do it as jsf is not recognising div in the jsf page.
    i placed between div between verbatim tags also.
    looking forward for ur help
    thansk in advance

    should be done with javascript
    like so
    function changeDisplay(elmnt)
    if(document.getElementById(elmnt).style.visibility=="visible")
    document.getElementById(elmnt).style.visibility="hidden";
    document.getElementById(elmnt).style.display="none";
    else
    document.getElementById(elmnt).style.visibility="visible";
    document.getElementById(elmnt).style.display="";
    then have
    onclick= changeDisplay(id of div)
    if you dont want to use javascript
    check out the rendered attribute and use panelGrids but this will require a round trip to the server

  • How can i work with frames in html

    i am working with frames and jsf
    left side is one.jsf
    right side is login.jsf
    frame
    one.jsf | login.jsf
    ............ |.................
    .............|...............
    ............ |...................
    after login is successful . i am in success.jsf in right frame
    1.e
    frame
    one.jsf | success.jsf
    ................... |........................
    .................... |.......................
    ----------------|-----------------
    then if i am refreshing the content by refresh button.
    again i am getting login.jsf on right side which i don't want.
    1.e
    FRAME
    one.jsf | login.jsf
    ............. |..................
    .............. |..................
    ------------|-------------
    but what i want is even after refresh i have to get success.jsf after login like this what to do
    FRAME
    one.jsf | success.jsf
    ............... |.....................
    ................ |.......................
    -------------|------------------
    with regards

    You need to convert the string date to datetime or date. See conversion examples here:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Example for the where clause:
    WHERE DATEDIFF(DD, convert(datetime, lastdate, 101), getdate() ) < 1
    Can you post sample string dates?
    Are you looking for today's records? Another option (depends on lastdate format):
    WHERE lastdate = convert(char(8), getdate(), 112)
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How can i get rich faces library in netbeans

    Hi  ,
       when i make new web applications in Netbeans 7.4 and choose Jsf Frame workd ( jsf 2.2 )
       and when i choose the RichFaces components it give me the message
      ( JSF Library RichFaces not setup properly . see list of mandatory jars )
    i made download for the following jars
      richfaces-components-api-4.1.0.Final.jar
    richfaces-components-ui-4.0.0.Final.jar
    richfaces-core-api-4.2.2.Final.jar
    richfaces-core-impl-4.0.0.Final.jar
    sac-1.3-src.jar
    guava-15.0.jar
    cssparser-0.9.4.jar
    and include the previous jars to the application but still
    give me the message ( No Complete RichFaces Library Found ....)
         how can i get the missing library of rich faces ?

    Hi
    what do you mean by saying "happy faces"? Do you mean smileys like :-) ?
    regards
    Marcel

  • Calling two servlets frm one browser window

    My html page ahve 3 frames
    and for 2 frames src are two difft. servlets and for one frame its static html file
    <html>
    <frameset rows="80%,20%">
    <frameset cols="50%,50%">
    <frame src="../servlet/CmdOutput">
    <frame src="../servlet/AutoMsg">
    </frameset>
    <frame src="../servlets/CLI.htm">
    </frameset>
    <html>these two servlets are almost same... but browsers take too much time to laod it
    (Except old Netscape 4.7 work fine)
    instead when i remove one frame
    <html>
    <frameset rows="80%,20%">
    <frame src="../servlet/CmdOutput">
    <frame src="../servlets/CLI.htm">
    </frameset>
    <html>this works pretty fine....
    any idea why ???????

    You can probably accomplish what you want to do using frames. JSF might also be another technology that could help here depending on how you structure your application.

  • How do you make JSF draw frame in browser w/o JSP & HTML ?

    Hi all,
    I already have small web application which uses HTML & JSP and I want to convert it to JSF based application.
    I've read O'Reilly JSF books written by Hans Bergsten and in Chapter 15 he states that you can use pure Java classes only (without JSP & HTML) in your web application.
    My web application contains some frames. Since I only want to use pure Java classes using JSF what component should I use to draw frame ?
    I use MyFaces implementation of JSF.
    Any advice would be greatly appreciated.
    Best Regards,
    Setya

    I don't know anything about myFaces, but as far as I know, there is no component to draw frames. The JSF book you read is correct to a degree... It's possible to write completely with JSF tags, but it can be cumbersome sometimes.
    To output frame tags using a JSF tag, you can use one of two methods.
    First, you can use the outputText tag with escape attribute set to false.
    <h:outputText value="<FRAMESET blah blah blah>" escape="false" />The second way is to just wrap HTML in f:verbatim tags.
    <f:verbatim><FRAMESET blah blah blah></f:verbatim>If using the second method, be careful not to have any other JSF tags inside the f:verbatim tags.
    Hope this helps,
    CowKing

  • JSF seems not to support the use of the back buttons and html frames.

    I�m having the following problem. I have a JSP which contains a button that register a listener. Here is part of the code:
    <h:command_hyperlink label="<%=engineBean.getId()%>" commandName="<%=engineBean.getId()%>">
    <f:action_listener type="helloDuke.CommandAction"/>
    </h:command_hyperlink>
    This action listener only forwards the request to other simple JSP.
    The problem appears in the following situation:
    1 � I click in the button that generates the event that will be processed by helloDuke.CommnadAction listener.
    2 � It forward to a second JSP page.
    3 � This second page is rendered to the user properly.
    4 � The user clicks in the browser�s back button to return to previous page.
    Then if is the user clicks in first page button, the CommandAction listener was removed. You must click again in the button to forward to the correct page.
    The same happened if you are using html frames. If you have a frame with 2 pages and both pages register action listeners.
    The last loaded page cleans the actions listener of the other.
    Does anybody have any solution?.
    It seems JSF doesn�t support the use of frames and I think that in some situation the frames are the solution to several problems.
    Any help will be really appreciated.

    Using the saveStateInClient=true produces a faulty output when using the command_button and an action_listener. The page that is rendered is totally useless: the button won't work, and due to the faulty rendering there's an output like: >com.sun.faces.saveStateMarker
    So, why is it, that pressing the button (not using the saveStateInClient option) will only work the second time, same thing pressing the backbutton. Pressing the reload button will toggle between two pages - the one before the session id is assigned and the one that it's supposed to show.
    Any guess will be greatly appreciated !!!!

  • How to use frames in a jsf page

    hi all,
    I need my page to be divided into three frames each frame with scrollable option. Each page should be able to display different jsp pages.Can anyone give a solution how can i implement this in a jsf page
    regards,
    Prasant

    Hello Prasant,
    I think page fragments is what your after, one of the Sun guys did a good blog on page layout with jspf but i can't access the weblogs, but you could try this tutorial in the meantime:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/pagefragments.html
    Then search the weblogs when its available. i hope this helps
    Cheers
    Gaz

  • Working on JSF with Frames

    Hi All,
    I am currently working on JSF with Frames. I was able to have the frames implemented in JSF. I have 4 frames with the following layout
    Frame1
    Frame2 | Frame3
    ------------------------------------------

    Sorry, the question is
    I have a commandNavigationItem (list) in frame2 and when I click on one of the component of the navigation list, I want to the JSF page loaded in Frame3.
    Currently it is getting loaded in Frame2 itself. i did set the targetFrame parameter of commandNavigationItem but still it loads in Frame2 itself.
    Please help
    KVDY

  • JSF facet without frames - is it possible?

    Is it possible to avoid frames in html code while using facets?

    I don't use frames. This is my main template file (xhtml):
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html
         PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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:a4j="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich"
          xml:lang="en" lang="en">
    <f:view contentType="text/html">
        <head>
            <title>title</title>
        </head>
        <body>
        <h:panelGrid>
        <!--header-->
        <f:facet name="header">
            <ui:include src="header.xhtml"/>
        </f:facet>
        <!--left menu and login form-->
        <h:panelGroup>
            <ui:include src="leftmenu.xhtml"/>
        </h:panelGroup>
        <!--body of page-->
        <h:panelGroup>
            <rich:spacer width="1" height="5"/>
            <ui:insert name="body">Default Body</ui:insert>
            <rich:spacer width="1" height="5"/>
        </h:panelGroup>
        <!--footer-->
        <f:facet name="footer">
            <ui:include src="footer.xhtml"/>
        </f:facet>
        </h:panelGrid>
        </body>
    </f:view>
    </html>I was trying to read something about frames here:
    https://facelets.dev.java.net/nonav/docs/dev/docbook.html
    but I didn't find anything:(
    Can you help me?

  • Unable to manage JSF tabSet in frame(jsp page)

    i am using frameset in jsp page and in top frame i m placing the jsp file which contains the JSF tabSet with 4 tabs and i have set the url proerty and target ='bottom" i.e the name of lower frame
    i am able to navigate the pages in lower frame but not able to keep focus for selected tab.

    Hi,
    You could try using page fragment instead of frames.
    There is a relevant topic on EA discussion.
    Topic :TabSet navigation on a page fragment
    https://feedbackprograms.sun.com/project/forum/thread.html?cap={3F4DA363-16D3-4D4C-920C-992ECB054B6D}&forid={CC6B8562-F896-4A44-ACB6-4684BDD05E19}&topid={DFA961CF-157A-4E7C-9BBC-FDB69D982E9E}
    Hope this helps.
    Thanks,
    RK.

Maybe you are looking for