Dynamic JSF Content

i need to write an html output stream to a JSF page and then include that page in another JSF page which will be the root page. Is this possible, and if so what can I attach links to these pages so that they can be viewed independently from the main/root page?
Thanks, any help appreciated.

well i came up with another idea but for some reason it doesn't work. The alternative idea that I came up with was to load the other page in an iframe and just put the iframe on the main page. Now I do not know if the fact that the page loading in the iframe submits to itself and writes the output to itself would keep it from being loaded in an iframe or not. Any ideas?
Thanks.

Similar Messages

  • Dynamically Updating Content Server Portlets

    [urlHi, I am currently having difficulty dynamically updating content server portlets.  I have a portlet of the following form:[/url]
    ArticleName Author Title Date mystory author1 title1 04/05/01
    story2 author2 title2 06/07/04
    story author3 title3 01/02/03
    So I have this table where each one of the line items is an article in the content server. So, for example the first line item is an article "mystory" by "author1", with title "title1" and date "04/05/01" additionally there is an article text field, but this isn't displayed unless I click on the article name.
    I can set up the basics of this portlet, but when I try to add any real functionality I run into one of two problems.
    First Problem: Passing Information
    I cannot find a way to pass information between content portlets. For instance, if the user would like to "re-sort" this table based on "date", I would like to have the user click on the "date" column heading and then reload the page. To do so, I would have to pass the section name back to the page so that it could resort based on this data. I have not found anyway to effectively pass information to a content server portlet. I am building these pages through use of the presentation template framework (so I can have access to the content items) but that seems to change the way portlets are handled.
    I got around this limitation with a regular portlet by creating an intermediary page which captures passed information and stores it to the session state. Once the information was in the session state, it is accessible to the portlet on the first page. However, this only works because remote portlets do not change their session id once loaded. Content Server portlets, on the other hand, change their session id after every reload of the browser or page change. I can send information from a content server portlet to an intermediary page, but I cannot send it back to the portlet because the session id has changed so I have no idea of knowing where to send the information. I can write it to a session state, but by the time I return to the portal page, the content server has changed its session id so it does not know where to look any longer.
    I suppose it would be possible to create an application state variable and append it with some static token (if there is some static variable per portal session) but I would rather not have to deal with application variables if at all possible.
    Second Problem: Dynamically Updating PCS Tags
    Even if I were able to the pass information back to my content server portlet, I run into another issue. The easiest way to sort content server items is using the filter command in the pcs:foreach tag. So, if I wanted to sort by author name, I could do something like the following <pcs:foreach var="item" expr="filter(folderByName('content'), filtered.name == '"name")" or something like that (the syntax may be incorrect, I just wrote this off the top of my head). However, it appears that the way the presentation templates are compiled goes in the order of PCS tags THEN JSP. So I would have no way of dynamically changing the variable on which I sort. For example, if I clicked on "Date" above in my table, I would like to be able to dynamically change my code so that I sort on date, and not name. I cannot find a solution to this problem.
    My workaround is to use the pcs tags to write out all the possible sortings to java array objects. This gives me access to the data on a JSP level and based on whatever the user will chose, I could then display that array. While this works, it is extremely ghetto and inefficient. Any help or suggestions would be fantastic.
    Thanks a lot,
    Jason Grauel

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

  • Read Dynamic Selection contents of a Variant for QE51N

    Hi Folks,
    Need your help here !
    In my report, I wish to read the Variants along with their contents created for transaction QE51N.
    I tried using function module RS_VARIANT_CONTENTS and its working good, but not to my requirements. The function module returns only the selection screen contents of a given variant. It does not return the contents in 'Dynamic Selection' (Free Selection).
    I read somewhere that the function module returns dynamic selection contents only if the report use Logical Database. To my understanding, the program for QE51N (SAPLQEES) do not use LDB.
    So is there any way by which I can get dynamic selection contents of a variant?
    Any suggestions / pointers would be a great help.
    Thank you.
    Regards,
    Sud.

    Hi,
    Did you find somethings? I have the same issue.
    I would like to add some new fields on Dynamic Selection screen of QE51N.
    Thanks in advance.
    KR,
    Arnaud

  • Dynamic web content base on 9i/10g database

    dear all,
    i need to find sample of build dynamic web content base on
    9i/10g database. i remember otn have a sample for dynamic
    web content. but not found in sample code at otn now.
    who can tell me where can find it ?
    best regards
    boris

    See the last section of this link. You will get version specific information.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1013164

  • Dynamic generated content

    hello can somebody help me with adobe air + html how to make
    link to open in system external web browser in dynamic generated
    content?

    window.runtime.flash.net.navigateToURL(new
    window.runtime.flash.net.URLRequest("path to a file where you wrote
    dynamic content"))

  • Dynamic TabbedPanels  Content

    Hello,
    Can uuuuuuuuuuuuuuuuuuuuu helpppppp mmmmmmmmmeeeeee
    pleeeeeeeaassssssssssseeeeee ?
    I want to make my TabbedPanels dynamically.
    For example after every 3 seconds the tab and the
    TabbedPanelsContent changes automatically. It's the same principle
    of the Gallery.
    Is there a solution ?
    Thank u very much.

    Alderaan,
    Have you looked at Content Areas? They would be good for self service management of content.
    Have you looked at some of the content providers for Oracle9iAS Portal? They have dynamic data content portlets available. http://www.oracle.com/portals/partners.
    Rich

  • JSF with in another dynamic JSF - Urgent Help Needed

    Hi,
    When i have JSF with in another dynamic JSF it worked fine in weblogic 9.2. But in weblogic 10.3.2 it is thwoing illegal state exception. Ho w can i add another JSP?
    <h:form id="frmAssignImpersonate">
         <h:inputHidden id="hiddenSoxEditPrivilege" value="#{assignImpersonate.soxEditPrivilege}"/>
         <h:inputHidden id="donotdelete" value="#{assignImpersonate.donotDelete}"/>
         <table class="TableContentWhite" style="TABLE-LAYOUT: fixed" cellSpacing="0" cellPadding="0" width="400">
              <tr>
                   <td>
                   <jsp:include page="/jsf/common/a.jsp"flush="false"/>
                   </td>
              </tr>
         </table>
         <table cellpadding="0" cellspacing="0" border="0" align="left" width="500">
              <TR class="ColorModuleHeader" height="20">
                   <TD class="rowHdr" align="left">Assign Impersonation Rights</TD>
              </TR>
              <tr>
                   <td valign="top" Class="TableContentwhite" align="left">
                   <jsp:include page="/jsf/common/b.jsp"flush="false"/>
                   </td>
              </tr>
         </table>
    </h:form>
    <%@ include file="/jsf/common/bdeFooter.jsp" %>
    Exception:
    java.lang.IllegalStateException
         at com.sun.faces.taglib.jsf_core.ViewTag.getComponentType(ViewTag.java:258)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:215)
         at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:466)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:651)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1097)
         Truncated. see log file for complete stacktrace

    wrong forum, you will not get answer here

  • Help! dynamic page content - how to handle?

    Hi !
    How do I handle dynamic page content, where for example my jsp page does a post and updates some data, and I dont want the user to use "back" button to go back onto it.
    Hints appreciated
    Cheers
    Steve

    Yes, you can create links for columns in the sql query of a portal report using htf.anchor/htf.anchor2 or just put in your own html code between single quotes. See the [PL/SQL Web Toolkit|http://download-west.oracle.com/docs/cd/B14099_10/web.1012/b15896/toc.htm] for info on the HTF package. There is also a portal Link component which can be created separately and then selected for use on a column in a portal report.

  • Dynamic HTML Content in iFrames of a BSP application

    Hey Folks,
    I am currently having to build a context sensitive URL, which is built dynamically and accordingly load the page within a given view during runtime. The URL points to a simple HTML page.
    The application whcih is embedded in the view is a BSP application. The BSP application comprises of an iFrame which should hold the value of the URL built, within the attribute "src". Is there a way in which the value of this attribute "src" of the tag "iframe" can be populated during runtime for BSP applications?
    Please do let me know of your thoughts on this.
    Thanks and Best Regards,
    Puja.

    @Rodrigo,
    Did you make sure you have included the end tag </iframe>? am not sure about this, but maybe you would need to include the htmlb page extension too?
    <%@ extension name="htmlb" prefix="htmlb"%>
    @Others,
    My problem is that the BSP in question has been generated by a framework, the content of which i need to tweak programatically.
    I forgot to make a mention of the crutial aspect that, the Page Type of my BSP application is 'View'. I could have used the oninitialization event to my convinience , had the page type of the application been 'Page with Flow Logic'. I do not have the various event processing options such as 'onInputProcessing' or 'OnInitialization' or 'OnLayout' here which I can work upon.
    Has any body worked with BSPs of type 'View'. Any help would be much appreciated.
    Thanks and Best Regards,
    Puja.

  • Print Specific Frames and Dynamic XML content

    Hello, I am trying to print specific frames of my Flash movie
    with the dynamic text loaded from an XML file. The code below only
    prints the current frame I am on and does not print the XML text.
    The dataOK that is commented out is a function I have before that
    loads the XML content. The XML content is loaded to dynamic text
    boxes. Any help on this would be greatly appreciated.

    I am still having difficulty loading the XML data and the
    frameNum parameter does not seem to work. Argghhhh....
    function printTut(myevent:MouseEvent):void{
    var myPrintJob:PrintJob = new PrintJob();
    var mySprite:Sprite = new Sprite();
    var printArea:Rectangle = null;
    var options:PrintJobOptions = null;
    var frameNum:int = 2;
    mySprite.addChild(stage);
    mySprite.rotation=90;
    mySprite.scaleY=.80;
    mySprite.scaleX=.80;
    myPrintJob.start();
    myPrintJob.addPage(mySprite,printArea,options,frameNum);
    myPrintJob.send();
    print_btn.addEventListener(MouseEvent.CLICK,printTut);

  • Dynamic JSF GUI and associated backingbeans

    I'm designing a web application using JSF. One of the main requirements is that our GUI needs to be pluggable. I have tried to understand how pluggability can be achieved in JSF but haven't found a clear solution.
    I would like the application to be packaged as a war file. Adding customer specific pages/bean classes to the war file and repackaging of the war is not an option. The customer specific pages/classes must reside outside this war. At runtime, based on configured rules, I need to load the customer pages and render them. If the pages are JSP based JSF pages, then they will also have their associated backing beans.
    Given that the backing beans must be preconfigured as managed beans in the faces-config.xml file and all JSP pages must be part of the packaged web application, I don't know how to go about doing this.
    A solution (non-ideal) that I have thought of is to have the customers design their forms as HTML pages and have them put these forms in the document root directory on the app server. The customer code that manipulates the data on the form will be packaged in a jar file. The HTML form 'action' will be set to a URL that will take them to one of my servlets. The interaction will be such:
    1. A user visits my JSF/JSP page. He clicks on a button. In the action event listener, I decide on the correct html form to forward the request to. I put the instance of the backingbean class in the HttpSession and forward the request to the HTML page.
    2. The browser displays the HTML form. The user enters data on the form and submits it. The request arrives at my servlet.
    3. My servlet instantiates the appropriate customer class (using the ClassLoader) and calls a method on it passing it all postdata; the method returns some String value. The servlet pulls out the backingbean class instance from the HttpSession and calls a setProperty(String value) on it. The servlet then gets a handle to the RequestDispatcher and forwards the request to my original JSF/JSP page.
    4. The JSF page is rendered in the browser with then new value (property set by the servlet) displayed in the right view component.
    The above approach is very messy and with many customer forms and backend classes this approach can get very ugly. I am looking for the correct solution that is recommended by JSF to achieve this kind of pluggability.
    Any thoughts, advice or feedback will be very appreciated.
    thanks,
    tsc

    I have researched my issue online for quite some time and have found nothing that jumps out except one post to this forum.
    Adam.Winer replied to a similar post on this forum over a year ago where he suggests replacing the ViewHandler, NavigationHandler and VariableResolver to be able to plugin JSP pages at runtime (See below).
    After doing some reading, I understand the function of the NavigationHandler and VariableResolver a bit better. do not understand how to replace the ViewHandler and what the new handler should do to render different JSP pages at runtime.
    Has anyone tried this approach. If yes, examples would be nice.
    I'm sure what I'm attempting has been done before many times. How have people gone about to achieve this kinda of pluggability in JSF.
    Anyone?
    From: http://forum.java.sun.com/thread.jspa?forumID=427&threadID=524937
    Re: dynamic configuration for the application
    adam.winer Registered: Dec 23, 2003 12:00 AM      May 24, 2004 9:30 PM
    A lot of what you're seeing are genuine limitations, but happily, JSF is so pluggable that you can overcome them.
    JSPs are problematic in exactly the way you describe - unless your app server has support for pulling JSPs out of a database, etc., you're SOL. JSF, however, lets you use something other than JSPs by replacing the ViewHandler. That's a fair bit of work, but it is doable.
    For navigation logic, you'd replace the NavigationHandler. As long as you're willing to write the code that can pull navigation rules from an external source, life is good.
    For managed beans, all you need to replace is the VariableResolver - again, if you can pull the rules from an external source, you have full control.
    This is all far from easy - and it's a huge amount of work for one person - but I'd imagine these pieces will become available from various sources. A core goal of JSF 1.0 was making the framework as a whole pluggable so that others can innovate on top of the framework.
    -- Adam Winer (EG member)

  • Dynamic html content in a movie?

    Hi,
    Can someone tell me if it's possible to dynamically load a
    HTML file into a flash movie without opening the content
    into a separate browser window? i.e. Load the HTML into a
    container in the movie window itself. The actual HTML file name
    itself could be hardcoded in the movie if that helps...
    I'm totally new to Flash and Action Script but am a
    developer, so will understand if you can even just point me to an
    API.
    Thanks in advance.
    Brian

    No. You would have to parse the html using the xml class (for
    instance). Or use an extension (search for tablemaker) that does
    the parsing (with restrictions like content can only be in one
    table). By itself Flash only supports a small subset of the html
    tags. You could use an IFrame but that is pretty much asking for
    trouble. And, Flash isn't a browser...

  • Dynamically load content into a "template" swf from text file

    I have a dream....
    Well, I have a concept. I have not actively pursued Flash in
    several years, though I've continued to have it in my arsenal. I've
    not done much in the action scripting realm for a while though.
    I am trying to create a template that will be used for about
    100 different product pages.
    It would have two tabs, basically, 2 different graphical
    button sets. One will have up to 4 links to similar products, each
    tab will be on the side of a square, and I need the ability to not
    display a tab if there is no actual link.
    As for the other tab, Its a menu that consists of a series of
    lines. This can be an external menu, I just need a way to have
    flash load the right menu. This menu, when you mouse over a line,
    the name of the product appears, as well as a product image that
    gets loaded with the menu. The product images would be external,
    allowing me to simply replace an image if a new higher end version
    of the product comes out.
    So, I am totally not an actionscripter. Looks like I need to
    load variables from an external file. Can I set a property in the
    flash code on the html that tells the movie what dataset to grab
    from?
    Here's basically what I am looking for
    property: value
    (load variables for:)
    item: 44
    (menu1)
    faster: 54b.html
    slower: 34d.html
    left: 43d.html
    right: 45c.html
    (menu2)
    menu:graph5.swf
    (menu loads images from external source)
    link51: 51d.html
    link52: 52c.html
    link53: 53c.html
    link54: 54d.html
    link55: 55b.html
    link56: 56d.html
    A possible third menu would be text driven, and would use
    html to link to various items.
    This is a static site, so urls will be fixed.
    Is it best to build a php page that serves up data for a
    single item, or do one big text file with all 100 or so items? Is
    that even possible?
    My Flash since MX is very rusty. I am using Flash Pro8. I
    would love to create a single file so modifications are to the text
    files, unless a new item is released, then it's updating a single
    flash menu and updating the text file.
    Been spending way too much time in InDesign lately! I used to
    be pretty good at Flash!

    well sorry there fanmap - but I don't think you're going to
    be able to get this to work. here's why: the link points to a php
    file - which gathers dynamic info from a DB - the return from the
    php is generating a string that is based on the DOM and
    'constructs' a javascript method that in turn writes to the html
    document. although we can embed html into a textField in Flash
    there are a limited number of supported html tags - and JS methods
    will not operate internally. in addition, (i'm not certain someone
    correct this if i'm off) there's no way to 'change' the output of
    the php call, therefore you will not be able to read the return
    because it is designed to use the DOM and write solely to the
    current document. Even if you were to access the JS method from the
    swf file (which one can) it will still only write the content of
    the php return to the html document - and the output is not
    compatible with the textField class.

  • Dynamically adding content

    I maintain about 6 webpages for my church and updating has
    become quite burdensome. Can someone point me in the right
    direction or give me the instructions to add dynamic content to my
    webpages. What i'd like to do is have various people able to edit
    certain text fields on teh page and it update to the page
    automatically so that I do not get stuck always having to update
    pages. I know this can be done, and is probably not too difficult
    but I can't seem to find a good tutorial anywhere. Any help is
    appreciated. Thanks.

    Maybe try Contribute....
    Dan
    fbcojman wrote:
    > I maintain about 6 webpages for my church and updating
    has become quite
    > burdensome. Can someone point me in the right direction
    or give me the
    > instructions to add dynamic content to my webpages. What
    i'd like to do is
    > have various people able to edit certain text fields on
    teh page and it update
    > to the page automatically so that I do not get stuck
    always having to update
    > pages. I know this can be done, and is probably not too
    difficult but I can't
    > seem to find a good tutorial anywhere. Any help is
    appreciated. Thanks.
    >

  • Dynamically load content by date using xml

    i would like to load content by date using xml. meaning if i
    have 5 upcoming social events listed, i want them to dynamically
    drop off from my webpage as the event date passes. i would like to
    use the built in spry xml dataset functionality, but don't have to.
    i can't seem to find a way to get the server date and then compare
    it to a date in a xml node. this seems simple, but i can't seem to
    find a tutorial that does not get crazy with all kinds of
    code.

    Have the column headings (which the user clicks to sort by
    that column) as
    links back to the main page, with the sort as a url parameter
    eg
    www.mysite.com/mypage.php?sort=name
    www.mysite.com/mypage.php?sort=date
    etc
    Then in your recordset, change the code from
    $sql = "SELECT * FROM table ";
    to
    switch($_GET['sort']){
    case "date":
    $sql = "SELECT * FROM table ORDER BY date DESC";
    break;
    case "name":
    $sql = "SELECT * FROM table ORDER BY name DESC";
    break;
    You`ll need to change the above to suit your needs obviously,
    but the above
    shows the principles that you need to use.
    So you use the same page for each sort, but the SQL to
    retrieve the records
    in the order you want changes dynamically.
    Gareth
    http://www.phploginsuite.co.uk/
    PHP Login Suite V2 - 34 Server Behaviors to build a complete
    Login system.

Maybe you are looking for

  • My MacBook Pro Won't Start-The Startup disk is full and I get a white screen

    When I turn it on the log in screen appears and also a message saying "Startup disk full,please delete some files" , so I log in and it just takes me to a white screen,I've tried going to the disk utility by doing Command+R when turing it on ,and I r

  • Is there a way to get the history from find my iphone?

    My iPhone disappeared from my car while it was valet parked at the airport. I did a find my phone when I realized I had left it in the car, and it showed the location to be valet parking lot. I assumed all was well, did a remote lock operation, and e

  • Print out of material document

    hi, pl guide me on the following: - 1.  sample material (pieces) to be sent outside (thru' which mov. type) for lab testing and the same will not come back. Client requirement is that the samples to be sent out with a proof of document (print) and pu

  • Where is the SHARE Menu located in iPhoto?

    Hello. In the Apple procedures for backing up photos, they indicate the following:Copy your photo library to a CD or DVD 1. Select your Library, roll, album, or individual photos you want to burn to a disc. 2. Click the Share menu, and choose Burn. 3

  • Dnyamic Custom Font Embedding To Textflow

    Hello all, I am creating a browser based editor application using the Rich Editable Text control. I have a user defined set of fonts in different swf files. I am loading those swf files at run-time. Here is the part of code below. // Registers the fo