How to define an attribute of the declarative component with the list of options

12.1.3 jdev

I'm trying to define a declarative component UOM. It has a text box with a selectOneChoice of the optional codes for this type of unit of MEASURE.

I have uomType as one of the attributes of my unit of MEASURE. It may be of WEIGHT, VOLUME, LENGTH, etc. Is it possible to provide a list of the channels supported for my uomType? So, when the user uses this component, they can select a type they want in the list, instead of typing in themselves.

< afc:attribute >
< afc:attribute - name > uomType < / afc:attribute - name >
< afc:attribute - class > java.lang.String < / afc:attribute - class >
< afc: required > true < / afc: required >
< / afc:attribute >

Thank you.

Hello

Unfortunately the lists are not an option with the declarative elements

Frank

Tags: Java

Similar Questions

  • PowerCLI need to define global attributes on the hosts

    PowerCLI need to define global attributes on the hosts... Please, I beg you. ESXi4.

    The name is easy in the user interface as long as it applies to all hosts in the global inventory, but I want to be able to set or change the value of the attribute on a per host-level or a cluster.

    Thanks for any help!

    I have

    To create global custom attributes that you use

    New-CustomAttribute -Name MyCustomAttribute
    

    To set a global custom attribute for the hosts, you can use

    New-CustomAttribute -Name MyCustomAttribute -TargetType VMHost
    

    If you want to set or change the value of the attribute for a specific host, you can do

     Set-CustomField -Name MyCustomAttribute -Value "MyValue" -Entity (Get-VMHost )
    

    If you want to change the value for all hosts in a cluster, you can do

    Get-Cluster  | Get-VMHost | Set-CustomField -Name MyCustomAttribute -Value "MyValue"
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How to get a program all the list of the names of the values in a registry key?

    Hello

    How to get a program all the list of the names of the values in a key of windows registry without having to configure the number of values in the key?

    Thank you & best regards

    Samuel J

    Hi Samuel,.

    you will get this info from "Query registry key Info.vi".

    Mike

  • How to get the attributes from the list of values

    Hello

    I have two display objects, of 'Customer' and 'CustomerDetails '.
    'Client' view, has the attribute 'CustomerId' I've defined as LOV with view of 'CustomerDetails '.
    Like this:
    <ListBinding
        Name="LOV_CustomerId"
        ListVOName="CustomerDetailsView1"
        ListRangeSize="-1"
        NullValueFlag="start"
        NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
        MRUCount="0">
        <AttrArray Name="AttrNames">
          <Item Value="CustomerId"/>
        </AttrArray>
        <AttrArray Name="ListAttrNames">
          <Item Value="Id"/>
        </AttrArray>
        <AttrArray Name="ListDisplayAttrNames">
          <Item Value="Name"/>
        </AttrArray>
        <DisplayCriteria/>
      </ListBinding>
    I hung out in the soc on my page
    <af:selectOneChoice value="#{bindings.CustomerId.inputValue}" label="#{bindings.CustomerId.label}"
          required="#{bindings.CustomerId.hints.mandatory}"
           shortDesc="#{bindings.CustomerId.hints.tooltip}" id="soc16" autoSubmit="true">
     <f:selectItems value="#{bindings.CustomerId.items}" id="si16"/>
    </af:selectOneChoice>
    In the 'CustomerDetails' view, there is also "address" attribute.
    I would like to get the address according to the ID.

    How could I get through links?
    or in another way.

    Thank you!!

    Hello

    You want to display the address that is present in VO from customer to customer details?

    If so,.

    Perform the following steps:

    1 - Create a transient with string type attribute customer details VO (always updated).
    2 - I hope you have an attribute customer id here attribute where you created LOV. When LOV created in create list of values jump towards the top in the list of return values assign the value of the address in the transitional attribute.

    If you put this attribute on the user interface you can see the customer address id value correspondent.

    Thank you
    Prateek

  • How Gerez af:query attributed to the location of perforem in the

    I ' am on Jdeveloper Studio Edition Version 11.1.2.3.0

    I have a request of adf

    I make location on my request for 2 languages successfully

    I only have 2 properties files in the ViewController and I ' save my people and the 2 files bundle_de.properties and bundle_en.properties in the facesf-config. XML

    and I'm under Select an element of choice on the page home.jspx to allow the end-user to switch between languages as he likes

    in fact all works well

    all menus, forms, and tables he gets a correct language

    but only the internal attributes of the af: query

    they always reads the model resource group

    so please if anyone can guide me how I can join af:query attributes to set the variable bundle of resource for them to reade of

    or tell me the idea how to achieve that

    Thanks in advance

    Hello

    As Dario says you must use a set of model.

    If you want to change the label of the attributes, you can do this by changing the view object (you can do the same in the purpose of the entity and all the viewobject based on this entity is these guidance values) tips of the user interface.

    After that a ModelBundle.properties file will be created automatically.

    The value that you set in the viewobject are those that your query Panel.

    You can create a ModelBundle_de.properties and add the translated labels.

    Kind regards

    Ruben.

  • How to define soap headers in the soap request using qtsoap?

    Hi all!

    I need to add a soap from the soap request header. I use qtsoap to post the soap request. It comes to my complete application. How can I add headers in the code...!

    
    http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      
        http://tempuri.org/">
          string
          string
        
      
      
        http://tempuri.org/">
          string
        
      
    
    

    I tried like this:

    QtSoapMessage request;
    
        QtSoapStruct soap_struct(QtSoapQName("SecureSoapHeader", "http://tempuri.org/"));
    soap_struct.insert(new QtSoapSimpleType(QtSoapQName("Platform"), "BlackBerry"));
        soap_struct.insert(new QtSoapSimpleType(QtSoapQName("AuthToken"), "4A2EDCDA-E5A9-4E77-B41A-F1C1FF15A645"));
    
        request.addHeaderItem(&soap_struct);
    
        request.setMethod("GetCitiesByCountryCode", "http://tempuri.org/");
    
        request.addMethodArgument("countryCode", "", "IN");
        http.setHost("dev4.winitsoftware.com");
        http.setAction("http://tempuri.org/GetCitiesByCountryCode");
        http.submitRequest(request, "/EzeegoMiddleware/Services/HotelService.asmx");
    

    After the specification of it, the application closes...

    If anyone has tried it, help me please!

    Thank you.

    -Rezé

    Hello! I haven't used this API but I guess submitRequest is asynchronous.

    You create soap_struct on the stack (so it's a local variable).

    After the method submitRequest will end the service and all local variables will be destroyed, so the address passed to addHeaderItem will become invalid.

    Try to create soap_struct on the job:

    QtSoapStruct *soap_struct = new QtSoapStruct(...)
    soap_struct->insert(...);
    request.addHeaderItem(soap_struct);
    
  • How to omit elements/attributes if the value of the element is zero?

    Hi gurus

    It's me again. with a quick question...
    I'm sure everyone knows the difference between these two statements (running in the SCOTT schema):

    Select
    XmlElement ('employees',
    XMLAGG)
    XMLFOREST (comm as "SalesCommEmployee")
    )
    )
    EMP;

    Select
    XmlElement ('employees',
    XMLAGG)
    XmlElement ("SalesCommEmployee", comm)
    )
    )
    EMP;

    First statement out fewer records because XMLFOREST shows nothing if the value of the element is null.
    But what happens if element has attributes?. Say:

    Select
    XmlElement ('employees',
    XMLAGG)
    XmlElement ("SalesCommEmployee", xmlattributes (empno as "id"), comm)
    )
    )
    EMP;

    Is it possible to omit any element (including attributes) if the value of the element is set to zero.
    Of course, it is a simplistic example, in this case, a WHERE clause would solve the problem.
    In my particular case, I am managing a huge SELECT with multiple levels of xml and some elements (with attributes), may have null values, and must be included in this case nothing.

    I am considering a dirty search/delete option on the output, but I think that a more elegant solution must exist.

    Can you give me some advice?

    Thank you
    Oscar

    Hello

    You can use a CASE statement, DECODE or NVL2 functions.

    Here is an example with NVL2 (returns 2nd argument if the 1st is not not null, otherwise the 3rd):

    SQL> select xmlserialize(document
      2           xmlelement("Employees",
      3             xmlagg(
      4               nvl2( comm
      5                   , xmlelement("SalesCommEmployee", xmlattributes(empno as "id"), comm)
      6                   , null )
      7             )
      8           )
      9           as clob indent
     10         ) as result
     11  from scott.emp
     12  ;
    
    RESULT
    --------------------------------------------------------------------------------
    
      300
      500
      1400
      0
    
     
    
  • How can I get rid of the list of web sites I visited. I was unable to follow the instructions in the help section.

    bold text When I click on the little arrow at the end of the address line, I get a long list of sites I have visited. How can I get rid of them.

    I went to help, but I could not make heads or tails of what I had to do. The instructions were confusing.

    Entries in the location bar drop-down list with a yellow star (blue on Mac) at the right end of the bookmarks.

    You can delete this an item marked with a bookmark that appear in the list, if you open this url in a tab and click on the yellow star in the address bar.

    This will open the "Edit this bookmark" dialog box and you can click on the delete button to delete the bookmark if you want to delete such an entry marked with a bookmark.

    See also:

  • How to make all the languages in the list of optional updates option in Windows 7 Ultimate?

    I want to get all languages, the list of the optional updates in Windows 7 Ultimate, so that when I see a number greater than zero popup, I know that there is something I want to do I actually see. I have no interest to install another language on 'that' OS.  Help, please!

    HOW to hide an update or restore a hidden update
    http://www.SevenForums.com/tutorials/24376-Windows-Update-hide-restore-hidden-updates.html

    TIP: While pressing & hold down the CTRL key, select the highest language pack then the one below (this should select/highlight all the) hide then each of them.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How to make Windows 7 see the list of the user on the login screen, not just the last logged-on user

    I am running Windows 7 Professional 64 - bit and have two user accounts on my computer. Problem is that the login screen shows only the last logged user and one "other users" button which allows you to manually enter the username. Is it possible to return to the display of a list of all users instead?

    Jon

    OK... I found how to fix this problem. I know it's a few years since this topic (and most of the people moved to windows 8) but for those who are still Windows 7 who are tired to type the user name, whenever you log in, here is how to display the icons of the user:

    WARNING: This patch is not a hack. I do not use any third party software. I am simply change a security setting in the windows system. The longest part is to find the file. As much as I would like to say that this will fix all computers, I can't guarantee that this will be the solution for your system. This fixed my problem because my just setting should be disabled. That being said, let's move.

    As an admin (must be in an account that has administrator privileges) click the Start button and in the search at the bottom of the opening bar, the type of menu "Edit Group Policy" and press on enter. When the local Group Policy Editor window appears, click on the following arrows in the left column to expand the lists to find the file to change...

    > Computer configuration

    > Windows settings

    > Security settings

    > Local policies

    Security options<-Click on="" this="" file="" name="" or="" icon="" (the="" arrow="" icon="" won't="" do="">

    In the right menu appears a bunch of system settings, find the one that we called "Interactive logon: do not display last user name" This is the setting which will no doubt say "Enabled" beside him. Right-click on the file and select 'Properties', then disable the setting. Restart your computer and you should be good to go!

  • How to ADD a program to the list of default configuration?

    I can change my programs by default but, how do I add a new default program to the list?
    HP Pavilion dv7. Win 7. 64 bit. IE9.

    I can change my programs by default but, how do I add a new default program to the list?
    HP Pavilion dv7. Win 7. 64 bit. IE9.

    Hello

    Open Control Panel / default of programs.

    Click on the link associated with a file type or Protocol with a program .

    After all, file types load, select the file type that you want to configure, and then click on change program button.

    If the program is not in the recommended section, click the down arrow for other programs.

    If it is still not visible, click the Browse button and navigate to the location where the programs of *. EXE file is located.

    Select the program , and then click OK.

    Change the programs that Windows uses by default:
    http://Windows.Microsoft.com/en-us/Windows7/change-which-programs-Windows-uses-by-default

    Set Program Access and Computer Defaults: frequently asked questions:
    http://Windows.Microsoft.com/en-us/Windows7/set-program-access-and-computer-defaults-frequently-asked-questions

    Concerning

  • How to enlarge change it in the list for Lightroom?

    Screen Shot 2016-04-15 at 3.45.28 PM.png


    When I go to Photo/Edit in... I get a small list of options.  How to expand the list to include all the Nik plug-ins and "Topaz"?

    Quote from Nik help page - Plug-ins do not appear in Lightroom after installing - Nik Collection help

    4. While Lightroom is still open, click on edit > Preferences or Lightroom > Preferences.
    5. click on the "External edit" tab at the top of the preferences.
    6. to halfway down on the right click on the 'Choose' button and find the file of Nik Collection demand for your product. Generally, it can be found at, C:\Program Files\Google\Nik Collection\Viveza 2\Viveza 2.exe, or Macintosh HD | Applications | Collection of Nik | Viveza 2 | Viveza 2. For other products, replace Viveza 2 with the appropriate product.
    7. Once located, select the program file or application, as described above and click "choose".
    8. set the format file 'TIFF', sRGB (or one of your choice) color space, bit depth to 16 bit, resolution of 240 and compress voice against zero.
    9. under preset click the selector drop-down list and choose, "Save current settings as new Preset" from the list.
    10. type the name of the plug-in as 'Viveza 2' and click on create.

    You can add a plug-in up and following steps 6 to 10 times, if not close preferences by clicking OK. The plugin (s) you added should now be accessible.

    All Nik (except HDR Efex Pro) programs can be added as an external editor by this method.

  • How do I know falling in the list of reception

    Hallo. I am trying to copy items from list 1 list 2, in any case in Listing 1, I have a few items that are different from the objects in list 2 in the list 2 dragDrop event so I wrote Event.preventDefault () to prevent the dough from a different object in list 2... I want to do it manually, but I want to add the new item in the right position not based any where is the dropindicator but I don't know where this index is... When you do that automatically, he knows where to put the new object based on the position of the mouse... How can I know that the index? ...

    I hope you understand my request

    Max

    Hello

    you just put an event listener to move the mouse on the list, refresh the list and then check for event.target in the callback of the mouse function move event.then find the event.target childindex in the list and you put at the specific index in the dataprovider...

  • How to create a group in the list of contacts in BB

    Hello..

    I need to create a group in the list of contacts in bb...

    help me by providing code samples...

    Thanks in advance...

    ~ Sam

    It is not possible to create the BlackBerry groups programmatically in the Contacts application.  Only read access is provided.

  • How can I add lut to the lists in the new color Panel

    Is it possible to customize the list of read?  Release n the new 2015 CC, I wish I could add resembles the dropdown lists that appear in the color Panel.

    I have a lot of looks in different formats that I downloaded on my PC.  I know that I can navigate to them from the color Panel, but I would like to permanently add to the drop-down list so I can choose quickly between them.

    Is there a way to do this?  I tried to copy and paste the downloaded files in the same folder that the looks that are already listed.  This adds the new looks to the LUT under Basic Correction entry list, but not the list of Look under Creative, and it would be nice to make them appear under both.

    In addition, it would be even better to also remove lut that I won't use.

    I hope this question makes sense!

    addition of LUT Lumetri color? Adobe community

Maybe you are looking for

  • Problems with drivers ATI 5650

    Well, here are my questions: What were the latest official drivers for the Radeon Mobility from ATI/AMD are not supported with the HD 5650 on laptops Toshiba (Win 7 Pro x 64). It says it on the download page on the AMS website. I also tried the insta

  • I have an old computer from Compaq with Windows 98 on it. Can I upgrade to Windows XP?

    I have an old Compaq that win98, I install Win XP on it? and it is quite easy to do? original title: the WINDOWS UPGRADE

  • Changes to Windows Live Messenger

    Who may be affected, I recently installed the beta version of Windows Live Messenger and my extreme disappointment, the use of the webcam is no longer available. Why is this? I do not understand why you deleted this option in the program. I had sever

  • IPCC Express ver 3.5.3 OS Version?

    I have a client who is re-installation of their software of IPCC on a newer server. Can they install OS worm 2000.2.7 more service packs first, or what I need to install a version (2000.2.5) earlier, install IPCC Express 3.5.3 and then upgrade the op

  • 1.3 of the ISE and NAC

    I have a client that 5508 WLCs runs through the area, and I'm catching IEEE802.1x authentication for the enterprise WLAN and WebAuth for WLAN of comments... they PSK now :( They have ad and ISE and NAC great interest, so my immediate thoughts are to