Including a web page in my jsf

Hi,
I have a tabbed panel (I'm using myfaces' tomahawk) and I want to include in one tab the content of another web page.
Is it possible ?
Thank you.

Yes.
Like this:
<jsp:include page="includedPage.jsp" flush="true"/>
The page must be like this:
<f:subview id="idofincludedpage">
</f:subview>

Similar Messages

  • Including a JSP page into a JSF page

    Hi !!
    I have read some posts here about <f:subwview>. There says to use:
    <f:subview>
       <jsp:include page="somepage.jsp"/>
    </f:subview>But it does not work.
    How can i include a jsp page into a JSF page?
    Thanks !!!

    Hi,
    Replace <jsp:include page="somepage.jsp">
    with <%@ include file="datasetView.jspf" %>
    See thread: http://forum.java.sun.com/thread.jspa?messageID=3413354&#3413354

  • Problem when using inlineFrame to include external web page.

    I built a ADF web application which include some external web pages.
    I use the ADF components: panelTabbed + showDetailItem + inlineFrame.
    Each tab is point to a external web page. see my code belows:
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="showDetailItem 1" id="sdi1"
    disclosureListener="#{myBackingBean.disclosureListener}">
    <af:inlineFrame source="http://www.baidu.com" id="ilf1" shortDesc="4444444444"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 2" id="sdi2">
    <af:inlineFrame id="if1" source="query_refresh_by_poll_2.jsf"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 3" id="sdi3">
    <af:inputText label="Label 1" id="it1"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 3" id="sdi4">
    <af:inlineFrame id="if2" source="untitled2.jsf"/>
    </af:showDetailItem>
    </af:panelTabbed>
    It almost done except one thing: When I switched the tab back and forth, the input parameter in the previous tab will be lost.
    It seems af:inlineFrame always reload the page and clear every input by user !
    How to preserve the user input when switched the tab back and forth?
    Thanks.

    Hi Frank, thanks for you reply.
    Let me explain my case again to make sure you know what I want to do.
    because I do think it is a usual requirment, I want you give me a clear answer about it.
    In my ADF web App, I have 3 pages: main.jsf,untitled1.jsf,untitled2.jsf
    main.jsf content:
    <af:form id="f1">
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="showDetailItem 1" id="sdi1">
    <af:inlineFrame id="if1" source="untitled1.jsf"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 2" id="sdi2">
    <af:inlineFrame id="if2" source="untitled2.jsf"/>
    </af:showDetailItem>
    </af:panelTabbed>
    </af:form>
    untitled1.jsf content:
    <af:inputText label="Label 1" id="it1"/>
    untitled2.jsf content:
    <af:inputText label="Label 1" id="it1"/>
    Run main.jsf, in tab1, fill someting in the inputText, then click tab2, then click tab1 back, the input text that I just entered was cleared.
    I want to keep the user input when switch between the tabs.
    Is it possible in ADF?

  • How to include other web page in servlet response?

    Is there any way how to include the contents from some other web page in my own response? For example, I wish to printout some text and below that to put the complete contents of let's say Google's page, so something like:
    include("www.google.com");
    ...So far I found that I can either redirect to that page and l fully lose the control or include the contents of the other jsp or servlet that I made in the same project. I know I can just send the request to that outside page and read the response and print it out on my page, but the problem is when there is a JavaScript and I can't get the rendered contents but just that script. Also, I will not be able to see the images in that case, so I prefer to give the command to web browser to render and show it for me.
    Thanks a lot for any help!

    I already tried with streams but then just original source is written, so it means that if it is calling some scripts I will get JavaScript code instead of executed result. I thought I must somehow make the browser to process the page and just display the output because it knows how to deal with scripts.

  • How to include non web pages to the "Create PDF from Web Page" feature?

    In Acrobat Pro (v. 10), when I use the "Create PDF from Web Page" feature, it works great for html pages, but it skips non-html links (doc, pdf, ppt, xls, etc). I need Acrobat Pro to convert those files and put them in the order as well. I don't see an option for this in settings. Is there ANY way I can do this? This is for an archiving purpose and I have 10,000 plus files to convert. Please help.

    This is a question i'm trying to answer too. My issue is that I have a PDF file which itself contains links to both DOC and PDF files. The end result is that I need one consolidated PDF containing all the linked files (in order).
    I can run the "create from web page" on this PDF file, and it'll download them, but not convert them. It just adds them as "jumbled" text to the end of the document. I need it to download, convert, and then append them.
    So, as isunshine3 asked above, any way to have Adobe convert the files that it finds linked when running the "create from web page"?
    THanks
    Matt

  • Include another web page content

    Hi All,
    I'm currently looking for a new job, but there are sooooo many job sites. I want create a .jsp to go to all the different sites and select the "search" for me to show it all in one big page.
    eg. If I pass it this string "http://forum.java.sun.com/post.jsp?forum=45"
    "http://forum.java.sun.com/post.jsp?forum=47"
    "http://forum.java.sun.com/post.jsp?forum=48"
    "http://forum.java.sun.com/post.jsp?forum=49"
    the document will contain only posts 45,47,48 and 49.
    Can it be done in JSP ??
    Please help me out with some code, I really need a job soon.
    Had a look at <jsp:include> but that woulld not work.
    Thanks for any help.
    P.S. I'm sure there is a lot of people who would like to do the same thing.

    See for example Request and Http custom tags from Coldtags suite:
    http://www.servletsuite.com/jsp.htm

  • How to include other site web page in my application?

    I have a web page lists all payment methods, when user select one of the payment type and then click the submit button, it will re-direct to the third party site for the payment. But I want to have my header in the third party web site, this means that I only change the content in my web site to the other site. How can I do this? I'm using JSF + Tile. Thanks

    I means include the web page which is come from other site in my application body.
    The layout is:
    | my company heading |
    |-------------------------------------|
    | |
    | body(payment web site) |
    | |
    |-------------------------------------|
    | my company footer |
    The customers will feel that they are doing the payment on our site, but actually they pay on the third party site, After payment, redirect back to our web page to show the result.

  • Why i am not able to get all the applets which are included in a page

    Hi All,
    I have two applet which are included in JSF pages, when try to print all the applets which are inculded in web page
    Using below code. but it is printing current applet(the applet which is using this code to print),
    i am not seeing the other applet in println statement.
    what could be reason (well when i made a demo example it is printing all the applets which are included in web page)
    and is there any permission issues ( both applet are signed as well).
    can you please what could be the reason, thanks in advance.
    Enumeration enumw =   getAppletContext().getApplets();
                    while (enumw.hasMoreElements()) {
                        Applet element = (Applet)enumw.nextElement();
                        System.out.println("-------------applet name -------------------------------------->"+element.getName());
    }

    HI AndrewThompson64,
    thanks for your replay, i have increased dukes,
    one more thing i have tried is applet to javascript and from javascript to applet communication,
    but still i am not able to get other applet, when i tried call a javascript method i.e. doAlert(s) it calls, but i tried to print
    the other applet but it is not displaying it. the following code i have tried.
    <SCRIPT>
            function doAlert(s) {
                 alert(s);
                 alert(document.FloorPlanView);
                 alert("FloorPlanView "+document.applets["FloorPlanView"]);
                 alert("0 "+document.applets[0]);
                 alert("1 "+document.applets[1]);
                 alert("ScheduleProfileApplet "+document.ScheduleProfileApplet);
            </SCRIPT>let me tell you how the applet included in the webpage.
    mainmodule which include two jsp pages jsppage1.jsp and jsppage2.jsp
    and in jsppage1.jsp which includes a JSF page and it contains Applet
    <jsp:include page="ScheduleModule.jsp"/>and similarly same for the second applet.
    I need to look at applet communication through socket programing
    any help will be appreciated.

  • Opening a local web page on an iphone 3G

    I am preparing to buy an iphone. I have been able to find answers to all my quesitons except one. Help would be greatly appreciated.
    I maintain several web sites. They are very simple sites, just html and a little javascript window dressing. They contain photographs of items in my toy and sports card collection. I often need to refer to the photographs on the site while at collectible shows. I DON'T want to carry my laptop around anymore.
    Since the web speed isn't always fast, and I may sometimes not get a signal, I want to copy the folder containing the site to the iphone, which I believe I should be able to do. However, I need to be able open the web site stored locally on the iphone in a browser, and I can't seem to find out if I can do that or not, or if there is an app that would allow me to do this. If I were on my PC, I would open up IE and put in a drive letter and path to the index.html file and the site would open locally. I want to do the equivalent with the iphone if that is possible.
    Any help would be greatly appreciated.
    Thanks,
    Lewis Brooks

    You cannot, per se. The iPhone's file structure is not accessible as such, and the file transfer apps do not allow you to open the files in another app like Safari.
    There's a Mac app called FileMarkMaker that can store a file (including a web page) in Safari's bookmarks file, and it can then be accessed on the iPhone. If does that converting the file(s) to DataURLs. Something similar may be a workaround for you.

  • Strungling with HttpService and web page.

    Hello all,
    I'm testing the httpService with flex 4.
    I try to access a web page that is an ashx page that returns an xml, the content type of the page is application/xml.
    From my mxml view I use this script to get the data:
    protected function findByName(name:String):void{
                    srv.send();
    <s:HTTPService id="srv"
                           url="http://xx.xx.xx.xx/FlexHttpBinding/getemployees.ashx"
                           result="data=srv.lastResult.list.employee"
                           method="POST"
                           contentType="application/xml"
                           />
    I did setup the IIS7 website to accept anonymous access, so that should be ok.
    With this I get the error: 2032Stream Error.
    The url is correct so no idea what happens here.
    Any ideas ?

    Hi peart!
    I have not installed it either. I have tried with several compressed files:
    eclipse-jee-europa-linux-gtk.tar.gz
    wtp-all-in-one-sdk-R-2.0-200706260303-linux-gtk.tar.gz
    eclipse-SDK-3.3-linux-gtk.tar.gz. After extracts I update and installs WTP.
    All ways fails.
    Too try add "-Djava.library.path=.:/home/pilli/eclipse:/usr/share/java/swt" eclipse.ini file.
    I can works with jsp file with jsp editor, but when i try edit with web page editor, a jsf visual editor, eclipse breaks.
    I use KDE.
    Thanks!

  • Probably not the right place to be asking but....Java on web pages

    Create web pages using Java     ?     
    > create web pages using Java
    > demonstrate an understanding of how Java can be used in web pages
    > create graphics on web pages using Java
    The above is an objective from Edexcel's Higher National Diploma syllabus for the unit Java Programming.
    Another part of the syllabus, referring to this, talks about Javascript. Having contacted Edexcel and pointed out that Java and Javascript are different, I was told "oops we meant Java".
    Has anybody any idea what they might be expecting because I can't get them to answer any more queries.

    Create web pages using Java     ?     
    create web pages using Java
    demonstrate an understanding of how Java can beused in web pages
    create graphics on web pages using Javahe above is an objective from Edexcel's Higher
    National Diploma syllabus for the unit Java
    Programming.
    Another part of the syllabus, referring to this,
    talks about Javascript. Having contacted Edexcel and
    pointed out that Java and Javascript are different, I
    was told "oops we meant Java".
    Has anybody any idea what they might be expecting
    because I can't get them to answer any more queries.So do they mean Java or Javascript in web pages??
    Either way, if they got it mixed up then that is course you want to stay well away from.
    Java in web page = JSP or JSF, 2 examples.
    Javascript is .... well..... Javascript!
    Ted.

  • Problem displaying error page of web.xml when using JSF, Ajax4jsf

    Hi,
    My application is using MyFaces, RichFaces and Ajax4jsf. When i try to display error page configured in web.xml, i am getting exception "Error while processing error page".
    my web.xml contents are as follows:
    <?xml version="1.0"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <filter>
    <display-name>RichFaces Filter</display-name>
    <filter-name>richfaces</filter-name>
    <filter-class>org.ajax4jsf.Filter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>richfaces</filter-name>
    <servlet-name>faces</servlet-name>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    <filter>
    <filter-name>extensionsFilter</filter-name>
    <filter-class>
    org.apache.myfaces.webapp.filter.ExtensionsFilter
    </filter-class>
    <init-param>
    <description>
    set the size limit for uploaded files. Format: 10 - 10 bytes 10k
    - 10 KB 10m - 10 MB 1g - 1 GB
    </description>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>100m</param-value>
    </init-param>
    <init-param>
    <description>
    Set the threshold size - files below this limit are stored in
    memory, files above this limit are stored on disk.
    Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
    </description>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>Seam Redirect Filter</filter-name>
    <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
    </filter>
    <filter>
    <filter-name>KTServletFilter</filter-name>
    <filter-class>com.kenexa.core.system.KTServletFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>Seam Redirect Filter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>KTServletFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <!-- seam Listeners -->
    <listener>
    <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
    </listener>
    <listener>
    <listener-class>com.kenexa.kr.web.KRServletListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/rc/systemError.jsf</location>
    </error-page>
    </web-app>
    As per the configuration, when exception is thrown out of the application, container tries to display systemError.jsp page. If we want to include the JSF tags in systemError.jsp page, the request should pass through FacesServlet, so in the <error-page> <location> tag systemError page is specified with the extention systemError.jsf though it's actual extention is .jsp
    When exception is thrown from the application container invoke the error page but, while rendering systemError.jsf page exception is thrown saying "Exception processing error page "systemError.jsp" "
    To solve this problem i've gone through several forums, materials.
    In one forum a guy said, JSF1.1 spec has some problem in displaying error pages. To solve this don't write <f:view> tags in the error page, use <f:subview> intstead. By reading this, i again changed the contents of systemError.jsp page replacing <f:view> by <f:subview>. But the error is still repeating.
    Finally what i found is, when we use Ajax4jsf in the application, its AjaxViewRender class is throwing exception while rendering error pages configured through web.xml.
    So what i did is i changed error page extention from .jsf to .jsp in the <location> tag. Now jsf won't come in the picture and remove JSF related tags from the systemError.jsp page.
    <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/rc/systemError.jsp</location>
    </error-page>
    Any comments are welcome----------------------------------------------------------------

    I too iam facing the same problem could you advise if you have found any solutions
              -Ram

  • How to use javafx in web page written in jsp or jsf

    Hello
    How can we include our demo of javafx, that come with netbeans IDE , into my web page in JSP or JSF.
    Regards
    Rajnish Chauhan

    You just have to add it like and applet , including this line in your JSP or JSF
    <script src="http://dl.javafx.com/dtfx.js"></script>Then add the applet
    <script>
        javafx(
                  archive: "./resources/jar/Draw.jar",
                  width: 400,
                  height: 200,
                  code: "Draw",
                  name: "Draw"
    </script>./resources/jar/Draw.jar - is the path and the name of the jar

  • How do I include the discussion lines fron Disqus in a pdf created from a web page?

    Space is reserved for the text material but the lines do not appear to have been included.  here is the specific web page in question.
    Katy Perry Talks Taylor Swift Feud in ‘Billboard’ Super Bowl Issue | Katy Perry, Magazine, Taylor Swift : Just Jared
    I tried disqus.com page and the lines are not included in a pdf created there either.

    Hi bill_b,
    Could you attach the snapshot of the pdf (if possible) or mail me at [email protected] so that i can look into the issue.
    Regards,
    Rahul

  • Include Apple blog pages "content" in a "Normal" web page

    I am currently reading up about this - but if someone outthere has already done this then please let me know.
    I have an Xserve running 10.4.x and have the blog software active. I want to include the content from one of the blogs into a web page... ideally NOT a frame but i suppose i could do it that way.
    Is there any easy way to include the blog content?

    just about every programming/scripting language has libraries for reading RSS feeds. you could possibly use RSS-2-JavaScript ( http://www.rss-to-javascript.com/p/RSSRDF-Converter_138.html ). plugin your RSS feed url and it will let you customize the output. be sure to use http:// at the beginning of the feed url rather than feed://
    if you are using php, jsp, asp, etc... for your site you do have many more options.
    powerbook   Mac OS X (10.4.8)  

Maybe you are looking for

  • How to consume a TIBCO web-service in SAP PI

    Dear All, I have a scenario to consume a webservice provided by TIBCO. A end to end scenario is configured in TIBCO (ws-TIBCO-ws). The WSDL file ganerated from TIBCO system is provided to me to consume in SAP PI. TIBCO generated WSDL will be in a for

  • How to see refcursor data while debugging

    Dear Guru, I have below procedure. create or replace PROCEDURE Main_Proc RS_1 OUT TMRS_UTIL_PKG.RefCsr AS L_Excecution_Status NUMBER; L_Sql_Code VARCHAR2(1000); L_Sql_Error VARCHAR2(1000); a NUMBER; BEGIN -- Initialize Execution Status. G_Excecution_

  • When i plug my iphone into itunes now its not showing up on the side what do i do?

    When i plug my iphone into intunes its not appearing on the side anymore so i cant do anything what do i do?

  • G50-70 line in middle of LCD

    Hi,I have Lenovo laptop G50-70 and I have a problem that there is sometime one or more line in middle of the LCD and its removed by pressing screen from the bottom lightly. My question is that what component is needed to be changed in the LCD so this

  • Missing i tunes files

    Computer crashed-fix was to restore back to day 1-lost all iTunes. Used external hard drive to replace all 1500+songs from another computer but when I tried to sync with iPod none sync'd and each song has the ! sign next to it and messge saying 'file