ADF 10.1.3 EA and JComboBox

Hello,
In my form I have a panelBinding with a table and I have many combobos that are bounded in LOV mode with another tables.
When I click on Next/Previous/Last/First of my NavigationBar all is ok, but when I insert new record, and I select a value for each combobox, when I click on commit I have a error (AttrValException) in the field of combobox. This error don't fire on all combo field, and not always on the same field.
It seems that ADF sometimes can't reach the value of a combobox bounded to another table.
How I could force ADF to take the combo value or all field value by code?

Hi,
I don't want to use trinidad components. All I want to do is to invoke javascript from managed bean. For example window.document.getElementById('form:iInput').select(); on the end of return listener method.
I see I can't use trinidad ExtendedRenderKitService.addScript for this.
FacesContext facesCtx = FacesContext.getCurrentInstance();
ExtendedRenderKitService service = Service.getRenderKitService(facesCtx,ExtendedRenderKitService.class);
service.addScript(facesCtx,"alert('Invoking JS from Managed Bean');");
can't be used with ADF 10g?
JDK 6 javax.script can't be used also.
Any other way?
Bart

Similar Messages

  • Can Designer generate ADF Entity Objects, View Objects and Apps Module ?

    Hi all,
    On what way can Designer integrate with JDeveloper (+ ADF) ?
    Can Designer generate ADF Entity Objects, View Objects and Apps Module ?
    Thank you for your help,
    xtanto

    Designer itself has no direct integration with JDeveloper. However, there are three options. First of all, you can get a JDeveloper extension (download this separately) that lets you create a Connection to a Designer repository. From that Connection you can find modules that you defined in Designer and generate Entity and View objects for the tables and columns that you used in those modules, and an Application Module. It does not create JSPs or other user interface objects.
    Another option is to buy JHeadstart from Oracle. This contains a set of code generators and ADF extensions that include an ability to get information from a Designer repository. JHeadstart works fine for non-Designer users too, but was built by the same people who wrote Designer Headstart - they know the repository API intimately.
    The third option is to download Oracle Designer Extension Builder (ODEB) which was just recently made available. This is a product of a collaboration between Designer users from the Oracle Development Tools Users Group (ODTUG) and Oracle to extend the capabilities of Designer with user written tools and utilities. You could use ODEB to write your own generators for ADF Business Components. Or you could wait and see if someone else in the user community does this. I hope that you or whoever does such a generator will be willing to share it with us all.

  • Configuring WL 10.3.5 with ADF 10.1.3.4 and 11.1.1.5

    Hi all,
    I am quiet new to WebLogic and trying to learn it by reading documentation available online.I need to create two domain(weblogic 10.3.5),one with ADF 10.1.3.4 and other with 11.1.1.5.
    If anyone has idea Please do reply.Please also write about any compatibility or any other issues.
    Thx-
    rakesh

    the link was provided for some understanding or multiple domains..
    this link will provide you some information about Extending your WebLogic standalone environment with ADF runtime libraries
    http://blog.whitehorses.nl/2010/01/06/extending-your-weblogic-standalone-environment-with-adf-runtime-libraries/
    adf 10 on weblogic 10.3
    http://blog.fekw.de/2008/08/23/howto-install-adf-10-runtime-and-deploy-adf-bc-app-to-oracle-weblogic-103-running-on-linux/
    The runtime libraries can be installed from a standalone installer
    http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html
    http://www.oracle.com/technetwork/developer-tools/jdev/adf-runtime-update-howto-089262.html
    cn chk this also
    ADF Runtime 11.1.2 with Weblogic 10.3.5 Unresolved Webapp Library reference

  • JList and JComboBox elements - right alignment.

    Hi!
    If one wants to enter text into JTextField from right to left, he uses:
    JTextField jtf = new JTextField();
    jtf.setHorizontalAlignment(JTextField.RIGHT);
    I want elements of JTextField and JComboBox(text in my case) to appear from right to left. What can I do?
    Best regards,
    Nemaria.

    Thank you for your response.
    What I mean is when you see Jlist, all the elements in it begin from the right(like in Arabic/Hebrew). Do you know how to do this?
    Regards,
    Nemaria.

  • Colors of JSpinner and JComboBox

    hello
    I like to change the fore- and backgroundcolors of JSpinner and JComboBox. how can I do this?
    thanks in advance! nix

    this is much easyer code I will use it.
    but the button is anyway gray and black!?You want to change the color of the arrowButton and arrow color?
    there's probably an easier way, but this worked OK for me
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.plaf.basic.BasicSpinnerUI;
    import javax.swing.plaf.basic.BasicArrowButton;
    class Testing extends JFrame
      public Testing()
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setLocation(400,300);
        JSpinner spinner = new JSpinner(new SpinnerNumberModel(50, 0, 100, 5));
        spinner.setUI(new MyUI());
        ((JSpinner.DefaultEditor)spinner.getEditor()).getTextField().setBackground(Color.GREEN);
        JPanel jp = new JPanel();
        jp.add(spinner);
        getContentPane().add(jp);
        pack();
      public static void main(String[] args) {new Testing().setVisible(true);}
    class MyUI extends BasicSpinnerUI
      protected Component createNextButton()
        JButton btn = (JButton)super.createNextButton();
        JButton btnNext = new MyBasicArrowButton(SwingConstants.NORTH);
        btnNext.addActionListener(btn.getActionListeners()[0]);
        btnNext.setBackground(Color.BLACK);
        return btnNext;
      protected Component createPreviousButton()
        JButton btn = (JButton)super.createPreviousButton();
        JButton btnPrevious = new MyBasicArrowButton(SwingConstants.SOUTH);
        btnPrevious.addActionListener(btn.getActionListeners()[0]);
        btnPrevious.setBackground(Color.BLACK);
        return btnPrevious;
    class MyBasicArrowButton extends BasicArrowButton
      public MyBasicArrowButton(int direction)
        super(direction);
      public MyBasicArrowButton(int direction,Color background,Color shadow,Color darkShadow,Color highlight)
        super(direction,background,shadow,darkShadow,highlight);
      public void paintTriangle(Graphics g,int x,int y,int size,int direction,boolean isEnabled)
        Color oldColor = g.getColor();//Note 1: all if(!isEnabled) code removed, for brevity
        int mid, i, j;                //Note 2: all EAST / WEST code removed, for brevity
        j = 0;
        size = Math.max(size, 2);
        mid = (size / 2) - 1;
        g.translate(x, y);
        g.setColor(Color.GREEN);//<-------------------set arrow colors here
        switch(direction)
          case NORTH:
            for(i = 0; i < size; i++)
              g.drawLine(mid-i, i, mid+i, i);
            break;
          case SOUTH:
            j = 0;
            for(i = size-1; i >= 0; i--)
              g.drawLine(mid-i, j, mid+i, j);
              j++;
            break;
        g.translate(-x, -y);
        g.setColor(oldColor);
    }

  • ADF 11g can not select and copy data from cell of readonly table in IE

    hi,
    In ADF 11g, when render view object as readonly table with Single RowsSelection, using IE browser can not select and copy data from the cell, but it work in firefox.
    is it a bug?
    Edited by: kent2066 on 2009-5-18 上午8:46

    Hi Timo,
    Sorry forgot to mention versions.
    We are using 11.1.1.7 and IE 9.
    I tried in Google but could not get the solution.
    Kindly let me know solution for this.
    PavanKumar

  • ADFS Claims Authentication, Configuring UPA and People Picker

    Hi,
    I am just trying to get my head around setting up ADFS to authenticate users along with allowing UPA (My Sites) and People Picker to work.
    So, my environment is a WFE and an SQL Server offsite and my AD and ADFS 2.0 server onsite.  We have configured SharePoint as below and applied the Claims Provider to my Intranet web app and My Sites web app and I can login in with my
    account as [email protected] (UPN)
    $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("E:\ADFS_SelfSigned.cer")
    New-SPTrustedRootAuthority -Name "ADFS Self Signed” -Certificate $cert
    $map1 = New-SPClaimTypeMapping "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn" -IncomingClaimTypeDisplayName "Account ID" –SameAsIncoming
    $map2 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" -IncomingClaimTypeDisplayName "EmailAddress" –SameAsIncoming
    $map3 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.microsoft.com/ws/2008/06/identity/claims/role" -IncomingClaimTypeDisplayName "Role" –SameAsIncoming
    $realm = “https://intranet.domain.com.au/_trust/”
    $signinurl = “https://adfs01.domain.com.au/adfs/ls/”
    $ap = New-SPTrustedIdentityTokenIssuer –Name "SAML Provider" -Description "My Custom Identity Provider" –Realm $realm -ImportTrustCertificate $cert -ClaimsMappings $map1,$map2,$map3 –SignInUrl $signinurl -IdentifierClaim $map1.InputClaimType
    $uri = new-object System.Uri("https://adfs01.domain.com.au/adfs/ls/")
    $ap.ProviderRealms.Add($uri, " https://mysites.domain.com.au/_trust/")
    $ap.Update()
    iisreset
    When trying to configure a new synchronisation connection> Activery Directory Import under the User Profile Service Application, I get an error saying it can't connect to the Domain Controller which would make sense as they are not on the
    same domain.
    I believe that MS have a sync utility that works with Office365/MS Cloud - is there a similar solution available for my configuration? 

    AD import still uses LDAP/ADSI... ADFS cannot be used DIRECTLY as a sync source, since it is NOT a QUERYABLE technology. It is an AUTHENTICATION technology. UPS syncs to a QUERYABLE data source like LDAP/ADSI, and maps one of the properties to the ADFS login
    (most people choose email or UPN, though I tend to recommend SID for various reasons).
    Also, since people picker displays a SEARCH window, and since ADFS is not a QUERYABLE technology, the people picker (by default) ASSUMES that whatever you type in will be VALID. You can SEARCH the UPS, but if you type an email address or something of that
    nature, it is NOT going to SEARCH your directory! To address this, you need to install a custom Identity Provider... one is available on CodePlex, which performs an LDAP search against the domain controller... if that's not an option, you need a custom coded
    solution.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Adf faces command button, bindings and ejb 3.0 persisting problem

    When mapping the persist method to an adf command button it got this error:
    1. JBO-29000: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21.; nested exception is: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21. -
    2. java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21.; nested exception is: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21. -
    Is that because Departments are serialized by the container when the session bean is accessed by the data control to catch the data when the form is populating and entities are detached from the persisting context ? or something else ?
    I bind the button to the current row data provider for the departments. Is it correct, isn't ?

    When mapping the persist method to an adf command button it got this error:
    1. JBO-29000: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21.; nested exception is: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21. -
    2. java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21.; nested exception is: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21. -
    Is that because Departments are serialized by the container when the session bean is accessed by the data control to catch the data when the form is populating and entities are detached from the persisting context ? or something else ?
    I bind the button to the current row data provider for the departments. Is it correct, isn't ?

  • ADF Faces - issue with Portal and af table

    I wonder if anybody could help me with a problem we are experiencing with running our ADF Faces app inside a portal (NOT Oracle Portal). We are using the af table tag with the rows attribute set as follows:
    <af:table emptyText="No items found"
    rows="10" banding="row"
    bandingInterval="1"
    binding="#{backing_ModuleSearchReg.table1}"
    id="table1"
    var="row">
    What this does is if we have more than 10 rows to display it will display
    a table header that has a label 'Previous 1-10 of nnn' Next 10. However, when you click on 'Next 10' it produces a Javascript error.
    When we run the app outside of the portal we do not get this problem.
    I believe this is related to known issues with JSF and Javascript inside a 'framed' web page. But if anybody help me with this or point me to a resource that can help it would be very much appreciated.
    Many Thanks in advance.
    Chris

    Hi,
    I remember a similar issue with inner frames that should be fixed in JDeveloper 10.1.3.3. The problem was that the ADF Faces JavaScript did not get the correct document root.
    Frank

  • ADF: Retrieve values from view and autofill in JSP

    Hi,
    I am using jdev 10.1.3 with ADF.
    I have a jsp page, on which I have 10 fields. On filling one particular field, the other related fields should be retreived from a Synonym or view (That I have in my database.) and automatically filled in jsp page.
    If I am not clear, I have a jsp page which has account number, bill to and ship to fields.
    There is a Synonym table which has the account number, billto and ship to fields. when I fill in the account number field in my jsp, then it should be validated against the synonym and retrive the bill to and ship to information for that particular account number and displayed automatically in the JSP.
    Can you give me any examples or URLs please?
    Thanks,
    Priya

    Hi
    I hope you can solve your problem with one of following solutions.
    1. Return the resultset to jsp program.
    In this getrow() method in Viewtable.java will look like this
    public void getrow() throws SQLException,IOException {
    System.out.println("see what happen" );
    String query = "SELECT PRODID,QUANTITY FROM INVENTORY";
    st = con.createStatement();
    rs = st.executeQuery(query);
    return rs;
    and your jsp program will be....
    <% ResultSet rs = view.getrow();
    while (rs.next()) {
    qty = rs.getString("QUANTITY");
    id = rs.getString("PRODID");
    System.out.println(qty + " " );
    %>
    2. If you just want to print the details then pass the "out"
    variable to getrow() method. ex:view.getrow(out)
    3. Otherwise store all your values in an array and return it.
    bye
    Sridhar

  • ADF BC entitiy object security and Tomcat 5.5

    Hello all,
    I have set up ADF BC security in Jdev 10.1.3.3 and it works fine when I test the app module in JDev.
    However, when I deploy the application to Tomcat 5.5, I get
    oracle.security.jazn.JAZNRuntimeException: Configuration file does not exist. Check your JAAS configuration settings
    It seems like oracle.security.jazn is used although I have configured the app module (configurations) parameters:
    jbo.security.config - from default to my config file
    jbo.security.context - to Tomcat implementation of JAAS
    jbo.security.loginmodule - to Frank and Duncan's module (see article "Declarative J2EE authentication and authorization with JAAS).
    Container managed security using JAAS in Tomcat is working fine.
    I am wondering whether it is possible at all to use ADF BC security in any container other than OC4J and if the answer is positive, how it is done (configured).
    Many thanks in advance.
    Best regards,
    Boris

    Hi,
    JAZN as a security platform isn't portable and thus wont work on Tomcat.
    Frank

  • ADF application Issue with IE8 and IE9

    Hi Everybody,
    We are developing application under ADF. The application works fine in Firefox and chrome but when we open the application in IE8 and IE9 it pop up a message saying compatibility view should be turned off.Even though we turn off the compatibility view mode,The task flows that launches the jsff page are displaying blank page.In other words , I am not able to see any UI components in the page.Anybody has a clue on this?.Please Help
    Thanks,
    Harish
    Edited by: 886523 on Oct 17, 2012 4:08 AM

    Hi,
    rule number 1: This is a public forum. Please don't post issues regarding internal builds. Only issue related to public builds should be posted here!
    Beside of this, your post doesn't provide enough information to reproduce the problem (or a test case to try and run)
    Frank

  • Functionality of JFormattedTextField and JComboBox in one control

    Hi,
    I am developing a component which shall switch from JFormattedField to JComboBox as per requirements. For example, If a single value is used then the component acts like a JFormattedTextField and if array of values is used then the component acts like a JComboBox.
    One way of doing this is to create a new class sub-classing JComponent, create both the above mentioned objects and then implement all the methods (inherited as well as sum of methods/properties of both the components) by forwarding the call to the JFormattedTextField or JCombobox or both.
    Can somebody suggest a better design.
    Thanks in advance! Good day!
    RKON

    almost2good wrote:
    How can I make Lion show a space number on the top of the screen so I can see which space I am in?
    Currently you cannot.
    almost2good wrote:
    How can I make Lion switch spaces in a ring? ie? 1, 2, 3, 4, 5, 6, 1, 2, 3,  ...
    You cannot organise Mission Control's "Desktops" this way. They are organised in a single row to allow the swipe gestures to work. Apple allows no way to customise this.
    almost2good wrote:
    How can I make lion switch directly to a numbered space?  ie: 1, 4, 5, 2, etc...
    By deafult you should be able toi switch by pressing ctrl plus the desktop number, e.g. ctrl+1. This is the same as Spaces in Snow Leopard. You can customise this under System Preferences (Keyboard > Keyboard Shortcuts > Mission Control).
    almost2good wrote:
    Without these three capabilities Mission Control is a giant step backward....I am disappointed in the way it works and would liketo know how to disable it and give me back the way spaces used to work.
    A lot of people are disapointed with Mission Control. In my opinion it's a step backwards from Spaces & Expose in Snow Leopard but peoples views on this will depend if they used Spaces & Expose in Leopard/Snow Leopard and the type of Mac they are using - it makes some sense on a Macbook Air, for example, with a small screen and multi-touch trackpad but not so much on an iMac or Mac Pro (sames goes for Launchpad). I just hope Apple listens to the criticism and enables customisation options to change the way Mission Control behaves.

  • Oracle.adf.view.faces.model classes and serializable

    Some (most?) classes in oracle.adf.view.faces.model - e.g., ChildPropertyTreeModel - are not serializable. If these objects are given the "session" scope, this causes problems. For instance, in a clustered environment with failover/load-balancing, session attributes must be serialized to be replicated to all cluster members. Adding one of these object to the session causes the serialization - and therefore the replication - process to fail. Does anybody know why these classes are not marked as serializable?

    Some (most?) classes in oracle.adf.view.faces.model - e.g., ChildPropertyTreeModel - are not serializable. If these objects are given the "session" scope, this causes problems. For instance, in a clustered environment with failover/load-balancing, session attributes must be serialized to be replicated to all cluster members. Adding one of these object to the session causes the serialization - and therefore the replication - process to fail. Does anybody know why these classes are not marked as serializable?

  • Oracle adf file handling af: inputFile and convert to binary to send in

    Hi ...
    I want to try to do is select a file by a <af: inputFile and convert it to binary without having to upload it to the UCM .... I have some idea of how it would be something like this ....
    <af:form usesUpload="true">
    <af:inputFile label="Upload:"
    valueChangeListener="#{backingBean.fileUploaded}"/>
    <af:commandButton text="Begin"/>
    </af:form>
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import javax.faces.event.ValueChangeEvent;
    import javax.xml.namespace.QName;
    import javax.xml.ws.Holder;
    import org.apache.myfaces.trinidad.model.UploadedFile;
    import org.tempuri.*;
    String Binary = new String();
    public void fileUploaded(ValueChangeEvent event) {
    UploadedFile file = (UploadedFile) event.getNewValue();
    if (file != null)
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message = new FacesMessage(
    "Successfully uploaded file " + file.getFilename() +
    " (" + file.getLength() + " bytes)");
    context.addMessage(event.getComponent().getClientId(context), message);
    public void llamarWs(UploadedFile file){
    URL url;
    try {
    Holder<String> holder = new Holder<String>();
    Holder<Boolean> holderResponse = new Holder<Boolean>();
    url = new URL("10.10.20.152:8088/VTDWEntelSAEDWS/DWSAEDService.asmx?wsdl");
    DWSAEDServiceSoap servicePort = new DWSAEDService(url, new QName("http://tempuri.org/","DWSAEDService")).getDWSAEDServiceSoap();
    servicePort.uploadDocument(holder, arg1, arg2, arg3, arg4, arg5, holderResponse);
    String respuest = holder.value;
    } catch (MalformedURLException e) {
      but I can not make it work ...
    Edited by: 892270 on 16-Aug-2012 08:46

    User, please always tell us your jdev version as the solution might depend on it.
    Instead of posting some code, can you please elaborate on the use case? From the code I don'T understand what you try to do. Data (file) uploaded through the af:inputFile is binary. The file may only be a text file, but it might be an image. The inputFile doen not know as it only represents the data stream send from the client.
    In you code I don't see that you actually read the data from the stream, neither do I see any action on the stream. Can you describe what you mean by
    but I can not make it work ...You may read http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-1/ for more info about file handling in ADF
    Timo

Maybe you are looking for

  • Replace Smart AC Adapter for HP 17-E054CA Notebook

    I have a new HP17-EO54CA and it came with a Smart AC Adapter. I keep getting messages that I should purchase a higher output AC adapter as it may be needed for some applications. I don't know how to do this. i have Googled about as many combinations

  • Conditionally enabling data fields

    hey guys,i have a select control with two options(house and land)and i have twelve fileds for installment payments.now i want all the twelve to be active when the "house" option is selected and only the first six fields when "land" option is selected

  • Weird folder question mark - why?

    This annoying question mark started appearing in the menu bar of all my folders some time ago, can't pinpoint when/why. When clicked, a dialog box says "The item can't be found" An Apple Care tech is baffled/can't help. Suggestions of how it got ther

  • What browser are you using with OS 9.x?

    Would you all please state which internet browser you are using with OS 9.x and the strengths/weaknesses you are experiencing with it? I switch back and forth between Mozilla and Internet Explorer but fewer and fewer websites work properly with them.

  • Dual-Stack CTS configuration

    Hi All, My question is : Once we have configured the ABAP-Stack of a dual-stack system into the transport domain through CTS, so can we now move the JAVA-based objects as well or we need to do something else also. If so, what is that? Regards