Building a SelectChoice or SelectListbox based in Arrays JDev10.1.3 - ADFBC

Hi
I need to create a SelectOneChoice component based on a SelectItem array built in a session scope backing bean.
The questions are:
1. Is it possible to build the SelectOneChoice component without creating a visual object based on the array?
2. If the answer is "yes", how do I build it?
Thanks a lot for any help.
AG

Hi,
I managed to answer my question:
The scene:
1. A form used to create or update records.
2. The record contains a column "MyData" that is to be binded to a SelectOneChoice component.
3. The SelectOneChoice choices are to be built using an array of SelectItem instances (private SelectItem[] selItem;). This array is defined and filled in in a session scope backing bean (mySessionBackingBean).
Now to the action:
1. Drag a SelectOneChoice from the component palette onto your form.
2. In the opened window, select the "Bind to List" option and bind to #{mySessionBackingBean.selItem}.
3. In the "Common Properties" tab, do the Value: binding. Sould look like #{bindings.MyData.inputValue}
Thats all to it.
I hope this is clear and helps somebody.
AG

Similar Messages

  • Build own CANopen VI's based on NI CAN

    Hi,
    I would like to build my own CANopen library based on NI CAN. if any one has done this before
    kinldy let me know, if yes, could you kindly share a example program of , how to initalize the CANopen and send a "start node operation " message.
    regards
    rags

    Hello-
    CANOpen has been used with NI-CAN at a small scale. It is possible to obtain the CANOpen spec and assemble a set of VI's to use CANOpen. Unfortunately, there are no official examples from NI at this time.
    Randy Solomonson
    Application Engineer
    National Instruments

  • JavaFX Visual GUI Builder - not using FXML - only based on pure Java

    The decision to provide a pure Java based JavaFX API activates the pure Java people who where FXML resistent in the past.
    JavaFX is the future ... the last few month when I check the new possibilities I came slowly but surely to this opinion...
    The Scene Build is still based on FXML. So ... for the pure Java developer there is no advantage to use it ... only to see what components are available in the JavaFX standard I see no advantage for me to use it. I won't create JavaFX clients based on FXML.
    What's the future plan...is there a Project in the World who want to provide a Visual GUI Builder who produce pure Java based JavaFX Code like Eclipse Window Builder do it for Swing or SWT or JBuilder for Swing many years ago.
    That's the main reason that JavaFX get successful in the future. A software architect who has to decide using JavaFX as the new Company Standard...will never do it without stomachache.
    Do I miss some news?
    Is there are NetBeans Version who can do it or a plugin I don't now?
    Edited by: 984992 on 30.01.2013 14:24
    Edited by: 984992 on 30.01.2013 14:30

    I don't think you are getting it, or just making a big deal about it.
    Currently SceneBuilder is connected to Netbeans using the FXML. It's not hard at all, nor is there a big issue. In the next few years Scenebuilder will be in Netbeans integrated, so it will be just like the swing gui builder. FX is still new, from a scripting lang, to a super powerful lang. FXML uses so little code.... Also you can do things either with, or without FXML, FXML IS NOT NEEDED IN FX AT ALL, only limited on Scene Builder.
    This is the FXML I am using for a dice game I am creating. Not much at all.
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.util.*?>
    <?import javafx.collections.*?>
    <?import javafx.scene.chart.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.image.*?>
    <?import javafx.scene.layout.*?>
    <?import javafx.scene.paint.*?>
    <BorderPane fx:id="border" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="785.0" prefWidth="1518.0" xmlns:fx="http://javafx.com/fxml" fx:controller="ZonkController">
    <left>
    <AnchorPane minHeight="86.0" minWidth="62.0" prefHeight="390.0" prefWidth="768.0">
    <children>
    <Button fx:id="button" layoutX="126.0" layoutY="90.0" onAction="#handleButtonAction" text="Click Me!" />
    <Pane fx:id="pane" layoutX="737.0" prefHeight="390.0" prefWidth="211.0" />
    </children>
    </AnchorPane>
    </left>
    <right>
    <AnchorPane prefHeight="386.0" prefWidth="460.0">
    <children>
    <BarChart fx:id="barChart" layoutX="7.0" layoutY="-10.0" prefWidth="460.0">
    <xAxis>
    <CategoryAxis fx:id="names" side="BOTTOM" />
    </xAxis>
    <yAxis>
    <NumberAxis fx:id="scores" side="LEFT" />
    </yAxis>
    </BarChart>
    </children>
    </AnchorPane>
    </right>
    <top>
    <ImageView fx:id="iv" fitHeight="394.24998969072755" fitWidth="525.6666641235352" pickOnBounds="true" preserveRatio="true" BorderPane.alignment="TOP_CENTER" />
    </top>
    </BorderPane>
    It is all codecompleted like a class normally would, so there is nothing to worry about :)
    .CSS isn't hard either.

  • How to build the members in essbase based on levels using EAL

    Hi All,
    How to restrict the members to build the in essbase based on levels using EAL.
    I've requirement, in one dimension, needs to build the one level1 member as level0 in essbase.
    please let me know the procedure, if any one implemented or face similar.
    Thanks in advance,
    Kiran

    there's no such functionality in EAL to create Essbase outlines based on levels. the only workaround to this is to use Mapping tables:
    1- create the dimension in essbase with the desired HFM level 1 members as level 0.
    2- set this specific dimension to mapping in your design grid within your EAL Bridge
    3- create the SQL Mapping table and start mapping those members from HFM to Essbase.
    Tanios

  • How do I correct a build error while saving "Calculate Color Index Array.vi"?

    I have an application that takes some data and then periodically generates a nifty 3d graph.  When trying to compile this application to run on a stand-alone machine, i get an error message that crashes the build.  This is the information that is generated for the error:
    An error occurred while saving the following file:
    C:\National Instruments\LabVIEW 2009\vi.lib\Math Plots\3D Math Plots\3D Surface\3D Surface Datatype\Protected\Create Plot Data\Calculate Color Index Array.vi
    Invoke Node in AB_Source_VI.lvclass:Close_Reference.vi->AB_Build.lvclass:Copy_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_EXE.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_Application.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Build.lvclass:Build_from_Wizard.vi->AB_UI_Frmwk_Build.lvclass:Build.vi->AB_UI_FRAMEWORK.vi->AB_Item_OnDoProperties.vi->AB_Item_OnDoProperties.vi.ProxyCaller
    <APPEND>
    Method Name: <b>Save:Target Instrument</b>
    Details: 
    Error 6 occurred at AB_Source_VI.lvclass:Close_Reference.vi -> AB_Build.lvclass:Copy_Files.vi -> AB_Application.lvclass:Copy_Files.vi -> AB_EXE.lvclass:Copy_Files.vi -> AB_Build.lvclass:Build.vi -> AB_Application.lvclass:Build.vi -> AB_EXE.lvclass:Build.vi -> AB_Build.lvclass:Build_from_Wizard.vi -> AB_UI_Frmwk_Build.lvclass:Build.vi -> AB_UI_FRAMEWORK.vi -> AB_Item_OnDoProperties.vi -> AB_Item_OnDoProperties.vi.ProxyCaller
    Can anyone help me understand why the 3D Surface Datatype.lvclass keeps booching on my compile?
    Thanks!

    Check this

  • How to 'build' one row only in a 2d array

    Hi
    I'd like to have a 2D array with eg 4 rows, and each time the loop iterates, it should append new data at the end of a specified row (row 0 in example) while the data in the other rows remain unchanged.
    I tried all combinations of build array, replace array subset etc but for some reason I cannot get the rows to extend in length..
    I want the output array in the example to be like:
    2 2 2 2 2 2 2 2 2
    x x x x x x x x x
    x x x x x x x x x
    x x x x x x x x x
    Thus append the data array [2 2 2] 3 times to the first row, and leave the rest unchanged, but all I get is an empty array..
    I've been struggling with this for a few hours now, but I can't find it.. Although I think it's very simple!
    Or should I go fo
    r an entirely different technique like clusters or so?
    Can someone help me out?
    Attachments:
    build_1_row_in_2D_array.vi ‏24 KB

    Khalid,
    thanks for your diagram; it didn't help me because it doesn't really do what I want, but I think the transpose 2D function is pretty interesting anyway!
    I found the solution myself, but I don't know if it's clean programming considering memory etc; I first initialize an array that is big enough to conatain all data and an array containing #row elements for storing the total amount of new data written in a row.
    Then I can build a specified row and by shifting the size of the data already written in that row everything gets in place..
    The loop takes quite a lot of blocks and wires, comments on how to get it smaller are welcome!!
    Attachments:
    build_1_row_in_2D_array_working.vi ‏37 KB
    1_row_in_2d_array.jpg ‏179 KB

  • Shared Variable based on Array of cluster

    Hello,
    I've created a shared variable which is based on an array of cluster (typedef). The cluster only contians two double elements for x-y coordinates of a point.
    Everything seems working until I found the shared variable can only hold the first two elements when I pass an array to it.
    Are there any settings I've missed?
    Thanks
    Yan

    Data is simply created and directly sent to SV.
    The difference during defining the SV is:
    Normally, when define an array SV, it allows to change the "Number of elements" (default as "2").
    However, when define a typedef array SV, the option is gone. Does it then use the default number "2" as the number of elements?

  • Generating unique hascodes based on arrays

    Hi, I have a problem that I'm looking to solve but perhaps I'm getting it more complicated than really is.
    So, I have an object (BlaBla) that contains an array of bytes. BlaBla objects are stored in a hashtable. So, I need that the hashtable returns an object when they have the same array content (if they are in the same order).
    For example, two BlaBlas with the following arrays:
    [2, 3]
    [3, 2]are different, but the following BlaBlas are supposed to be treated as the same:
    [0,0,0,3]
    [0,0,0,3]Basically, I want to count the occurences of the same sequences of bytes of BlaBlas in my Hashtable<BlaBla, Integer>.
    My approach is trying to write a hashCode() for BlaBla that returns an unique code for each different array but the same code for equal arrays, but with no success.
    Would you, Java gurus :P, suggest a more efficient approach ?
    Thanks you.
    Edited by: crp on Jan 26, 2009 6:32 PM

    crp wrote:
    My approach is trying to write a hashCode() for BlaBla that returns an unique code for each different array That's only possible if the number of possible arrays is <= 2^32.
    If your array will always hold exactly one int, then the hashcode is the int.
    If your array can hold one or two ints, but you constrain each int to only 2^16 possible values, then you can put one int in the high order two bytes, and the other in the low order two bytes.
    And so on. If you know enough about your possible values, it may be possible to set up your hashcode to be unique, but it can very easily become impractical.
    Hashcodes are not intended to be unique.

  • Building New report in BW, based on R/3 Report

    Hi,
    I am new to BW. I have a report in R/3 which has got some performance problems. So, user wants to re-build the same report in BW.
         What should be first and the best way to start the investigation to know about the R/3 tables, datasources and keyfigure calculaton for designing it in BW?
    Thanks in advance.
    Shiv

    Hi Ram,
    The user has given me only a Transaction Code. They hav no clue abt who developed the R/3 report. Thus, its not  possible to ge the Table inputs from them.
    Hi Manga,
    Thanks for ur help. Though i found out the Function Name. But moving into its details, i found 2 system defined and 4 user defined functions. At this point i cudnt trace any furthur. Can you provide any help in this regard?
    Thanks...

  • Ho to count the total number of rows Sql Reporting Services Report Builder's Dataset after filteration based on parameter

    Hi to all,
                 I have parameter and data-set i.e consists of SharePoint List items,Data-set get's  filters and I need to count the total rows of the data-set i.e I get after filtration.
    Thanks, Quality Communication Provides Quality Work. Mohammad Siddiqali.

    Hi siddiqali,
    Thanks for the question and Destin Joy’s reply. Please try to add the filter in the dataset level rather than the data region
    level. Detail steps as below.
    1.      
    Double-click the dataset name in the Report Data window, click Filters in the left panel.
    2.      
    Click Add button, choose Admission Date in the Expression drop-down list. Type in the Value textbox with the parameter name: @selectDate.
    3.      
    Right-click the cell that your identified by the red circle, select Expression, type in it with:
    =CountRows("DataSetName")
    Thanks,
    Sharp Wang
    Please remember to mark the replies as answers if they help you and unmark them if they provide no help.

  • Makepkg refuses to build due to depends array [solved]

    Makepkg refuses to build a package based on the contents of the depends array.  My understanding is that the contents of the makedepends array are needed to build, but the contents of the depends array are needed to run the software.
    Example, I want to build nvidia drivers for a kernel which I do not have installed.  I do have that specific kernel headers extracted (via a wrapper script) to $startdir/tar/lib/modules/${_kernver}/build
    I get the following error when I try to build:
    $ makepkg -s
    ==> Making package: nvidia-lts-ck 260.19.36-2 (Sun Jan 30 15:41:20 EST 2011)
    ==> Checking Runtime Dependencies...
    ==> Installing missing dependencies...
    error: 'kernel26-lts-ck>=2.6.32': could not find or read package
    ==> ERROR: 'pacman' failed to install missing dependencies.
    But if I comment out the depends array, it builds just fine.  What am I missed?
    PKGBUILD:
    # Maintainer: graysky <graysky AT archlinux DOT us>
    # Contributer: Eric Belanger <[email protected]>
    pkgname=nvidia-lts-ck
    pkgver=260.19.36
    _kernver='2.6.32-lts-ck'
    pkgrel=2
    pkgdesc="NVIDIA drivers for kernel26-lts-ck"
    arch=('i686' 'x86_64')
    url="http://www.nvidia.com/"
    makedepends=('kernel26-lts-ck-headers>=2.6.32' 'kernel26-lts-ck-headers<2.6.33')
    depends=('kernel26-lts-ck>=2.6.32' 'kernel26-lts-ck<2.6.33' "nvidia-utils=$pkgver")
    provides=('nvidia')
    license=('custom')
    install=nvidia-lts-ck.install
    if [ "$CARCH" = "i686" ]; then
    _arch='x86'
    _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
    source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
    md5sums=('2826484d87827351774449382e45c4a9')
    elif [ "$CARCH" = "x86_64" ]; then
    _arch='x86_64'
    _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
    source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
    md5sums=('6ebc5db9066e920b0b0e48377ce5eeb5')
    fi
    build() {
    cd "${srcdir}"
    sh ${_pkg}.run --extract-only
    cd ${_pkg}/kernel
    make SYSSRC=$startdir/tar/lib/modules/${_kernver}/build module
    package() {
    install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
    "${pkgdir}/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko"
    install -d -m755 "${pkgdir}/etc/modprobe.d"
    echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist-lts_ck.conf"
    install -D -m644 "${srcdir}/${_pkg}/LICENSE" "${pkgdir}/usr/share/licenses/nvidia-lts-ck/LICENSE"
    EDIT:  My bad... so accustomed to using the -s switch!  I now realize I need to makepkg -d to get this to work properly.
    Last edited by graysky (2011-01-30 20:59:19)

    Lone_Wolf wrote:tghe-retford, latest version of readline is      6.3.008-1 , is the mirror you selected up to date ?
    https://www.archlinux.org/mirrors/status/
    Finally managed to update it to 6.3.008-1, still gives the same error:
    root@archiso ~ # pacman -Q readline
    readline 6.3.008-1
    root@archiso ~ #arch-chroot /mnt /bin/bash
    /bin/bash: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory :(
    127 root@archiso ~ #

  • How do I build a field based on Checkboxes?

    I am VERY new to Javascript...but I think I can do what I want, just not sure of the syntax...
    I have a very large form with lots of checkboxes.
    I want to build (fill) some text responses based on those checkboxes.
    Assuming I have checkboxes 1 -3  (checkbox.1 - checkbox.3)
    In each checkbox the export value is a something like "This is the text associated with checkbox  #1"
    On the last page there is a text Box called "Summary" (summary.1)
    On my LAST page, I want to have a button with a MOUSE-UP script that takes the Export values in checkboxes 1 -3 and puts them into the Textfield "summary"
    This SHOULD be easy right?
    Eventually, if everything else works, I want to build a for-next loop that will cycle through LOTS of checkboxes and build a multi-line Summary, and maybe even Sort it -BUT- only do that when the "build" button is pressed, otherwise the form would always be thrashing....
    This assumes that a non-checked box exportvalue = NUL

    Ok, I wanted to invoke a interactive debug session so I could type in javascript and see what it returned...
    I figured I could fill in the form and have the debugger open next to it.... and qwery the form interactively by typing in commands as if they were script actions
    Uhm...where is that... I tried in both Acrobat Pro-XI and reader to invode a debug session.  Reader doesn't have one and Pro just showed me the console but nothing happned when I typed something into the console.  I expected an error message or something.

  • Building Web Based VoIP Phone using Flex

    Hi, all.
    I want to build a sip client web based using Adobe Flex. Anyone can tell me how I start?
    By the way, I use Asterisk as communication server.
    In other discussion, I find the google alchemy, but I still don't know what it is.
    Please your answer, all flex master.
    Thanks.

    I'll move this to off-topic since you've been correctly pointed to forums.asp.net.  I just want to mention that whatever that article was demonstrating is probably irrelevant in today's web development ecosystem.  For example, an event calendar
    is likely to be its own web control that you can just drop onto a web form (or otherwise instantiate in a web page).  I know of a couple retail components that can do it and there are probably free ones available too.  Even if you build your own
    it will likely be little more than an existing calendar control with perhaps some custom rendering code.
    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

  • Nest array in a custom component

    Hello and thanks in advance,
    I am building a custom datagrid component name custDG. It is a canvas containing the DG and some other visuals. So the actual component is based on canvas and has a DataGrid nested.
    I have also build a custom class name config based on Array to hold the DG column information
    AND a custom object class name col to hold each column information inside the config array class...
    My question is how to make it possible for user to nest the array and columns inside the custom component when adds it to an application. For example:
    <mike:custDG... >
         <mike:config>
              <mike:col.../>
              <mike:col.../>
              <mike:col.../>
         </mike:config>
    </mike:custDG... >
    Want to make something similar to the columns-datagridcolumn thingie but with custom classes in a custom component.
    Anyone plz?
    Thanks

    I finally found how to set a default skin to a custom component so that users of my component will not have to set again the skinClass value of my component.
    You have to create a defaults.css file at the root of your library and tell the compiler to take it into account.
    The remaining problem is about the compiler. There are some steps before success and they are a bit mysterious/unclear....
    I found 2 or 3 blog articles explaining those steps but the compiler arguments to use are all differents in each article...
    Here are the links I found:
    http://www.unitedmindset.com/jonbcampos/2010/05/12/creating-custom-spark-components/
    http://www.betadesigns.co.uk/Blog/2010/05/14/default-skin-for-custom-flashbuilder-componen ts/
    http://flexdevtips.blogspot.com/2009/06/default-stylesheet-in-swc-flex-library.html
    Following the first article guidelines has been successful for me but I'm not marking this topic as Resolved because I'd like some answers about this whole thing...

  • Report Builder 1.0 for SQL Server Reporting Services 2008 R2

    We are trying to implement Ad-Hoc Reporting using SSRS 2008 R2.
    First of all, it is very unhelpful that all SSRS books are for either 2008 or 2012, even though SSRS has major changes in 2008 R2 compared to 2008.
    Our instructional materials indicate that we should build Report Models to abstract out our databases into terms familiar to our business users.
    The problem we are having is the difference in functionality between Report Builder 1.0 and Report Builder 3.0. Report Builder 3.0 is touted as having the modern, ribbon based interface that is supposed to make end-users feel more comfortable.  However,
    all the documentation says that end users are supposed to use Report Builder 1.0 for Ad-Hoc Reporting.  And, it seems, that the reports generated by Report Builder 1.0 are not round-trip compatible with all the other reporting tools for SSRS 2008 R2.
    The documentation we have illustrates that Report Builder 1.0 is nice for Ad-Hoc reporting, because is based on connecting directly to Report Models, and the end users can directly drag-and-drop entities and fields into their reports.
    When we try working with Report Builder 3.0, it seems we must first connect to the Report Model as a Data Source and then build a Dataset query on the Report Model.  Only then are some entity attributes available to be dropped into the report. 
    If the user decides another source column is needed, they have to go back, edit the query, save the query, and then drag the column from the Dataset to the report.  This does not seem end user friendly at all!
    We are also concerned that if we train our users on the seemingly soon-to-be-obsolete Report Builder 1.0, and get them used to having direct Report Model access, that at some point we will have to move them to the Dataset-interrupted approach of Report Builder
    2+.  Highlighting this perception of impending obsolescence of Report Builder 1.0 is that in our shop that is starting with SSRS 2008 R2, we cannot figure out how to get a copy of Report Builder 1.0 in the first place.
    We just don't see our end users being savvy enough to handle the steps involved with creating Datasets on top of Report Model Data Sources.  So we would have to build the Datasets for them.  But in that case, what point is there in creating any
    Report Models in the first place if DBAs are the ones to make Datasets?
    As such, it is hard to envision a forward-looking SSRS implementation that has the end user ease-of-use Ad-Hoc reporting that the SSRS 2008 documentation presents.
    What is it that Microsoft actually wants/expects SSRS implementers to do?
    Dan Jameson
    Manager SQL Server DBA
    CureSearch for Children's Cancer
    http://www.CureSearch.org

    Hi Dan,
    Report Builder 1.0
    Simple template-based reports
    Requires report model
    Supports only SQL Server, Oracle, and Analysis Services as data sources
    Supports RDL 2005
    Bundled in SSRS
    Report Builder 2.0 or later
    Full-featured reports as the BIDS Report Designer
    Doesn't require (but supports) report models
    Supports any data source
    Supports RDL 2008
    Available as a separate web download
    In your scenario, you want to use Report Builder 1.0 in SQL Server Reporting Services 2008 R2, I am afraid this cannot achieve. Report Builder 1.0 is available in the box in either SQL 2005 or SQL 2008. It is not available as a separate client apps and is
    only available as a click once application.
    Report Builder 1.0
    Report Builder 3.0
    Thank you for your understanding.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Cisco ASA 5520 SSL VPN Web Login Customization For RSA Login

    I have a Cisco 5520 that I have RSA radius with hardware token up and working witrhout issue. The RSA radius authentication works fine. My problem is that I want the login page of the WebVPN portal to display two fields for the user RSA passcode. An

  • Showing zero instead of blank values

    Is there an easy way to show a zero for everytime a NULL value is shown in a pivot table? Also in the pivot chart if a bar chart is being used, is it possible to chart the zero value on the axis? Thank you much!

  • Validation Failed for C:\winnt\system32\vsinit.dll

    I am running VPN Client 4.6.00.0045 on Windows 2000 and when I reboot I get the an error that reads "Validation Failed for C:\winnt\system32\vsinit.dll" It seems the VPN Service is not starting. A reinstall will not fix it. I do not have ZoneAlarm or

  • JAXB (XJC) problem with Java 1.4.2_02

    Hi, I am trying to migrate our system to Java version 1.4.2_02 (currently using 1.4.1_02). We use XJC from JAXB to compile XML schema files into java classes. JAXB is packaged in JWSDP (we are using version 1.3). I am currently experiencing a problem

  • Thumb nails have red X

    After sending clips from FCP the first 50 clips in the timeline display a thumbnail and the last 50 display a red X although they do play properly. I've tried to reconnect the media but that doesn't seem to rectify the situation. Also, I can't seem t