Possible to have dynamic number of subviews?

Hi,
I am writing a blogging application, with JSF, which allows unlimited nesting of comments. The structure of my Comment bean is like this:
class Comment
List replies; //list of Comments
Therefore, I need to use recursion to display the comments with all their replies. As I don't want to create a custom tag, I decided to do recursion by using dynamic includes. Thus, every comment will be displayed in its own dynamically included page.
However, I've run into a problem as each dynamic include needs to be enclosed in <f:subview> tags, and f:subview ids must be statically defined and must be unique. Is there a workaround for this problem?
Thanks!

Use UINamingContainer. Also see http://forum.java.sun.com/thread.jspa?threadID=757636&tstart=0

Similar Messages

  • Possible to have dynamic content within a campaign?

    Is it possible to have dynamic content elements within an email campaign so that different content appears based on a recipient's interests?

    Hey there, Nope.
    BUT
    See the BC Blog

  • Is it possible to have Dynamically changing list of  Radio buttons ?

    Hi,
    There is a list box which a list of values like 'State', 'City', etc.
    When the user chooses a value in the list box, based on the value chosen say 'City', I should display a list of Cities. The user should then be allowed to choose 1 and only city from the list.
    Is it possible to have list of radio buttons such that there is 1 radio button for each city and the user can then choose any one of the radio buttons ?
    In this case the number of cities and what those cities are is unknown. So I need to have a dynamically changing list of radio buttons. Is this possible ?
    Version of forms : Forms 6.0.5.
    Thanks in advance
    Aruna

    Hi Aruna
    You can create a lot of radio buttons and hide|display them in runtime. It is more suitable i think to use the t-list instead of radio.

  • How to have dynamic number of items uploaded using LSMW

    Hello Experts,
    I have a requirement where i need to upload the data for quality notifications. One Quality notification can have any number of items. i.e. One Quality notification can have 3 items and the other can have 2.
    I have got an excel sheet containing data for 1000 notifications. I need to upload it using LSMW - BDC Recording method.
    My question is that if i record the process for 2 items in a Notification, the BDC will always process only 2 items for every notification. How to make this processing dynamic so that any number of items can be uploaded.
    Please help.
    Thanks a lot in advance.
    Regards,
    Himanshu

    hi
    according to me, once a recording is being done for some fields, you can not add fields to it. To add fields after recording, do a new recording, where give values to all fields. Ofcourse, for mandatory fields you ought to give values, other than that for optional fields, give some stsandard or common value. So that you can update it next time when you need it after recording is being done.
    Regards
    Vinodh

  • Possible to have dynamic default selections for a dashboard prompt?

    I'm running OBIEE 11.1.1.6.5, and I have customer who would like to know if it is possible to dynamically select default values on a dashboard prompt based upon other user prompted columns on the same prompt. For example, I built a dashboard prompt with three fields: Month, Customer, and Product; and I want to add a default selection to my Products prompt to pick the "top 4 products" based on the selected Month and Customer.. assuming every Customer+Month has a different "top 4 products".
    Does anyone please have a suggestion on how I could approach this solution?

    Thank you for your response. I've tested this approach and it seems promising. My concern I have there is how to treat "(All Choices)" values. Say the user selects All Choices on customer or period, and the presentation value in my SQL Results query reverts to whatever default value specified, which is not the intended behavior. My question then becomes how do I treat the null or All Choices and somehow omit the filter criteria or specify fy All Choices as a default to the presentation variable? Your advice is much appreciated.

  • Possible to have dynamic content in a Single edition app?

    Here is the scoop. I am designing a program for a local stage play. I am doing the program in inDesign because inDesign is awesome.
    Equally awesome is the DPS: Single edition.
    However, I would like to have more dynamic features in the DPS version that change quite regularily:
    Twitter Feed
    Other information from a data feed
    anything else I can think of to make it more of an app than a digital copy of the program. I can simply do a PDF version for a static download. But I want something to make downloading appealing ... (open to ideas as to what kind of stuff can be done)
    I guess another question would be does it have to be uploaded to the app store or can it be provided to users directly for download from a website?
    Thanks in advance!

    Thanks once again for your help, Bob.
    I am really struggling with what constitutes an 'app' that you can do with the
    DPS: Single Edition and inDesign.
    Brad Lawryk
    =========================
    Auroratec Business Solutions
    250-855-8835
    www.auroratecsolutions.com
    =========================
    =========================
    Adobe Community Professional
    Adobe Business Catalyst Partner
    www.lawryk.com
    =========================

  • HT3702 Is it possible to have one credit card and two debit cards on my itunes account so that we can use different cards for different purchases?

    Is it possible to have a number of cards (say one credit card and two debit cards) to be listed as the payment cards for my itunes account, so that different cards can be used for different purchases?  Or can you only have one card registered on itunes at any one time?

    So is there any way that three members of a family can share one itunes account but pay for their own purchases, other than inputting their own cards each time they make a purchase.
    No, there is no way to do that.
    Or if we all have our own individual itune accounts, can we share each other's music, or can you only sync your iphone/ipad/mac, with one itune account at a time?
    You can sync content from up to five iTunes Store accounts to any given computer or device. You just will each have to copy the content into your own libraries so you can sync to your devices and have your devices authorized to all applicable accounts.
    Regards.

  • Is it possible to have a group of email contacts under one name eg mums in year 4?

    I would like to be able to send a group of people regular emails without having to add their address to the 'to' box. Is it possible to have a number of email addresses under one name?

    Hi,
    from the panel on the left hand side (where you see all the slides vertically), you can select one with your mouse and slightly drag it to the right, so as to create a sort of indentation.
    would that work?
    Ricc

  • Since the ipad has dynamic moving backgrounds isn't it possible to have a slideshow background?

    IIt should be possible to have a slide show background since Apple does support the format so I think if we somehow can find the format they used and chge a slideshow to that format we should be able to make slideshow backgrounds? I hope.

    Hey Boxman, I'm guessing lack of interest. Think about it, once the novelty wears thin, just how much time would or do you really spend looking at your home page? Me personally, just enough to find the app I need and push the button. Besides, isn't the battery life on your iPod short enough for you? Dynamic backgrounds are one of the first things you turn off to conserve battery life! That said, it would be kinda cool, for a little while anyway. Like Stevejobsfan0123 stated go to Contact Us>Feedback, and tell Apple your opinion. Hope this helps. Cheers.

  • Is it possible to have your iphone4 hacked if they just have your number?

    is it possible to have your iphone4 hacked if they just have your number?

    If you are still having problems with the answer of "NO", then provide more details on what you mean by hacked.
    Allan

  • Is it possible to have a dynamic web-xml ?

    Hi all,
    I have the following problem: the mapping of a Servlet
    is subject to change depending on the host on which
    application resides. That is if my Servlet is installed
    on Host1 the mapping will be:
    <servlet-mapping>
    <servlet-name>
    myservlet
    </servlet-name>
    <url-pattern>
    /host1
    </url-pattern>
    </servlet-mapping>
    if on the other hand it's installed on "AnotherHost" it should be:
    <servlet-mapping>
    <servlet-name>
    myservlet
    </servlet-name>
    <url-pattern>
    /AnotherHost
    </url-pattern>
    </servlet-mapping>
    Is it possible to have it done without changing web-xml every
    time I move the application from one host to another?
    Thanks a lot
    Francesco

    Hi,
    Is it possible to have it done without changing
    web-xml every
    time I move the application from one host to another?You could change this during your build process (e.g. Ant) if you have one, otherwise I think you'll have to manually edit it yourself.
    Cheers,
    Matt

  • RE: DropLists in ArrayFields - is it possible to have adifferent sele

    Richard;
    Here you go....
    newList : Array of ListElement = new;
    { add elements }
    row : Integer = { get your row };
    column : Integer = { get by name or just know the number }
    // poof! Watch that down cast!
    (DropList)(<arrayField>.BodyGrid.GetChildInCell(row,column)).SetElementList(
    newList);
    You can also change FieldWidget settings....
    <arrayField>.BodyGrid.GetChildInCell(row,column).FillColor =
    C_BLUE;
    My array field doesn't scroll (lucky me!). See if the AfterFieldScrolled
    event fires at the right time to recalculate the widget state. I haven't
    played with it and I'm far from a Forte GUI guru, but I suspect that you are
    altering the column template and the visible widget is separate from the
    data. So as you scroll, the data would scroll but the new settings stay
    put. That's not what I would want/need. The widget reflects something
    about the data. When the data scrolls, so should the presentation
    properties!
    What may be needed is to somehow derive the presentation state settings
    dynamically from the mapped data. So when the data scrolled, the dynamic
    settings change on the new presentation row.
    Let me know.....
    Scott Irwin
    -----Original Message-----
    From: Richard Finegan [SMTP:[email protected]]
    Sent: Monday, August 24, 1998 1:38 PM
    To: 'Forte Users Mailing List'
    Subject: DropLists in ArrayFields - is it possible to have a
    different selection list per row?
    I have a DropList in an ArrayField column. Is it possible to have a
    different list of selections for each DropList in a different row?
    (ex.
    DropList #1 in row #1 can choose from a/b/c, whereas a DropList #2
    in row
    #2 can choose only from d/e/f, etc.) Technote 4996 seems to imply
    that it
    isn't possible, and everything I've tried so far has failed as well.
    Any insight appreciated.
    Richard Finegan
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    One way to do this is to get at the specific dropList widget in the
    arrayField by calling the getChildInCell(Row,Column) method on
    <..theArrayField..>.BodyGrid. This widget can then be assigned any
    dropList you want. Depending on the uniqueness of the individual
    dropLists, each data row specific dropList can be coded as an attribute
    (array of ListElement) on the mapped class, which can then be assigned
    to the dropList widget.
    A code snippet to do this would be -
    method refreshArray
    begin
    for displayRow in 1 to <myArrayField>.VisibleRows do
    dataRow : integer = displayRow + <myArrayField>.TopRow - 1;
    myDropListWidget : dropList =
    dropList(<myArrayField>.BodyGrid.getChildInCell(displayRow,
    <..columnNumOfDropList..>));
    myDropListWidget.setElementList(myArrayField[dataRow].myElementList);
    end for;
    end method;
    This method has be called only when the user scrolls the arrayField, as
    in -
    when <myArrayField>.AfterFieldScrolled do
    refreshArray();
    Hope this helps.
    Prashant.
    From: Richard Finegan[SMTP:[email protected]]
    Reply To: Richard Finegan
    Sent: Monday, August 24, 1998 11:38 AM
    To: 'Forte Users Mailing List'
    Subject: DropLists in ArrayFields - is it possible to have a
    different selection list per row?
    I have a DropList in an ArrayField column. Is it possible to have a
    different list of selections for each DropList in a different row?
    (ex.
    DropList #1 in row #1 can choose from a/b/c, whereas a DropList #2 in
    row
    #2 can choose only from d/e/f, etc.) Technote 4996 seems to imply
    that it
    isn't possible, and everything I've tried so far has failed as well.
    Any insight appreciated.
    Richard Finegan
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Xy graph with dynamic number of plots

    I've got an XY Graph with some dynamic number of plots to graph. Once I know this number, I change the LegPlots property and plot the data from an array containing all the plots. The data is displayed correctly, but I get overlapping colors. Say I'm only trying to graph 3 plots. I get three lines (good) but then the three lines have 29 colors (bad), as if it's plotting all possible plots at the data points of the three. The legend updates to only show three (good), but am I missing something else? Does the LegPlot property not govern that, but only governs the legend itself?

    If the problem is the code then I'll take a look at my mess of wire, I just wanted to see if it was the LegPlots property first.
    Here's what it looks like, just in case
    Attachments:
    toomanycolors1.JPG ‏25 KB

  • Dynamic Number of Column in a table

    Hi guys,
    I have a requirement that needs dynamic number of column in a tale.
    It is possible to do this in Adobe forms.
    Thanks,
    Chirantan

    Hello. It of course is possible in Adobe.
    You need to write a simple script using JavaScript or FormCalc to hide or show columns according to some special value. You will work with the presence attribute of the object. E.g. MYFIELD.presence = "visible" or "hidden" or "invisible". You will need to change your subforms content to flowed.
    Use these guides:
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    Hope this helps, good luck, Otto

  • BI  Layout/Template | Table with dynamic number of columns

    hi!
    i have a problem concerning the creation of a dynamic report with the BI publisher.
    in my BI template i need a table with a dynamic number of columns. i have searched the
    forums but havent really found a solution for this type of problem.
    first of all this is A dummy-structure of my dataset:
    <ROWSET>
         <ROW>
              <FIELD1>1</FIELD2>
              <FIELD2>2</FIELD2>
              <FIELD3>3</FIELD3>
              <FIELD4>4</FIELD4>
         </ROW>
         <ROW>
              <FIELD1>a</FIELD2>
              <FIELD2>b</FIELD2>
              <FIELD3>c</FIELD3>
              <FIELD4>d</FIELD4>
         </ROW>
    </ROWSET>
    in the report the fields represent the columns i need in the table.
    the problem is, that the number of the fields vary. in this example i have 4 fields/columns
    but another time i may have 6 or 10 etc..
    my dataset is always different because i am loading my dataset via a http request which is
    returning the needed data in XML.
    is there a nativ possibility within the publisher to generate the columns dynamically?
    i read about <?split-column-header:group element name?> etc. but this is only for cross-tables.
    can anybody give me a hint how to approach this problem?
    would be very glad for some advice.
    thanks a lot in advance!

    Specific answer is here
    http://winrichman.blogspot.com/2008/09/dynamic-column.html
    but these link let you know, how to do
    http://winrichman.blogspot.com/search/label/Dynamic%20column
    http://winrichman.blogspot.com/search/label/Cross-tab
    http://winrichman.blogspot.com/search/label/cross%20tab

Maybe you are looking for

  • ITunes won't find new iPhone and update invalid signature

    Trying to restore from iPhone 4 Restore backup to new iPhone 6 (Windows 7) and encountered the following...... When trying to connect the new iPhone 6 to my existing iTunes account, iTunes would not show the device (couldn't find it). Received a popu

  • JDev 9.0.3.5 : How to get the value of an item on a page in the controller

    Hi, In the processFormRequest part of my page controller, when the user clicks on Apply, I need to pass the value(s) entered by the user, to a PL/SQL stored procedure. The user enters a value for a field called "FirstName" on the page. I then need to

  • Windows can't start so I end up re-install​ing o/s

    Twice in the last week I have had to re-install the windows seven o/s because it would'nt start.  It seems to happen when windows tries to configure updates... How can I prevent this from happening ? This question was solved. View Solution.

  • Please help . i really need help ! T^T

    this is my recipt i want to return the ipad mini . i want to buy ipad mini the one that i can insert the sim card inside but this one is the wifi one which i can't put the sim card inside . i am now in thailand could u please tell me anywhere that i

  • How can you write to a control?

    What is the best way to write to a control? Can this be done without the use of a property node?