How can I bind a component to ADF?

Hi all!
I'm really new to OOP, Java, and JDeveloper. I managed to create a small ADF Swing application successfully through the wizards, help files, and examples.
I want to incorporate the components of SwingX into it, specifically having auto-completion in my combobox.
I did the following:
import org.jdesktop.swingx.autocomplete.Configurator;
JComboBox mycomboBox = [...];
Configurator.enableAutoCompletion(mycomboBox);
but when I run the form, mycombobox just displays "oracle.jbo.server.ViewRowImpl@2" and it doesn't auto-complete.
Searching the forums, Erik said "If you are trying to bind the component using ADF, then you will have to create your own custom binding class. Depending on the component's needs, you might start with adapting the JUTextFieldBinding to work with your component.".
Can someone point me to a "HOW-TO" guide for the above, esp. code samples etc...
Thanks.

Unfortunately, the solution is very complicated due to the way the JUComboboxBinding is implemented. It doesn't require a custom ADF binding class, however.
I'll see if we are able to provide some of the pieces needed to duplicate what we have done to use SwingX auto-completion.
Erik
P.S. Let me know if you need to use a SwingX JXTreeTable. We do have a custom binding class for it that we should be able to share.

Similar Messages

  • How can i use JS files in ADF for language translation.

    Hi,
    I have JS for different languages and dn't want to convert them to property files(resource bundle files). How can i use JS files in ADF for language translation.
    Thanks

    Hi ILya Cyclone,
    Thanks alotfor the reply. Can you tell me where should i include this in the jspx page.
    Step 1)
    I have the js file as js/ifl_messages_US.js and i created a resource file as you mentioned: JS_FILE_PATH=js/ifl_messages_US.js
    Step 2)
    Then added the entry in faces-config.xml for the resource file as follow:
    <resource-bundle>
    <base-name>resource_en.properties</base-name>
    <var>resource</var>
    </resource-bundle>
    <locale-config>
    <supported-locale>en</supported-locale>
    </locale-config>
    Step 3) This is my jspx page. In which a table is dynamically created on page load. Can you help me where should i enter the "#{resource.JS_FILE_PATH}"
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:resource type="javascript" source="/js/pdfFile.js"/>
    <af:form id="f1">
    <input type="hidden" name="checkRadio" id="checkRadio" value=""/>
    <af:panelGroupLayout id="pgl1" halign="left" layout="vertical">
    <af:image source="/images/BRAND_IMAGE.gif" id="i1"/>
    </af:panelGroupLayout>
    <af:spacer width="10" height="10" id="s1"/>
    <af:table varStatus="rowStat" summary="table"
    value="#{backingBeanScope.DummyBean.collectionModel}"
    rows="#{backingBeanScope.DummyBean.collectionModel.rowCount}"
    rowSelection="none" contentDelivery="immediate" var="row"
    rendered="true" id="t1" styleClass="AFStretchWidth"
    binding="#{backingBeanScope.DummyBean.myTableBinding}"
    columnResizing="disabled">
    <af:column id="c2" headerText="Actions">
    <af:activeOutputText value="#{row.Actions}" id="aot2"/>
    <af:goLink text="#{row.Actions}" id="gl1"
    clientComponent="true" visible="false"/>
    <af:selectBooleanRadio text="" id="sbr1"
    valueChangeListener="#{backingBeanScope.DummyBean.checkselectbox}">
    <af:clientListener method="selectCheckBox" type="click"/>
    </af:selectBooleanRadio>
    </af:column>
    <af:forEach items="#{backingBeanScope.DummyBean.columnNames}" end="#{backingBeanScope.DummyBean.columnSize}"
    var="name" begin="1">
    <af:column sortable="false" sortProperty="#{name}"
    rowHeader="unstyled" headerText="#{name}"
    inlineStyle="width:100px;" id="c1">
    <af:activeOutputText value="#{row[name]}" id="aot1" escape="false">
    </af:activeOutputText>
    <!-- <af:outputFormatted value="#{row[name]}" id="of1"/>-->
    <!--<af:goLink text="goLink 1" id="gl1"
    destination="#{row.bindings.url.inputvalue}"/>-->
    </af:column>
    </af:forEach>
    </af:table>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks in advance

  • How can I use EJB component on Weblogic 8.1 server ?

    hi,dear sir:
    How can I use EJB component on Weblogic 8.1 server ?
    It need client jar to invoke ejb,but what will I to do for this jar file? what does it contain? format ?
    If my EJB module contain 100 session bean and 50 Entity bean,but I want invoke 20 session beans in my module, how can I to do?
    thank you...

    Hi,
    This forum is exclusively for Creator. please post this on appropriate forum
    regards
    CreatorTeam

  • How can I get the component LTC1060 in the multisim 10 library ?

    How can I get the component LTC1060 in the multisim 10 library ?

    ahnsei ,
    This is a switched capacitor filter - with a variety of configurations for each mode of operation based on the switching frequency.   To create a transistor level SPICE model would be unrealistic (which is probably why you haven't found one), so I would suggest looking at the datasheet and specifically, looking at each mode of operation and seeing if you can approximate the filter topology with an expression for the transfer function given in the datasheet (by calcuting based on the switching frequency).
    Based on the expression you get, you can use the Multisim component "TRANSFER_FUNCTION_BLOCK" to plug in the correct transfer function and thus approximate the behavior of the filter in the circuit.
    This transfer function can be found in the Master database -> Sources -> CONTROL_FUNCTION_BLOCKS.   There was a previous discussion giving some additional details on how to setup the transfer function block:
    http://forums.ni.com/ni/board/message?board.id=370&thread.id=3987
    Regards,
    Patrick Noonan
    Business Development Manager
    National Instruments - Electronics Workbench Group
    50 Market St. 1-A
    S. Portland, ME 04106
    Email: [email protected]
    Tel. (207) 892-9130
    Fax. (207) 892-9508 

  • How can I create the component like ComboBox in flashlite2.0 ?

    How can I create the component like ComboBox in flashlite2.0
    I'm a new man, please gave me an example!
    Thanks.

    I don't see anything special about the play button in MPMoviePlayerController....
    the "glowing" effect icons are all standard UIBarButtonItem objects:
    http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIBarBut tonItem_Class/Reference/Reference.html

  • How can I control updating in Oracle ADF

    I have been using Oracle Forms for many years and am trying to learn Jdeveloper and Oracle ADF. In Oracle Forms, we base all of out blocks on views and control all updating in on-insert, on-update, and on-delete triggers. How can I control updating in Oracle ADF in a similar manner?

    Hi,
    Hope following will helpful
    http://www.pitssamerica.com/files/101102_WP%20FormsToADF.pdf
    http://www.exploreoracle.com/2010/08/24/oracle-application-development-framework-adf-and-oracle-forms-developers/
    http://www.google.lk/url?sa=t&rct=j&q=adf%20sample%20for%20oracle%20form%20developer&source=web&cd=7&ved=0CEAQFjAG&url=http%3A%2F%2Forclsamples.googlecode.com%2Ffiles%2FThe%2520Challenges%2520Oracle%2520forms%2520Migration%2520to%2520ADF.pdf&ei=0FzWToaUI4_JrQe0oommDg&usg=AFQjCNEdpho2uVqhSCEugw1svza6zc9iSg&cad=rja

  • How can i delete software component in the IR

    How can i delete software component in IR,when there are too many SCs?

    If you have to delete a SWCV, you have to delete all the namespaces with in that first. Open a name space and delete all the user defined objects in that first. Then delete the Std Fault and log data types and delete it and remove the name space from the SWCV by opening the SWCV and using - button on the name space. Now activate the changes. This will delete the name space.
    Repeat the step for all the name space with in the SWCV. After all objects are deleted. Open the SWCV and use the menu, SWCV ->Delete object.
    Regards,
    Jai Shanakr

  • I have Point, how can I get the component of this Point?

    Hi, everybody!
    Can U help me!
    I have 10 block in 1 applet. After 1 even, I kept the Point of the block, just made even. I want remove the block, which have the point. Then I use method getComponentAt() but I can't.
    Anyone tell me the way to process.
    Agains, I have the Point, how can I get the component of this Point?
    Thanks so much!

    That makes no difference, as you can still use this method with AWT.
    // parent is you main Frame or Dialog window.
    Component parent;
    // target is the AWT component that the user has clicked on.
    Component target;
    // "e" is is your click event.
    MouseEvent e;
    target = SwingUtilities.getDeepestComponentAt(parent, e.getX(), e.getY());

  • From an ItemRenderer, how can i reach the component that the Itemrenderer is applied on

    Hello.
    I have a component that uses a skin that uses several different item renderers.
    in each item renderer i want to set a different background color according to a public variable that
    the component that i apply the item render on has.
    how can i reach that component from the ItemRenderer?
    thanks!

    Usually outerDocument or parentDocument.

  • How can I insert one row in ADF Table in JDeveloper 10.1.3

    Hi all,
    How can I add new row ADF Table in JDeveloper 10.1.3
    NOTE : I tried using create button still not working
    thanks

    If you are using ADF BC - try replacing the binding of the operation from Create to CreateInsert.
    See Re: A simple JSF Table CRUD - How To

  • How can i get a component from frame?

    how can i get a JTextField component from the frame?
    in my program i use button and text fields, when button is pressed the action listener performs the needed actions: it must take the values in the text fields and do something with them,
    for example i have a button - view:
    look at the comments
    public class _ActionListener_search implements ActionListener {
         private JFrame frame;
         private database dtbs;
         public _ActionListener_search(JFrame frame, database dtbs) {
              this.frame = frame;
              this.dtbs = dtbs;
         @Override
         public void actionPerformed(ActionEvent arg0) {
              if (arg0.getActionCommand().equals("view_person"))
                                            //HERE i want to get values from text fields!
                                            //i need to get JTextField component from frame and use it
    view.addActionListener(new _ActionListener_search(frame, dtbs));how can i do it?
    is this a correct way?

    Encephalopathic wrote:
    If you know that you're going to need the data held in them why not give the class that holds them a public method that returns the Strings that they hold.
    public String getTextFieldXyzText()
    return textFieldXyz.getText();
    }Then if your actionlistener has a reference to this class's object, it can simply call the above method.That's what I was thinking. The view has a method getXyzText() and the listener (or some larger, enclosing controller) knows the view.
    What I would get away from is a single, switch-board listener hooked to a 100 unrelated buttons.

  • How can i use a component twice in the same movie clip

    Excuse me am a beginner in this as2
    below is the script used:
    PeelIt is a component.
    /////////////////////////////////////////////////1st frame contains the below:
    PeelIt._visible = false;
    PeelIt.init();
    PeelIt.Peel();
    ///////////////////////////////////////////////// then on 2 different buttons:
    on (release){
        this._parent.PeelIt._visible = true;
        this._parent.PeelIt.Stick();
    and
    on (release){
        this._parent.PeelIt.Peel();
    1st problem: i need this component to work when the swf loads instead of (on release),
    2nd problem: i need to introduce several frames with different movieclips using the component, how can i do so.
    thank you

    use:
    PeelIt.init();
    PeelIt.Peel();PeelIt._visible = true;
    PeelIt.Stick();
    PeelIt.Peel();
    and just add the component to each movieclip.

  • How can i bind something to caps lock in AwesomeWM?

    Recently i've aquired new notebook which doesn't have caps_lock, num_lock and scroll_lock LEDs, so i decided to put keyboard layout indicator to system tray.
    Currently i am using Xorg config to set XkbLayout and XkbOptions (like so http://paste.pocoo.org/show/478789/ ).
    I tried first widget from http://awesome.naquadah.org/wiki/Change_keyboard_maps but soon realized that it does not detect layout change in any way, so i would like to bind kbdcfg.switch function to caps_lock, but i can't find any documentation on binding something to caps_lock.
    Also i've noticed a strange thing, when i change my layout with this function i am unable to use shortcuts that use latin letters. They are obviously remapped to by сyrillic, but they do work if i change my layout with caps_toggle. Why do the work with caps_toggle, and how can i make them work with kbdcfg.switch?

    blin wrote:
    filam wrote:Is there a reason you're not using xmodmap? You may also want to read the Extra Keyboard Keys in Xorg article.
    The only reason i have for not using xmodmap is, i don't understand how it can help me, with the task i have. The other article didn't help me either.
    Did you read the "How to find capslock status?" thread?
    blin wrote:Is suspect the answer is not what you want because your question is not very clear. I understand that you have a keyboard that is lacking certain keys. What is it that you want to achieve? Let some key act as capslock?
    I had to read the OP twice to understand it. I didn't notice that he wrote "LED" in the first sentence. What he wants is for his Awesome status bar to display the current activity (i.e. on/off) of the Caps Lock, Num Lock and Scroll Lock keys. He does not need to remap any keys.
    Edit: Check Retrieving CAPS LOCK info using Xlib or just do a Google search for "linux caps lock status -map -disable".
    Last edited by filam (2011-09-20 19:43:45)

  • How can I bind a operation with a table

    Hi !
    I'm trying to bind a operation with a table, so what type of operation return ? ViewObject or a Vector? And how can i set params to these operation if my operation has some param ( getSubscriber(int iSubId, int iSubType) )
    Thank a lot for your help

    Hi,
    it depends on the release you are asking this question for. In JDeveloper 10.1.3 you can expose a method (e.g. on a session facade) that returns a Collection. The input parameters can be dragged and dropped as input fields to the page.
    The same can be done in JDeveloper 10.1.2, but here you have to prgrammatically apply the input arguments.
    Frank

  • How can i show employees photos in ADF?

    hi,
    i use jdev 10.1.3.2 and ADF.
    with employees info, i want to show employees photos. how can i do this?
    thanks.

    <p>
    Hi,
    </p>
    <p>
    See example no 85 on Steve Muench blog &quot;<strong>Uploading Contents of af:inputFile to a BLOB Column</strong>&quot;.
    </p>
    <p>
    Kuba
    </p>

Maybe you are looking for

  • IPC in CRM 7.0

    Hi Friends, Currently we are on CRM 5.0, and here we use IPC which sits on the Java Stack. Now we are planning to upgrade to CRM 7.0 which has IPC as part of ABAP stack. What happens to the IPC related data on CRM 5.0 which is on Java Stack when we m

  • Open letter to people who complain about not recei...

    Dear fellow Nokia phone geeks, Hi and how are you.  Let me start by saying I mean no disrespect to JimmyIreland, who's open letter was thoughtful and fair, but I despise "open letters" because they are the work of individuals who think they speak for

  • Strange behavior in watch list

    I'm getting a behavior in the watch list that I can't explain. While examining an object in the watch list, its value collumn reads "'VariableName' is not declared. It may be inaccessible due to its protection level." This is from a break point after

  • File  Adapter :- Handling Large documents

    Hi I am currently working on File Adapter. Reading large documents and writing the same in to some other file location. I came across the following techniques: 1. Scalable DOM 2. File Chunk Read. Can any one help me the exact use cases of the above m

  • Servlet not showing BLOB image from Oracle in JSF

    hi forum. i have a table in oracle in which i m storing images in a BLOB field and file extention (mime type) in a varchar2 field. i can successfully store image. but i want the stored image to be displayed in a graphicimage tag from BLOB. i searched