Dynamic loading tree and data grid

Hi All,
I new to java as well as JSF. I am very impressed with the jsf and Sun Java Creator IDE. I made a sample project.
Now I want to load tree and data grid with dynamic values how can I achieve this.
Please help to find out some examples.
Also I need to know who I can use SOAP call using JSF.
Thanks
CSCS

To dynamically load a Basic Table (ui:table) from a database, see http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/databoundcomponents.html
To dynamically load a Basic Table from other sources of data that are loaded into an array or such, see http://blogs.sun.com/roller/page/divas?entry=table_component_sample_project
To dynamically CREATE a Basic Table, see http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/createTableDynamically.html and http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/add_component_to_table.html
To dynamically create an HTML table on the fly, see section 7.5 in Chapter 7 of the Field Guide at http://developers.sun.com/prodtech/javatools/jscreator/learning/bookshelf/index.html
To dynamically create a tree, see Dynamic Tree example at http://developers.sun.com/prodtech/javatools/jscreator/reference/index.jsp.
A tutorial for dynamically creating a tree from a database is work in progress.
Hope this helps,
Chris

Similar Messages

  • Difference between data form and data grids

    Can anybody tell me what is the difference between data form and data grid.
    Regards

    data forms have restricted access. user can not access all the dimension and members, based on his role and authentication can access the form.
    data grid r used for calculation, currency translation and coslidation and it consists of menu of options for diffrent consolidation based on cell status.
    data grid can have line item information, description and cell status information.

  • Regarding dynamically loading slider/radios within grid

    I have a DataGrid and I am using ItemRenderers to dynamically load components like images and buttons within it. Now, I wanted to know if its possible to load a slider or even a radiogroup based on values that the datagrid receives dynamically. If a slider is used it needs to be calibrated with data that it receives from dataprovider property of the grid. Similarly, if a radio group is used, I should be able to render number of radios depending on the data provided to datagrid.
    I am basically building an application for image search where I want to provide a slider or radios (within each row of datagrid) displaying various sizes in which the same image is available. The user should be able to select a size and then further processing continues.
    Let me know if this is possible.Thanks.

    If this post answered your question or helped, please mark it as such.
    This code will solve your problem or get you much closer to a solution:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
       <![CDATA[
          import mx.collections.ArrayCollection;
          import mx.events.ItemClickEvent;
          [Bindable] private var ac:ArrayCollection = new ArrayCollection([
            {img: "test1", vals: [10, 20, 30, 40]},
            {img: "test2", vals: [15, 20, 100]},
            {img: "test3", vals: [100, 200, 300, 400, 500]}
        ]]>
      </mx:Script>
      <mx:DataGrid dataProvider="{ac}" width="680" height="480"
        variableRowHeight="true" alternatingItemColors="[0xff0000, 0x0000ff]">
        <mx:columns>
          <mx:DataGridColumn dataField="img"/>
          <mx:DataGridColumn dataField="vals">
            <mx:itemRenderer>
              <mx:Component>
                <mx:VBox>
                  <mx:Text id="txt" fontSize="20"/>
                  <mx:RadioButtonGroup id="grp" itemClick="txt.text = RadioButton(event.relatedObject).label;"/>
                  <mx:Repeater id="rp" dataProvider="{data.vals}">
                    <mx:RadioButton label="{rp.currentItem}" groupName="grp"/>
                  </mx:Repeater>
                </mx:VBox>
              </mx:Component>
            </mx:itemRenderer>
          </mx:DataGridColumn>
        </mx:columns>
      </mx:DataGrid>
    </mx:Application>

  • 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.

  • Coded UI: How to verify watermark displayed in the fields and Data grid?

    Hi,
    I've an requirement to verify watermark in the fields say username field displays "Username" water mark when no data is available in the field and water mark in data grid saying "No data available".
    Please observe the water mark displayed in screenshot below:
    So how to verify watermark?
    Thanks & Regards,
    Sunil
    Best Regards, Sunil Email: [email protected]

    Hello,
    Depending on what form technology you are using, you can try posting to one of the following forums:
    Windows Forms General
    Windows Presentation Foundation (WPF)
    ASP.Net forums
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Loading photos and data into InDesign

    Hello
    I have an Excel file containing the file location, title, description and the date the photograph was taken for about 200 photos.  I need to be able to load the image and relevant data (i.e one photo per A4 page) automatically for each image.
    What i want to end up with is a document containing 1 photo and the relevant file title and description per page, therefore 200 pages.
    Can anyone tell me the best way of doing this.  I have tried Google but can not find anything relevant.
    Thanks

    @ingalla – if you want to use Data Merge see the following blog post at Indesignsecrets and the script by Loic Aigon:
    http://indesignsecrets.com/using-data-merge-to-create-a-table-for-a-directory.php
    http://www.scriptopedia.org/en/js-indesign/126-csvtotable-en.html
    Uwe

  • Dynamic load vs time data issue

    Let me start off by saying that I am very new to labview...
    I am tryng to gather data from a load cell.  I can see the force plot on my front panel and can set it to display time & date on the x axis, but my problem lies in extracting that data to a file.
    The .lvm file I save to successfully shows the force values in the second column, but gives me all zeroes in the first column, i.e. I don't get any time output.
    Any help in this matter would be greatly appreciated!
    Saba
    Attachments:
    load cell.vi ‏61 KB

    Hi Saba,
    Have you tried writing to a spreadsheet or text file with tab-delimited output. The examples for writing to a spreadsheet are there in the Fle IO section of Example Finder in LabVIEW. Hope this helps!
    Ipshita C.
    National Instruments
    Applications Engineer

  • Downloading loading option and date format

    Hello,
    While downloading a pdf file by mistake i checked on both "Save File" and also "Default", following to which whenever i download any file its directly saving file wherein i need to just open the file withou saving the save.
    Am not able to find options tab under Tools inorder to reset my setting to Default
    Also currently under Firefox date format is MM/DD/YYYY, could we change this to DD/MM/YYYY
    Am using 3.6 (corporate version),
    Thanks, Karthik ([email protected])

    setDateFormat() is expecting a format mask that is valid for the java.text.SimpleDateFormat object.
    So, just do:
    setDateFormat("d/M/yyyy");
    You can find more helpful information on using the XDK at my website: www.webspedite.com/oracle.
    Jason M Cohen

  • Reading a csv file and bind to a data grid

    hi. doing a school project and been searching. the application reads a csv file from c:\stocklist.csv, and then this in a button called btnLoadData, and now need to read in a data control called DmgDisplayData. do i put the code in the button, or in the
    data grid. been searching, but cannot seem to find any thing. so, where do i put the code, in the data control, and does any one have an example code how to read into the data fields. also need to have one field, able to edit, the other three or four fields,
    read only. can any one help me out. never covered this in the subject, but did do file streams a few years ago in vb, but usin g c#,a dn the help in visual studio, not that helpful, with a blind person using a screen reader, jaws for windows from http://www.freedomscientific.com,
    and using visual studio 2013 community edition. can any one help me out, been searching and trawling about 15 to 20 pages so far, and did try a couple of sites, but could not find, any help. thanks. the application is to read a csv file from a button, and
    load into a data grid, then have a message box, saying file load successful, then have one field, order on as edit, but the other fields, read only, so do i need the navigator buttons, for next, back, previous, etc, and how do i code that as well. not to do
    it for me, want to learn, but maybe some sample code, did do navgiator controls, years ago for a vb project, but need the c # example for that, thanks. then you have a button, Save data, that saves the csv file in the data grid. so can google for that. then
    have a toolbar, with a button saying, Sort Items, a tool strip, and when you click on that button, you have a drop down list, of three items, then a sort button, which will then sort the array in the data grid. so, do i need another form, or just do the combo
    box as an invisible control, then just refrence, that in the toolbar. so need to use th file class and an array, learnt about single and multi arrays. any ideas. thanks.
    http://startrekcafe.stevesdomain.net http://groups.yahoo.com/groups/JawsOz

    Hi Marvin,
    -->where do i put this, in the data grid click event. or in the form load event. thanks.
    You could use this code after you initialize the DataGridView. you could put it in the form load event.
    -->what about how get the tool bar and the combo box and another button, then sort from the combo box on the array for the collumns, for to set focus to the first read collumn for the data grid. how do i do that, close the parent form, and have another
    form on the toolbar.
    Since this is another issue of this thread, I would recommend you posting it with
    another thread. We will focus on that thread to help you. Thanks for your
    understanding.
    BTW, Before you asking questions, I suggest you could learn to make it by yourself. You could begin to learn winforms in MSDN articles:
    https://msdn.microsoft.com/en-us/library/dd30h2yb%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396. Or Google it, you will get many answers. In that way, you will learn more from the questions.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Drag and drop in tree and grid

    Hi all, I have one question on dragging and dropping from grid to/from tree.
    In a screen I have one tree and one grid. The following operations need to be performed on this screen.
    1. Drag from grid and drop in tree.
    2. Drag from tree and drop in grid.
    3. Drag from tree and drop in tree itself.
    Actually we will add the flavors for every action. Here I am confused in how many flavors I need to take.
    What I am taking right now are:
    For tree: 3 seperate flavors.
    For Grid: 2 seperate flavors.
    Can you please advise me on this.
    Thanks and Regards,
    Balakrishna.N

    Hello,
    Try with this programs
    BCALV_TEST_GRID_DRAG_DROP
    BCALV_TEST_DRAG_DROP_02

  • Difference between Data Grid and Data Forms

    Hi all,
    What is the difference between data grid and data forms.

    Data entry forms are pre defined and are generally used to manually input data into reporting (financial statement) schedules.
    They can also be used for reviewing purposes and it gives users a presentable / and consistent format to view data in Hyperion.
    Data grids are the equivalent of pivot tables in excel. It should be used for ad hoc purposes to view / analyse data in whatever form you choose. The user has the flexibility to choose what they see in the rows, columns and page dimensions.
    One of the main differences between data entry forms and data grids is that you can’t export data grids to excel whereas you can with data entry forms. Other differences are:
    1. Run consolidation, translation, promotion from data grids but not in data entry forms.
    2. You can link other data entry forms to a data entry form
    3. Data entry forms offer greater formatting options than in data grids i.e. colours, fonts, bold, italics.
    At the end of the day, they are similar and there is no reason why you can’t have (use) both. It all depends on your local needs on how best you use both.
    I hope above information helps.

  • Nic teaming - what is dynamic load balancing

    When set up nic teaming in Windows  2012 I have the option of selecting "Address Hash", "Hyper-V Port", or "Dynamic" for the load balancing mode. The technet documentation explains "Address Hash" and "Hyper-V
    Port" but there is nothing about "Dynamic". Is there anywhere I can find a description of what the "Dynamic" option provides?

    Microsoft's official recommendation is to use Dynamic load balancing in most configurations.
    Section 3.3 of
    the NIC Teaming Deployment Guide explains what Dynamic is.  Section 3.4 suggests when to use Dynamic load balancing, and when to use other modes.
    I suggest reading the Guide from start to finish.  I learn new things every time I look at it.

  • Advice on rendering multiple data grids based on 1 array

    What is the best way to render the following screen ?
    There is 1 array collection that is sorted (in this example) by category. The screen lists by category and then prints a datagrid (perhaps) of the items within the category. Each time the category changes, a new header and data grid is rendered.
    Hot Dogs (Category Description... the could be n number of categories)
    Item Product           Brand      Grade      Price
    1      mini hot dogs   mayer     supreme   8.00
    (there could be n number of lines)
    Beef
    Item Product           Brand      Grade      Price
    1      mini beef        mayer     supreme   8.00
    (there could be n number of lines)

    Use XML data and then you can use e4x syntax to extract the data you need by filtering by category in e4x syntax.
    See these LiveDocs links:
    http://livedocs.adobe.com/flex/3/html/help.html?content=13_Working_with_XML_03.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=13_Working_with_XML_01.html

  • Dynamically loaded content?

    Can Catalyst (current beta) dynamically load text and images?  If not, will the release version have this capability?

    You can create a SWF file with Flash CS3 or CS4, to load textes or images dynamically.
    Then you import ("Import Artwork ...") the SWF file into Catalyst. That s all.
    More details (as far as i know) :
    - if you write actionscript, dont use the "root" keyword (as the SWF ll be embed in the Catalyst project)
    - if you need extra files (ex: a TXT file to set which image has to be loaded), paste them in the "src/assets" directory (from the "code view" of Catalyst)
    - if you need to edit such files : open them with the "system application" (again, from the "code view")

  • Load cells and non contact strain measurement

    I am designing a bi-axial machine which meant for a fatigue test.
    Could someone recommend me where to get a dynamic load cells and as well non-contact strain measurement?
    Thanks.

    Hi Alvin788,
    Do you presently use any hardware to measure these or are you enquiring as to what hardware/software you will need? Are you planning to use LabVIEW? The following three links talk about measuring Load Cells as well as Strain Gauges 
    Continuous Acquisition from a Smart TEDS Load Cell Sensor
    How do I Configure a Load Cell in MAX?
    Strain Measurement with a Strain Gauge
    This post will also be highly helpful.

Maybe you are looking for