Does JSF support component with dynamic fields?

Webapps forms usually map a input text field to a java bean property. This mapping is one to one. I would like to know if the JSF can handle the situation where a form is dynamically generated with variable number of fields (eg. check boxes) and having all the values post back to the server without having a java bean mapping (because the fields is not known) and still be able to collect the values on the server.
Any help is appreciated.

ckx,
The components don't require a model reference (i.e. assocaition with a JavaBean). You can access all of the components on the posting page on the server, so you could definitely get all of the values that way. You can build up the tree dynamically as well.
So the short answer is yes :-).
<<KM>>

Similar Messages

  • The build specifications does not support VIs with dynamic dispatch terminals

    Why?
    Will it be supported in the near future ?

    pacome wrote:
    I wanted to build a shared DLL.
    The problem occurs when an input Control is a dynamic dispatch terminal.
    "Now that's a horse of a different color!" (Caby, Wizard of Oz, Emerald City Scene).
    Yes the DLL spec never knew about dynamic dispatching.
    Your best option is to wrap the LVOOP stuff up in wrappers and expose the wrappers.
    I'm curious if others have ideas as well.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Does HSSF support Excel with Picture?

    The following code works fine if the Excel File "test.xls" does not contain picture.
    It also runs without error after I have added a picture to the Excel sheet, but when I open the excel file "test.xls", I got an error message "Unable to read file".
    Does HSSF support Excel with Picture?
    POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream("test.xls"));
    HSSFWorkbook wb = new HSSFWorkbook(fs);
    HSSFSheet sheet = wb.getSheetAt(0);
    int r = 10;
    short c = 10;
    HSSFRow row = sheet.getRow(r);
    if (row != null)
    if (row.getCell(c) != null)
    row.getCell(c).setCellValue("testing");
    else
    row.createCell(c).setCellValue("testing");
    FileOutputStream fileOut = new FileOutputStream("test.xls");
    wb.write(fileOut);
    fileOut.close();

    If it must be dynamically embeded, you're SOL AFAIK. You can embed images in a template, then open that template and add data. POI will allow images and pivot tables to be in the original document and it will save them undamaged, however you cannot create images or pivot tables from within POI (HSSF).

  • How to convert internal table with dynamic fields to XML

    Dear all,
    I met a problem like the following:
    The aim is to transform the following parameter to XML
    IT_FIELD stores the dynamic filed name of the internal table,with these fields, the dynamic internal can be created by cl_abap_tabledescr=>create(it_field)
    IT_VALUE stores the value of the internal table dynamically created with dynamic fields.
    For example
    IT_FIELD =>
    line1: FIELD1
    line2: FIELD2
    line3: FIELD3,
    three lines in this internal table.
    dynamically created internal table structure FIELD1 FIELD2 FIELD3
    And IT_VALUE=>
    1          2          3   (First line)
    11        22        33
    two lines of data.
    Do you have any idea about how to transform the IT_VALUE to XML here? And also the transformed XML to the IT_VALUE.( we may need remember IT_FIELD here for later XML to IT_VALUE.)
    Hope I describe the problem clearly.
    Any inputs will be appreciated.
    Edited by: Max Tang on Jan 12, 2009 3:46 PM
    Edited by: Max Tang on Jan 12, 2009 4:14 PM

    Hi,
    you need to implement a bit of coding for that.
    With the 'do varying' statement abap provides a loop over those fields. Within this loop you can build up a new internal table with one entry for each period and amount.
    kind regards
    Siggi
    PS: I am not very familiar with CO, but I guess there will be a standard extractor for that.

  • JSF table component with paging

    Are you aware of any existing JSF table component with both navigation and paging ?
    I want to display the content of a database table with a large number of rows. The table component should be able to navigate through the entire table content, but building only a small ResultSet and dinamically populate it with data as we perform navigation.
    Thanks,
    Cosmin

    Thanks for the answer.
    But data scroller just takes a ResultSet and display it with navigation. It doesn't know about the total number of rows in the table. It only display the number of records in the ResultSet.
    What I am looking for is a data scroller which based on some input parameters knows how to split the table in several ResultSets, dinamically change the ResultSet and display the total number of rows in the table and not in the current ResultSet.

  • Does it supports writing with stylus .

    I have a windows tab on which I have installed thunderbird, but it does not support writing with stylus. Pl advise. The MS outlook supports stylus.

    yea same question here, I mean they are supposed to be supporting adobe line and sketch by the end of this year ish I think. But adobe draw is just a much better app imo.
    If there will not be support soon I will have to buy the adonit Jot Touch instead of the Creative Stylus 2

  • JSF Tab component and Dynamic Faces AjaxZone

    Has anyone tried to use a JSF Tab Component in a Dynamic Faces Ajax Zone. I would like to try to have a page that has a list of the alphabet, each tab being one letter and then adding terms an definitions to each tab. Do you have any comments or suggestions regarding doing this. I am at a loss as to how to make the tab component respond when clicking on it in the ajaxZone. any help would be appreciated. thnx

    The Scales and Tomahawk libraries provides a tabbed panel.
    But basically tabs are nothing less or more than a bunch of block elements layered over each other with the same amount of buttons or links at the top. If a tab click doesn't require a trip to the server, then you can just load all tab blocks at once and use Javascript+DOM to switch between tab blocks, e.g. one block should be displayed using element.style.display='block' and all other blocks should be hidden using element.style.display='none'. If a tab click require a trip to the server (to preinitialize stuff or so), then you can use the 'rendered' property of the tab block element (which can be <h:panelGroup style="display:block;" rendered="#{myBean.showTab == 1}" /> or so).
    For styling of the tab blocks and tab buttons/links just use CSS.

  • Dynamic Internal Table with Dynamic Fields

    Hi all,
    My scenario is fairly simple----
    --> End user clicks a button on screen and he gets the list of HR tables.
    --> Then selects a table and list of all the fields for that table gets displayed.
    --> He/she selects the fields they want data to be retrieved for.
    So, the requirement is, the dynamic internal table should get created with the fields selected.
    The select statement should only retrieve fields which were selected by the end user
    and from the table selected by the end user.
    I  believe the fields selected by end user can be passed by a variable of  type string.
    something like this---
    select (fields)
    from (p_table)        " Table selected by end user
    into  dynamic internal table.   " should contain columns selected by end user"
    Appreciate your inputs and guidance.
    Warm regards,
    Hari Kiran

    TYPE-POOLS :ABAP.
    Parameters P_TAB      TYPE        DDOBJNAME.
    DATA  : GO_LINE_TYPE  TYPE REF TO CL_ABAP_STRUCTDESCR,
            GO_TABLE_DESC TYPE REF TO CL_ABAP_TABLEDESCR,
            GS_COMPONENTS TYPE        ABAP_COMPONENTDESCR,
            GT_COMPONENTS TYPE        ABAP_COMPONENT_TAB,
            GR_TAB        TYPE REF TO DATA,
            GT_FIELDS  TYPE TABLE OF DFIES WITH HEADER LINE.
    FIELD-SYMBOLS: <GT_TABLE> TYPE TABLE,
                   <GS_TABLE> TYPE ANY,
                   <GV_VALUE> TYPE ANY.
    CALL FUNCTION 'DDIF_FIELDINFO_GET'
      EXPORTING
        TABNAME              = P_TAB
    *   FIELDNAME            = ' '
    *   LANGU                = SY-LANGU
    *   LFIELDNAME           = ' '
    *   ALL_TYPES            = ' '
    *   GROUP_NAMES          = ' '
    *   UCLEN                =
    * IMPORTING
    *   X030L_WA             =
    *   DDOBJTYPE            =
    *   DFIES_WA             =
    *   LINES_DESCR          =
    TABLES
        DFIES_TAB            =  GT_FIELDS
    *   FIXED_VALUES         =
    EXCEPTIONS
       NOT_FOUND            = 1
       INTERNAL_ERROR       = 2
       OTHERS               = 3.
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT GT_FIELDS.
      CLEAR GS_COMPONENTS.
      GS_COMPONENTS-NAME  = GT_FIELDS-FIELDNAME.
      GS_COMPONENTS-TYPE ?= CL_ABAP_STRUCTDESCR=>DESCRIBE_BY_NAME( GT_FIELDS-ROLLNAME ).
      APPEND GS_COMPONENTS TO GT_COMPONENTS.
    ENDLOOP.
    GO_LINE_TYPE  = CL_ABAP_STRUCTDESCR=>CREATE( GT_COMPONENTS ).
    GO_TABLE_DESC = CL_ABAP_TABLEDESCR=>CREATE( GO_LINE_TYPE ).
    CREATE DATA:  GR_TAB TYPE HANDLE GO_TABLE_DESC.
    ASSIGN:  GR_TAB->* TO <GT_TABLE>.
    SELECT * FROM (P_TAB) APPENDING CORRESPONDING FIELDS OF TABLE <GT_TABLE>.
    LOOP AT <GT_TABLE> ASSIGNING <GS_TABLE>.
      NEW-LINE.
      DO.
        ASSIGN COMPONENT SY-INDEX OF STRUCTURE <GS_TABLE> TO <GV_VALUE>.
        IF SY-SUBRC NE '0'.
          EXIT.
        ENDIF.
        WRITE : <GV_VALUE>.
      ENDDO.
    ENDLOOP.

  • Does apple support syncing with outlook 2013

    I read somewhere that apple does not support calendar or contact sync between iphone running ios7 or above with outlook 2013. jsut looking for some confirmation so i know whethere to stick with 2010 or not.

    Hello Murphy410,
    Thank you for the question.  You can use iCloud Calendars with Outlook 2007 or later (Outlook 2010 Personal Edition is not supported) according to the following article:
    iCloud: System requirements
    http://support.apple.com/kb/HT4759
    You can enable the iCloud Calendar in the iCloud Control Panel as outlined in this article:
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    If you are experiencing issues with the iCloud Calendar syncing properly, I recommend following the steps in the section titled "Troubleshooting on Microsoft Windows (Microsoft Outlook)" in the following article:
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/TS3999
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Does Oracle Support Searches with Sentence and Paragraph Proximity?

    I have successfully used SENTENCE and PARAGRAPH special groups and the WITHIN operator to search for terms contained within the same sentence and/or paragraph. However, I also need to search for terms that are located within a variable number of sentences or paragraphs of each other. For example, I could search for the term 'dog' and the 'cat' located within 3 sentences of each other. Is this possible in Oracle Text? I have searched the documentation and I can only find the 'near' operator for searching based on word proximity. I cannot find any mention of sentence or paragraph proximity. This is a very important requirement for the system.

    Good question. We are trying to duplicate the functionality of an existing system. It was written into the requirements for the new system. I've asked how important this functionality is to the actual users, but we don't have the answer to that question yet. Knowing that Oracle Text does not support this out of the box, we will certainly need to evaluate the importance of this feature and determine whether it warrants some custom development or switching to another search technology.
    I've thought about using regular expressions to implement this feature, but I'm guessing that the performance wouldn't be that great and it wouldn't integrate well with other Oracle Text searches. Has anyone else used regular expressions combined with Oracle Text to implement more sophisticated searching capabilities?

  • Keynote does not support exporting with embedded Quicktime Movies

    I hope this helps a few of you out before you run into this problem.
    Keynote does not support export to Quicktime with any slides that contain a quicktime movie.
    Created a 27 page slide show with transitions, music, narrations and 6 Quicktime movies (Actually LiveType Text scrolls)
    When I attempted to export it never finishes the export cutting it short after about 20 pages.
    And the pages with the movies, don't start playing.
    It exports fine as a quicktime movie without the movies inserted though.
    Spoke with Apple Support and they confirmed that quicktime placed files within Keynote playback is only supported from the native Keynote Application.
    I read somewhere on this board that it was an issue with Quicktime version 7.5, not so as I tried the same test on a mac with Quicktime 7.42 and it had the same issue.
    So, beware.
    LJS

    Maybe I didn't understand well what you said but it is possible to export a Keynote file with embedded Quicktime movies to a quicktime movie. Actually, I'm doing it and I works. BUT, the issue I get is that I can't get my embedded videos to loop. Grrr...

  • JSF-Custom Component with EventHandling

    Dear All,
    I wanted to write my own component with event handling.
    This is my requirement:
    In my JSP, I'll put my cusom component tag for displaying 10 records and with prev and next buttons. after clicking prev button, i should get previouse 10 records and if i click next button, i should get next 10 records.
    so, my component should render
    1. 10 records
    2. Prev button
    3. Next button.
    After clicking prev button it should render previouse 10 records and also prev and next button.
    I do not know whether it is possible with JSF or not and also i'm not finding any example which explaining above situation.
    My jsp should contain only my custom tag like
    <mine:listRecords/>
    Tag Handler of listRecords tag should render 10 records and prev and also next button. After clicking prev, i should get 10 previouse records and and both the buttons and so on.
    advanced thanks,
    ram

    It is certainly possible to write a component that embeds its own navigation and paging as you describe. On the other hand, you can also assemble this kind of functionality out of a combination of the existing simple components. The "repeater" example illustrates exactly the kind of application you are talking about (and the same techniques will work fine with the standard <h:dataTable> component as well).
    Craig

  • ADF JSF Shuttle Component - Additional input fields

    Hello,
    We're in the process of integrating the nice shuttle JSF component into our application. Our app though requires that before the assignment is done (by moving an item left ->right in the shuttle UI) a dialog window must be opened to allow the user to fill in additional input fields (i.e the targe N-M association table that is populated by the shuttle component, needs those additional fields filled for each new record).
    Is there a way to do that with the current shuttle component?
    Thanks in advance for any help.
    Jordi

    ckx,
    The components don't require a model reference (i.e. assocaition with a JavaBean). You can access all of the components on the posting page on the server, so you could definitely get all of the values that way. You can build up the tree dynamically as well.
    So the short answer is yes :-).
    <<KM>>

  • Writing a custom component with multiple fields.

    Does anyone have some pointers on writing a custom component that properly handles multiple input fields?
    An example usage might be as follows:
    Assume the following java classes:
    public interface Address {
        //... getters/setters for Address.
    public class Company{
        Address getAddress(){...};
    }The tag usage might be something like the following:
    <custom:address value="#{myCompanyBean.address}" />
    Extending UIComponentBase I can easily render the output and create all the needed input elements. I'm also able to properly retrieve the submitted values in the decode method. But I'm unsure how to handle the "UpdateModelValues" step. Do I simply over-ride processUpdates, or is there more housekeeping to be done?
    Thanks.

    I'm guessing that doing addChild inside createChildren causes an infinite loop.
    Why aren't you just doing this with MXML?  it would be a lot simpler.

  • Custom ItemRenderer with dynamic field associations?

    Hi All,
    I'm trying to create a custom itemrender control that isn't tied to a specific type of data input. I'm creating a thumbnail itemrenderer to be used with the Sparks List control:
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer
    xmlns:fx="
    http://ns.adobe.com/mxml/2009" xmlns:s="
    library://ns.adobe.com/flex/spark" xmlns:mx="
    library://ns.adobe.com/flex/mx" autoDrawBackground="
    true"
    >
    <s:layout>
    <s:BasicLayout/>
    </s:layout>
    <mx:Image left="
    5" right="
    5" bottom="
    25" top="
    5" id="
    img_thumbnail"source="
    {data.image}"
    />
    <s:Label
    left="
    5" right="
    5" bottom="
    5" verticalAlign="
    middle" textAlign="
    center" id="
    lbl_label" fontWeight="
    bold" fontSize="
    10"text="
    {data.label}"
    /></s:ItemRenderer>
    However, as you can see, the image source and label text properties are tied to specific fields in the data collection (image and label). I would like to provide a way to figure out what the label and icon fields are set to in the parent control, and set them accordingly in the itemrenderer. This should allow me to use the same itemrenderer with different objects, as long as they have a text and image property.
    Any ideas? Thanks

    After doing some research, I found my answer:
    1) The data object is the current item which the List component is populated with. You can access any properties of the object using it. (Not what I'm looking for here.)
    2) You can access the label property set by the labelField or labelFunction properties of the list control in the item renderer simply using this.label. This is exactly what I was looking for.

Maybe you are looking for

  • No space left error copying g-unzip-ped initrd

    Problem workstation mainboard: ASUS P5GC-MX Network Card driver: atl2.ko ZDM 6.5 SP2 IR1 on SBS6.6 box I got "no space left on device" error message copying new file into mounted initrd image. Procedure used - as described in the following document h

  • Searching field mappings in 2004s

    In 3.x, if you brought wanted to search to see what datasource fields had been mapped to which infoObjects as they are brought into BW, you could search in table RSOSFIELDMAP.  This was a great way to get a good guess as to which infoObject you need

  • Unable to find the IP camera information.

    Hi, We have stacked switch WS-C2960S-24PS in which the IP camera is connected. I am not able to find the neighbour info of the camera, even after enabling the LLDP protocol. Can you help me in this..

  • Change is not reflecting

    hi all , check out this code mates ...i am not getting why the change in the 2D string array is not reflecting back to the main method even thought sontent has been changed from "Ashish" to "kumar" public class Array2D      public static void main (S

  • PSE 4 Organizer .tif Problem

    Hallo! Alle meine tifs werden mit pse4 erzeugt.Wenn ich diese Dateien im Organizer größer als Thumbnails anzeigen will,werden sie nur schwarz dargestellt.Dasselbe passiert mit .cr2(raw)Dateien.Alle als jpegs zu speichern würde ein immenser Aufwand se