JDev 11gTP4: ADF BC LOVs - JSF selectOneChoice sometimes empty

Hi JDev team
With apologies the following is a bit of a ramble rather than a good description of what the problem is within JDev 11gTP4. I'm a bit lost to know what the problem is or where to look next?!
I've created an ADF BC VO with attributes that derive 3 values from LOVs. All 3 correctly render in the Business Components Browser with a pop list.
I've also created 2 inputs forms, one standalone, the other called from an ADF Read-Only table page. Both inputs are based on exactly the same VO, created in exactly the same way from the data control pallete. This include selectOneChoice controls created for the LOVs.
The first page always shows the VO information correctly, and the corresponding selectOneChoice fields always have entries.
I'm getting very inconsistent results with the 2nd page called from the read-only table. Sometimes the selectOneChoice controls based on the ADF BC VO LOV fields are populated if called from a Create action, other times they're not.
I can't understand why I'm getting the inconsistent results to the point I don't know what to give you to find the problem. If I replace the selectOneChoice with an ADF LOV control, they always correctly show the data, so it would indicate the selectOneChoice controls are having issues.
I've also carefully compared the selectOneChoice attributes between the 2 inputForms, as well as the associated bindings, and they are the same.
The only other difference is the original inputForm is within the unbounded task flow, while the 2nd inputForm lies in a bounded (train) task flow. I can't think of a reason why this would make a difference though.
So at this point any help would be appeciated as I'm scratching my head to work out what's wrong here.
Thanks for your help in advance,
Cheers,
Chris Muir.

Did you know this
Steve Muench quotes "Notice that in TP4 there is no longer an "ADF Create Form" and that we're encouraging you to create a create form using a method activity that declaratively invokes the create operation, then forwards to a page with a regular ADF Form on it. This is due to the numerous confusions that have always surrounded the ADF "invokeAction" now that we have a visual, declarative mechanism to model this type of initialization activity, we will prefer users adopting that. Also, notice that the page definition for the method activity has the new "SkipValidation" property set to true."
Andrejus made a create sample how to use a lov when the form is in create mode. If you don't do this you get validation errors and the lov is empty.
There is a thread in this forum and look at Andrejus blog for some create forms example
Edwin

Similar Messages

  • JSF selectOneChoice  VS.  Swing JComboBox

    I have been so impressed with how clean it is using a JSF selectOneChoice with a selectItem and selectItems.
    Using selectItem.itemValue and selectItem.itemLabel is intuitive, and fills a very common need.
    I'm wondering if there is a similar type of component I can use with a JComboBox. It seems that a LOV binding needs a target data collection (and iterator); but I simply want a JComboBox to display labels and manage values, independent from an iterator.
    Any suggestions are very much appreciated!!!
    Jeffrey

    Well I would just like to update this thread as more than a year has passed since I began working on ADF BC & Faces. Coming from a SWING background, I've learned quite a lot about web development. For starters, it’s not as easy as "Drag and Drop" and RAD like some demo videos or evangelical pitches makes it out to be. There is a steep learning curve (about half year with daily interaction with JDeveloper) to get comfortable with this technology. Personally speaking, a firm understanding of page definition bindings was the hardest to grasp, but then again maybe I’m just a bit slow. Compared to SWING or desktop UI development, the richness of ADF Faces UI is limited to boundaries of the web browser.
    <br>
    However, within the last month, our team has made great strides in taking the first step in launching a ported module our internal system (legacy Oracle Forms used by hundreds of hospital employees). Our Dynamic JDBC authentication piece was the keystone for our first module (a modified version from Steve’s infamous “not yet documented samples”). Trying to take full advantage of this technology, we also have created reusable pages and BC components for CRUD operations.
    <br>
    There is still plenty of work to be done as we are now struggling with team development (difficult due to multiple file modifications within JDev’s). We are also eagerly awaiting several rich UI in the next release of ADF Faces. Overall, the light at the end of the tunnel is starting to appear and I hope the Oracle ADF team and everyone on this forum continues to actively contribute to the growth of this community.
    <br>
    Here are a couple of screen shots of our app if you are interested.
    http://i108.photobucket.com/albums/n23/zeoneozero/login.jpg
    http://i108.photobucket.com/albums/n23/zeoneozero/menu.jpg
    http://i108.photobucket.com/albums/n23/zeoneozero/spcreg.jpg
    Cheers,
    -Z

  • JDev and ADF is difficult

    As a new user to ADF I am finding ADF and JDev a little discouraging and hard to use. I did a search on how to improve jdev's performance and found a lot of useful tips and tricks to use, but I pose the question. Shouldn't it just work out of the box? Coming from a web 2.0 background developing EE applications using Spring, JPA/Hibernate, Extjs, and netbeans I keep thinking to myself wow how in the world should I have known that changing this or that table attribute causes this or that to behave differently. For example I read a thread on multi-selecting table rows and in this article multiselect selectedRowKeys must be removed for multi select to perform correctly. Now I realize this is a simple example, but I find myself asking the same types of questions about dragging and dropping views into jdev or mapping bindings to pages so that I can gain access to data. I can relate to some angry posts by some about how difficult it is to develop anything useful in JDev and ADF because of a series of random problems (things like running OOM, or mapping bindings to a page which then for some reason map incorrectly or they think they are mapped to another page, etc...) Now I can already hear the first response... you are new to this world (yes) and you just need time. What if I told you I've been reading so much documentation over the past month that my eyes are bleeding. I've been through countless tutorials on how to use JDev and ADF. I've successfully created "Sample applications" generating useless tables of data. I've read several books on ADF and how to button click my way to creating EE applications, but I find the memorization of button clicking to be exhausting. I keep telling my boss I want to go back to writing code not dragging and dropping items on a page so that JDev can generate/modify .xml files for me.
    Now that said I know I am new to this world and I'm trying to find some common ground as my job requires me to develop EE applications in ADF, and I must learn this technology. So I ask all of you ADF and JDev advocates prove me wrong here and point me to the documentation that all of you use to navigate this world of yours.
    Thanks for your understand,
    Wraith (Newbie and found wanting)
    Edited by: wraith101 on Aug 14, 2012 3:38 PM
    Edited by: wraith101 on Aug 14, 2012 3:42 PM

    First off thank you for the response Shay!
    >
    Getting used to the way you build applications with JDev and ADF takes time, but think how much time did it took you to learn Spring, JPA, ExtJS etc to a level where you knew every little setting you needed to manually code in a spring XML file, or JPQL query syntax in your JPA or a javascript in ExtJS - My guess was that getting to a situation where you know everything in those technology wasn't exactly a problem less experience.
    >
    It is true it took some time to learn the technologies listed above. I guess If I were arguing for them I would say they were easier to use and learn due to most of them being open source and very popular because of this (i.e tons of examples, books, and documentation). Not sure if ADF is there yet?
    >
    I do like the fact that I can get from 0 to a fully functional page with a few clicks here and there, and then fine tune the results with some property settings in various places.
    And then if I need even further customization I can go to the code level when needed.
    >
    I agree it takes very little time to create something that is at least visually usable. I'm not familiar enough ADF yet to determine now hard it is to actually create a fully functioning application that does more than display data. For example, how would I create a visualization that updates every 10 seconds and allows users to post feedback in a similar manner to this forum?
    >
    The question of whether the declarative and visual development experience is a good thing or not is to some degree a matter of personal preferences.
    I wonder how long would it have taken someone to build something like this: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF112/ADF112.html
    with the stack you mentioned above. How many lines of code would they have needed to write, how many syntax errors while coding, and would the result be as functional so fast.
    >
    Agree I'm not hear to argue which type of development experience is better or worse. I would point out however that as a JDev/ADF developer in order to develop in the technology it seems you must do most of your development within the JDev environment or have extensive experience in JSF (i.e know which xml files to edit and why I believe there is a reason JSF and JSP are seldom used IMHO because they are difficult. I understand JDev/ADF try to solve this problem) were as in other technologies you as the developer can choose the IDE etc. Another thing I noticed while watching the link you listed was the developer went from place to place to place within jdev making changes. As a newbie it seems that in order to develop ADF in JDev you must just "know things" (ie. for example he pulled in a method in to the task flow so he could invoke some validation or prereq check. As a developer how am I to know how and where and why I can/must do these things? ADF seems to be process based in order to achieve some goal, but the JDev framework gives no clues as to what you should/need to do next. As well as that I needed to create that method within my Application Module in order to do this, which by the way was not mentioned within this video.).
    >
    We often see the reaction of "I don't get what all those XML files that JDev generate are doing" reaction from people who just start up with JDev and ADF.
    But we do try and explain how everything is working in places like the ADF Insider Advanced seminars:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfinsider-093342.html
    I think the fact that there is a lot of documentation for ADF, and a lot of blog entries, how-to's etc on the web is actually a good thing.
    I often find that if I run into an issue with ADF - a simple google search will show me how someone else solved that issue - and I like this too.
    >
    I guess my biggest gripe here would be yes there is tons of JDev/ADF documentation on OTN and other places, but none of it is complete, and I would also argue that the organization on OTN is half hazard, and makes learning ADF difficult as well. I find myself drilling down through layers and layers of links only to not be able to get back to were I came from to look at another topic/tutorial I was interested in(maybe we need a ADF train to be added to the documentation wikis).
    I would also argue when developing in other frameworks writing the xml is a big part to understanding how your application is tied together. For example, Spring servlet mapping or Spring injection mapping. When JDev does the mapping for me I feel that I know less and less about how my application works and I bet all the advanced ADF developers out there know quite a bit about how ADF xml mapping occurs and why, and I bet they make changes to these xml files manually quite often to get things to work as they desire?
    I want to be clear here I am not trying to flaming here, just trying to make a difference for other developers like myself who come along and need to learn ADF to complete some task. Looking at the OTN site I believe creating documentation for ADF development appears to be a top priority, but due to the complexity of the framework there is just so much and it seems to be everywhere. My suggestion would be to include why we are doing such and such with in jdev approach instead of a drag this here to do this approach. For example, I'd like to see a tutorial where it explains when you drag this item in to the content window it creates this xml bind which is the same as what you would normally do in JSF like this (if anyone knows of such a tutorial plz link).
    Again thanks for the reply, and I encourage others to give feedback and suggestions on how I too can become a better JDev/ADF developer.
    -Wraith

  • Demo: From ADF UIX to JSF

    Hello,
    I am new to most of this. I am running jdev 10.1.3 preview with EA12.
    While trying to run the demo described in the article "From ADF UIX to JSF"
    found at http://www.oracle.com/technology/oramag/oracle/04-nov/o64jsf.html I got the following errors.
    Project: C:\data\sample_home\MyADFFaces\ADFFacesView\ADFFacesView.jpr
    C:\data\sample_home\MyADFFaces\ADFFacesView\public_html\empTable.jspx
    Error: Internal error, ClassNotFound creating tag parser for afh:head, class: oracle.adfimpl.view.faces.taglib.html.HtmlHeadTag
    Error: Unable to find class for bean: null defined by tag with class: oracle.adfimpl.view.faces.taglib.html.HtmlHeadTag
    Error: head must be terminated with /> or %> not >
    Error: Internal error, ClassNotFound creating tag parser for af:form, class: oracle.adfimpl.view.faces.taglib.core.CoreFormTag
    Error: Unable to find class for bean: null defined by tag with class: oracle.adfimpl.view.faces.taglib.core.CoreFormTag
    Error: Internal error, ClassNotFound creating tag parser for af:table, class: oracle.adfimpl.view.faces.taglib.core.data.CoreTableTag
    Error: Unable to find class for bean: null defined by tag with class: oracle.adfimpl.view.faces.taglib.core.data.CoreTableTag
    Error: Internal error, ClassNotFound creating tag parser for af:tableSelectOne, class: oracle.adfimpl.view.faces.taglib.core.data.CoreTableSelectOneTag
    Error: Unable to find class for bean: null defined by tag with class: oracle.adfimpl.view.faces.taglib.core.data.CoreTableSelectOneTag
    Error: Internal error, ClassNotFound creating tag parser for af:commandButton, class: oracle.adfimpl.view.faces.taglib.core.nav.CoreCommandButtonTag
    Error: Unable to find class for bean: null defined by tag with class: oracle.adfimpl.view.faces.taglib.core.nav.CoreCommandButtonTag
    Here is a copy of the JSP page source that I created as I was following the text in the article
    Source starts
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/EA6/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/EA6">
    <jsp:text>
    <![CDATA[ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> ]]>
    </jsp:text>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <html>
    <afh:head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>
    empTable
    </title>
    </afh:head>
    <body>
    <af:form>
    <af:table value="#{myEmployees.employees}" var="row" rows="10">
    <f:facet name="selection">
    <af:tableSelectOne text="Select Employee and click ...">
    <af:commandButton text="Show" action="showDetails"/>
    </af:tableSelectOne>
    </f:facet>
    <af:column>
    <af:outputText value="#{row.first_name}"/>
    <f:facet name="header">
    <af:outputText value="Firstname"/>
    </f:facet>
    </af:column>
    <af:column>
    <af:outputText value="#{row.last_name}"/>
    <f:facet name="header">
    <af:outputText value="Lastname"/>
    </f:facet>
    </af:column>
    <af:column>
    <af:outputText value="#{row.email}"/>
    <f:facet name="header">
    <af:outputText value="Email"/>
    </f:facet>
    </af:column>
    </af:table>
    </af:form>
    </body>
    </html>
    </f:view>
    </jsp:root>
    ---source ends ---
    Can anyone tell me how to get past this? Thank you.
    -- Jack Condon

    One immediate thing: "EA6" is in the tag library namespaces, but you're using EA12.
    In general, there've been a lot of changes between EA6 and EA12, but the changed namespace is one simple thing.

  • How to filter data in custom ADF JClient lov panel

    hi
    I'm developing with JDev 10.1.2.
    i have a Panel that use custom ADF JClient lov panel and i want to filter the lov data.
    i used setWhereClause() method to do it in lov panel but didn't work.
    Any help will be greatly appreciated.

    This was a lot more involved than I would have estimated (than I actually did estimate with my boss on our project timeline).
    Anyway, here is the solution for those of you trying to do the same thing;
    http://blogs.oracle.com/michaellee/2009/09/pre_filtering_table_data.html
    My personal request, create a Criteria for a VO, then allow me to just drag that over to a jsp page and give me a table/tree option, not just a query/button/link, and then give me a pop up box allowing me to bind variables.
    Edited by: user10419690 on Sep 14, 2009 9:03 AM

  • Jdev 10 ADF error

    I'm using jDev 10g with ADF with MySQL in windows platform. I create a standard ADF DC project + JSF project. When i try to lanch the viewcontroller project i get this error:
    oracle.jbo.JboException: JBO-29000: JBO-29000: JBO-29000: JBO-26061: Errore durante lapertura della connessione JDBC.
    but using the Test for application module all works fine.
    PLEASE HELP!!!!!!!!

    Hi,
    make sure that you change the SQL flavor to SQL92 when not using Orace databases. The default is Oracle.
    Frank

  • How can Filter ADF BC LOV values in ADF Faces UI?

    How can Filter ADF BC LOV values in ADF Faces UI?
    Hi i am bit struggle with filtering LOV values in ADF Faces UI.
    I have table In UI ,that is from ADF BC .Now i am Filtering that table data using Select one choice in same page.That SOC is named Type App:  ,So according to selection of Type in SOC table have to display.This portion is done.But my requirement is ,when i got perticular result table ,i want to add one more row related to that type only,so for that i had take popup and drag datacontrol as a form.In that form first column is Select one choice ,select Items will come from BC table.So here i want to filter those LOV values according selection in Type SOC.Suppose Type SOC contain Type1,Type2 values,then when i am selectin Type1,Type1 related date willl diplay on table,now click on ADD button popup will open and in that Type SOC will Dispaly only Type1 related values not Type 2 type values.Type1,Type2 values come from same Table.
    Here i am asking every one,please do help.

    fyi
    The HR schema I used to build the example application had some modifications in the context of https://tuhra2.samplecode.oracle.com/ .
    So after running "demo/schema/mksample" as documented in "Resetting Sample Schemas" ...
    at http://download.oracle.com/docs/cd/E11882_01/server.112/e10831/installation.htm#I6236
    ... I got "java.sql.SQLSyntaxErrorException: ORA-00904: "EMPLOYEES"."MODIFIED_DATE": invalid identifier ", using the example application in BindVarDefaultsInUIApp-v0.02.zip .
    So, I have updated the example application to match the reset HR schema:
    - see http://www.consideringred.com/files/oracle/2010/BindVarDefaultsInUIApp-v0.03.zip
    - see screencast at http://screencast.com/t/gd6zKn63j
    Because Re: af:table filter date format : task-flow navigation issue to get feedback, I created service request 3-2193340441 using My Oracle Support about (q1) and (q2).
    regards
    Jan

  • How to use SQL filtercondition 'Start with' and 'connect by' in ADF's LOV?

    Hello every!
    I can not use 'Start with' and 'connect by' with parameter in creating ADF's LOV?
    How could I do with it?
    Alex

    assuming you are using adf 11g,
    You need to use View Criteria with the View Object attribute that has a LOV model.
    Follow this, to get some idea http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-oracle-adf-11g-update.html
    hope this helps,

  • ADF input LOV

    ADF input LOV by default validates the value entered by user against LOV. If value is invalid, it gives error to user. I want to configure it to not show any error because i want to allow user to enter any data whether it is in LOV or not. How i can achieve that functionality?

    Hi
    I have adf table and one of the column is consumption LOV. I have been make the field immediate = true and also I have make method in ValueChangeListener
    public void lovValidate(ValueChangeEvent valueChangeEvent) {
    valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
    FacesContext.getCurrentInstance().renderResponse();
    But that can not work by well. I want, the user can enter the other value that not include in lov.
    Can any help me to solve the problem?
    Thanks.

  • Creating Binding Between ADf input LOV and ViewObject at runtime

    I am creating binding at runtime between ADf input LOV and with attribute of ViewObject. When we create this binding at design time, following entry is added in pagedef of page:
    <listOfValues StaticList="false" IterBinding="UdfVO1Iterator"
    Uses="LOV_Udf1" id="Udf1"/>
    I am creating this binding at runtime instead of design time by creating JUCtrlListBinding object by following code:
    JUCtrlListBinding vb = new JUCtrlListBinding(rit2,ib,new String[]{"Udf1"},JUCtrlListBinding.LIST_OPER_SET_ATTRIBUTE);
    vb.setName("Udf1");
    where rit2 is RichInputListOfValue control, ib is iterator binding. but i am not finding any way to set "LOV_Udf1" which is name of LOV_Udf1. Kindly help me

    Kindly some one help me

  • JDev 11gTP4: JDev IDE proxy test "false-negative"

    Hi JDev team
    Under JDev 11gTP4, the tools->preferences->web browser and proxy settings, currently when I configure my proxy settings, then select the Test Proxy button, it successfully works it way through all the following addresses:
    www.internic.net
    www.oracle.com
    download.oracle.com
    ...but then fails on profile.oracle.com with a java.net.SocketTimeoutException: Read-timed-out exception.
    I think this one is simple misleading as I don't even have access to this address from my web browser, it fails with a 403 forbidden reply.
    Alternatively I know my JDev proxy settings are correct as if the proxy settings are set, and I do a ctrl minus to search for JavaDoc on an external site (such as java.lang.String which goes to the Sun website), the JavaDoc is successfully downloaded.
    Would it be reasonable to remove profile.oracle.com from the proxy test facility?
    Cheers,
    CM.

    Chris,
    thanks, I can reproduce this behavior. I tested with a later build and here the problem doesn't occur anymore and profile.oracle.com seems to be removed from the test
    Frank

  • JDev 101304 - ADF JSF - Can I get the viewId of the page in a Filter?

    Hello again:
    1.- I want to configure a Filter in my web.xml.
    2.- I want to do some validations in the code, but one of those validations is based in a pattern of the jsp's names.
    3.- I notice that the viewId's page is the same that the full name of my jsp starting on the public_html folder (the app root).
    4.- Every request must be validated.
    5.- Is possible to get the viewId in the Filter?
    thnks in advance.
    Alex.

    Hello Frank:
    I'm trying to implement your suggestion, but in the RESTORE_VIEW phase, I can't get the viewId String to validate against it, I have this code:
    public void beforePhase(PhaseEvent phaseEvent) {
    System.out.println(phaseEvent.getPhaseId() + " - " +
    (phaseEvent.getFacesContext().getViewRoot() != null?
    phaseEvent.getFacesContext().getViewRoot().getViewId():null ));
    and this is the output: (when I navigate from the two.jsp to the three.jsp)
    07/05/11 15:30:10 RESTORE_VIEW 1 - null
    07/05/11 15:30:10 APPLY_REQUEST_VALUES 2 - /two.jsp
    07/05/11 15:30:10 PROCESS_VALIDATIONS 3 - /two.jsp
    07/05/11 15:30:10 UPDATE_MODEL_VALUES 4 - /two.jsp
    07/05/11 15:30:10 INVOKE_APPLICATION 5 - /two.jsp
    07/05/11 15:30:10 RENDER_RESPONSE 6 - /three.jsp
    OTHER ISSUE RELATED: I want to validate against the page I'm going to, not the page I came from, so if yo see the output, all the phases print the "previous" page, only the RENDER_RESPONSE prints the destination page.
    But I read that this phase can be to late to do something like redirect the response, in case I want to do a AuthorizationPhaseListener.
    any suggestion?
    thnks.
    Message was edited by:
    alopez

  • LOV input , SelectOneChoice - Partial Trigger Ploblem..

    ADF , Jdev 11g.
    I populated Master-Detail, and added Partial Trigger.
    Master - Lov input
    Detail - SelectOneChoice like below
    * DataControlPanel
    Table(Parent)Lov-
    .....................-Table(child) SelectOneChoice
    When I populated SelectOneChoice instead of Lov as Master,
    I is work.
    but Lov is not work...
    any ideas?
    regard..

    I tried it. but It is not working.
    <f:view>
        <af:document>
          <af:messages/>
          <af:form>
            <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx">
              <f:facet name="center"/>
              <f:facet name="header"/>
              <f:facet name="start">
                <af:group>
                  <af:inputListOfValues id="descriptionId"
                                        popupTitle="Search and Select: #{bindings.Description.hints.label}"
                                        value="#{bindings.Description.inputValue}"
                                        label="#{bindings.Description.hints.label}"
                                        model="#{bindings.Description.listOfValuesModel}"
                                        required="#{bindings.Description.hints.mandatory}"
                                        columns="#{bindings.Description.hints.displayWidth}"
                                        shortDesc="#{bindings.Description.hints.tooltip}"
                                        autoSubmit="true">
                    <f:validator binding="#{bindings.Description.validator}"/>
                  </af:inputListOfValues>
                  <af:selectOneChoice id="nl3" autoSubmit="true"
                                      value="#{bindings.CriteriaList2.inputValue}"
                                      label="#{bindings.CriteriaList2.label}"
                                      partialTriggers="descriptionId">
                    <f:selectItems value="#{bindings.CriteriaList2.items}"/>
                  </af:selectOneChoice>
                </af:group>
              </f:facet>
              <f:facet name="branding"/>
              <f:facet name="copyright"/>
              <f:facet name="status"/>
              <f:attribute name="startColumnSize" value="400"/>
            </af:pageTemplate>
          </af:form>
        </af:document>
      </f:view>and let me explan about 'autosubmit' plz

  • ADF Faces: Making a selectOneChoice in java code?

    I need to make a selectOneChoice to reuse in my pages (country selection) but can't seem to find how to do it on the web?
    here is what i've attempted with the error output...
    -------------------- the java code:
    public void contextInitialized(ServletContextEvent event)
    ServletContext servletContext = event.getServletContext();
    Utils.log(servletContext, "Initializing Supply Chain Management System...");
    // intitilize selectOne component
    CoreSelectOneChoice countrySelectOne = new CoreSelectOneChoice();
    List countrySelectItems = new ArrayList();
    CountryCoordinator countryCoordinator = new CountryCoordinator();
    try
    List all = countryCoordinator.getAllCountries();
    Iterator i = all.iterator();
    for(;i.hasNext();)
    Object object = i.next();
    CoreSelectItem item = new CoreSelectItem();
    item.setValue((Country)object);
    item.setLabel(((Country)object).getCountry_name());
    countrySelectItems.add(item);
    // place the list of select items into the selectOne component
    countrySelectOne.setValue(countrySelectItems);
    servletContext.setAttribute("countrySelectOne", countrySelectOne);
    Utils.log(servletContext, "Initializing Countries [SUCCESS]");
    } catch(Exception e)
    Utils.log(servletContext, "Initializing Countries [FAILED]");
    Utils.log(servletContext, "Initialization complete...");
    ------------------------------ the JSP:
    <af:selectOneChoice label="#{bundle.ADDRESS_COUNTRY}:" required="#{region_entity_address.required_entity_address_country}" binding="#{applicationScope.countrySelectOne}"/>
    ------------------------------ the error:
    15:36:48,984 INFO [STDOUT] Sep 16, 2005 3:36:48 PM oracle.adfinternal.view.face
    s.renderkit.core.xhtml.SimpleSelectOneRenderer _getSelectedIndex
    WARNING: Could not find selected item matching value "CoreSelectItem[UINodeFaces
    Bean, id=null]" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id30]
    ....

    That's right. JSF produces such IDs. They are causing problems with JAAS login forms, so we should use plain JSPs for login, but for the rest of the tasks such IDs are okay.
    What I meant is that currenty the buttons are not rendered as
    <input type="button" ... />but as pictures embedded in hyperlinks (&lt;a>).
    It's possible, though not likely, that in some future version of ADF Faces some component will be rendered as an HTML element that doesn't support tab ordering (although I haven't really considered if there are such elements). Then the trick with manually setting the tabIndex of the parent HTML element won't work.
    Of course, I deeply appreciate the fact that you take the time to help us on this forum. In fact, I will go ahead and do just that -- I will dynamically set the tabIndex via JavaScript. I was simply wanting to make sure that I wasn't taking such a hack-like approach, if there was a better method.
    Thank you again.
    Best regards,
    Bisser

  • Use of LOV versus selectOneChoice components in page navigation.

    We will have several applications that our customers will be able to access. The list of applications is stored in a table. I would like to display the list of applications for the customer to choose which one they want.
    When I use a selectOneChoice, the selected value only has the display string. I cannot find a way to access the value.
    When I try to use an LOV, it wants me to bind it to an Server List Binding. I don't want to use this in another view object, I just want to display it on the page.
    Am I even thinking in the right ballpark? I have the selectOneChoice bound to a view object in my application module, and I thought I would be able to access all the attributes in that view object through the selected item in the selectOneChoice item. However, so far I've only learned how to access the display string.
    I appreciate all help, I've been working hard to learn this ADF stuff, what I've seen is very nice.

    Here is my binding.
    <list IterBinding="WapAvailableSitesViewObj1Iterator"
          ListOperMode="navigation" ListIter="WapAvailableSitesViewObj1Iterator"
          id="WapAvailableSitesViewObj1" DTSupportsMRU="true">
      <AttrNames>
        <Item Value="Selfservicesitemeaning"/>
      </AttrNames>
    </list>Here is my selectOneChoice
    <af:selectOneChoice value="#{bindings.WapAvailableSitesViewObj1.inputValue}"
                        required="#{bindings.WapAvailableSitesViewObj1.hints.mandatory}"
                        shortDesc="#{bindings.WapAvailableSitesViewObj1.hints.tooltip}"
                        id="soc2"
                        binding="#{backingBeanScope.EmployerBean.webAccessPermissions}"
                        label="Site"
                        inlineStyle="text-align:right;" autoSubmit="true"
                        valueChangeListener="#{backingBeanScope.EmployerBean.siteSelectionChanged}">
      <f:selectItems value="#{bindings.WapAvailableSitesViewObj1.items}"
                     id="si2"/>
    </af:selectOneChoice>And here is my change event listener
      public void siteSelectionChanged(ValueChangeEvent valueChangeEvent)
        System.out.println("in change listener");
        this.setValueToEL("#{bindings.WapAvailableSitesViewObj1.inputValue}", valueChangeEvent.getNewValue()); //Updates the model
        System.out.println("\n******** Selected Value: "+resolveExpression("#{bindings.WapAvailableSitesViewObj1.attributeValue}"));
        System.out.println("\n******** Display Value: "+resolveExpression("#{bindings.WapAvailableSitesViewObj1.selectedValue ne ' ' ? bindings.WapAvailableSitesViewObj1.selectedValue.attributeValues[1] : ''}"));
    public Object resolveExpression(String el) {     
        FacesContext facesContext = FacesContext.getCurrentInstance();
        ELContext elContext = facesContext.getELContext();
        ExpressionFactory expressionFactory =  facesContext.getApplication().getExpressionFactory();       
        ValueExpression valueExp = expressionFactory.createValueExpression(elContext,el,Object.class);
        return valueExp.getValue(elContext);
    public void setValueToEL(String el, Object val) {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        ELContext elContext = facesContext.getELContext();
        ExpressionFactory expressionFactory =   facesContext.getApplication().getExpressionFactory();
        ValueExpression exp = expressionFactory.createValueExpression(elContext, el, Object.class);
        exp.setValue(elContext, val);
      }The line that displays the "Selected Value" works fine, and returns the String that is the display value on the selectOneChoice. However, the second line shows the error I provided earlier.
    I am thinking that I am trying to use the component for something it wasn't intended for. I am not using it for a display in a table or form, and every time I try to use a model driven list it wants me to provide a server list.
    Thanks for your help, but since I have this working sufficiently, I am going to leave this question for now.
    Thank you

Maybe you are looking for

  • Read data from a text file, one line at a time.

    I need to read data from a text file, and display each line in a String Indicator on Front Panel. It displays each line, but I get Error 4, End Of Line, unless I enter an extra line of data in the file that I don't need. I tried Read From Text File.v

  • Songs are not syncing correctly

    I'm pretty sure it's a bug in the newest version of iTunes or iOS but songs just aren't syncing. When I drag and drop album to my iPod Touch 4G, either some songs stay greyed out and never finish syncing or they appear to be synced, but when I click

  • Quark Files seen as unix executables after upgrade

    Upgraded to Tiger from 10.3.9 (Panther). We store all work files on another mac (as a server). During upgrade (using archive and install) ran out of disk space. Had to reboot in OS9. Moved the Previous system folder that had been created to another p

  • Inserting Lots of fields into multiple tables

    Hi, i would like to enter lots of fields into mutiple tables in my access database. I have 6 pages which in turn have a different set of forms which must be inserted into its own table. I tried to insert some information into the table but because my

  • Add and iPhone-like interface to iTunes!

    Hi there I do like the new fullscreen coverflow thing in iTunes, but I think it's quite limited. It could have a similar interface to the iPhone, with clicking on the top right-hand corner flips the album over, and enable you to select tracks to play