BUG - Possible bug in ADFBC + JSF? (reproduced in SRDemo)

Hi all,
We've found that when we create a detail record in a master detail relationship, by going to a page with the creation form to add a new detail record, fill the fields and commit, if there is *a business layer validation error*, after solving the conflicting fields and trying to commit again, the creation form values seem to have been wiped out and you cannot save that record anymore (even introducing correct values again).
To reproduce the same issue in the SRDemo sample app (ADF BC, not Toplink version), we've added a validation rule to ServiceHistory Entity Object (for exemple: 'Notes' attribute must have a length < 5), and after that, when you go to add a new note and write some text longer than 4 characters, the business tier validation check triggers the validation error as expected (showing up on the page). After that, the whole application is frozen (even the main menus) and you cannot do anything else.
We're stuck with this issue, any help would be appreciated.
- ADF Business Components     10.1.3.36.73
- Java™ Platform     1.5.0_05
- Oracle IDE     10.1.3.36.73
Best Regards,
Jordi
Message was edited by:
Ramot

I'm not seeing this in the latest versions of the SRDemo sample that I am testing internally. Can you either:
1) Email me a EMP/DEPT testcase in a JAR file attachment that illustrates the problem (if it requires JSF to illustrate, please remove the adf-faces-impl.jar from the archive to keep the example smaller), or
2) Email me so I can email you a pointer to a later version of the SRDemo sample application which you can test in your environment to verify that the problem doesn't reproduce for you anymore either.
Thanks.

Similar Messages

  • Possible to aggregate multiple JSF custom actions into a single action?

    I'm wondering if it's possible to aggregate multiple JSF custom actions into a single action? For example, I have a JSF custom tag/renderer named selectOneMenuStateAbbreviation that displays a drop down list of state abbreviations. This tag allows a user to select a state abbrevation from the list.
    What I want to do is create another custom tag/renderer and call it inputAddress. The inputAddress tag, will consist of text boxes for street address, city, and zip code. I want to make it so that the state abbreviation custom tag that I already wrote is imbedded in this tag/renderer as well.
    Does anyone know if this is possible? Or, would I have to just duplicate the code that I already have in my other custom action?

    I would assume so, but, I don't know how. Can I do it using just tags and renderers, or, would I need to create a custom UI component as well? One tag would have to be a child of the other correct? I don't know how to do this in Java code. Does anyone know of example code that shows how to do this?
    Jon

  • MIGHTY MOUSE BUG! can you reproduce secondary button failure?

    The bug is extremely simple: If a user decides to move his home folder to a different partition from the system partition & correcting the path in netinfo manager to point to the external partition, the secondary button function on any mighty mouse (wireless or wired) will not function, regardless of where this "function" assigned
    BTW in case you ask, my system is set up that way for backup purposes.
    steps to reproduce:
    You need MacOs X 10.4.8 or later installed on a system with at least 2 partitions, the system being installed on one of them.
    1 create user "test"
    2 login to "test" user
    3 check system prefs for mouse & activate secondary button if it is not activated. Test that it works!
    4 copy "test" home folder to external partition (+ authenticate if appropriate)
    5 open netinfo manager
    6 find user "test" & correct path to home folder from "/Users/test" to "Volumes/whateveryourothervolumeiscalled/test" (or something to that effect, depending on your configuration: my config has an external volume called Users. I therefore point the new home folder to Volumes/Users/test)
    7 save config & quit
    8 logout & login twice (yes I don't know why but it doesn't seem to register the path to the new home folder after the first logout; go figure?)
    9 test your secondary button function & it does NOT work. All other buttons/functions work normally
    10 RETURN TO initial setup by correcting path in netinfo manager back to "Users/test" (save, quit, logout & login twice making sure the home folder selected is on the system partition): check mighty mouse secondary button & it works again!
    This has been reproduced with 3 separate test users on 2 different systems.
    Just to be on the safe side, could anyone else plse reproduce the bug & send feedback? I guess any system with 2 partitions on internal drive or a separate HD drive will do.
    Thanks for anyone's feedback & suggestions

    Please do not post bug reports on the forums. There is a specific feedback page for reporting bugs, feature requests, etc.: http://www.apple.com/feedback/. Reporting them here will not result in any notification to Apple and will be removed by the moderators for not conforming to the Terms of Use.

  • JDeveloper 10.1.3 Bug With Multiple JSF Config Files?

    There seems to be a problem with JDeveloper 10.1.3 when you have multiple JSF configuration files. I have three configuration files created for a JSF application. One file contains navigation cases, a second file contains the managed beans, and a third file consists of the regular faces-config.xml file.
    When you are working with a backing bean in JDeveloper, it seems to have a nasty habbit of sticking a "new" managed bean definition for the backing bean you are working on in the faces-config.xml file.

    Good point. We'll try to address this in the production release of 10.1.3.
    Thanks,
    Rod

  • Is this possible to do in JSF??

    Hi Crew,
    As per my requirement, I need to develop a framework which takes a fixed format of meta-data and generate the UI as per that meta-data on the fly (Taking care of navigation, method bindings.......and every little stuff). The server will only have the bean objects and there may/may not be entries in the faces-config. Moreover, there will be no JSP's deployed on the server.
    My questions is as follows:
    1) Is it possible to do it using the JSF Framework ? If yes, then how can I do it.......Sample codes/Documents
    Any help is highly appreciated.
    Accid
    Edited by: Accid on Sep 28, 2008 10:06 PM

    Of course it is possible. You will need custom implementations of ViewHandler and NavigationHandler.

  • Possible memory leak in JSF � help needed

    Hi,
    We are developing a JSF application using the following:
    SUN JSF 1.1_02-b08
    Tomahawk 1.1.3
    Tomcat 5.5
    Our application includes pages with lists; these lists are held and extracted from backing beans.
    We are using these beans in request scope with <t:saveState> tag (to avoid holding the lists in the session all the time).
    We tested the application using JProbe and found out that each bean that was used in the saveState was added to the view (to the session) , each time we entered the page , and the bean was not released until the end of the session (instead of only one instance of the backing bean).
    After I found this problem, I added the following context params to the web.xml:
    com.sun.faces.NUMBER_OF_VIEWS_IN_SESSION = 1 (instead of the default 15)
    com.sun.faces.NUMBER_OF_VIEWS_IN_LOGICAL_VIEW_IN_SESSION = 1 (instead of the default 15)
    We tested the application again, and now no unnecessary instances of the beans were held in the session (in the view).
    BUT , now when we use the browser �Back� button, and returning to a page with a list, when selecting an item from the list, no action is performed (the list in the server side does not exist).
    My questions are:
    1)What is the meaning (difference) of each of the context param : NUMBER_OF_VIEWS_IN_SESSION , NUMBER_OF_VIEWS_IN_LOGICAL_VIEW_IN_SESSION
    2)What are the recommended values for these parameters, to minimize session memory, and to enable the usage of the browser �Back� button.
    Thank you all,
    Lior.

    Me too.
    Please somebody knows how can we avoid memory leak problems in JSF 1.1 ?
    Thansk in advanced

  • ADFBC+JSF - Current master record lost after Rollback

    Hi all,
    We've a master-detail page with a 'create new detail' command button that opens a new jspx page with a detail record creation form. From that creation page, if we hit the cancel button (bind to Rollback action) returning to the parent master-detail page, the current row for the master iterator has repositioned to the first row, thus losing the master-detail status where the user had previously.
    Doesn anyone know how to avoid this behavior without having to add code to reposition the iterators? (i.e how to maintain the iterators current rows after a Rollback?)
    Thanks in advance for any help,
    Jordi Lopez
    Message was edited by:
    Ramot

    This has been asked a number of times.
    The latest idea from Steve, to a previous thread of mine, was:
    Create an event for the onRollback, which does not invoke the default event action. This prevents the Rollback from occurring, but allows shouldAllowModelUpdates to return false.
    Since it's an Add a Detail, you could always issue a delete if it's only an add. If it's an [add] or [edit], then you'd need to do a row refresh, remove new rows, or look at an id# (pk) and if that is null or possibly negative depending on how you set it, remove the row via the iterator.
    [this is all based on 10.1.2/jsp/adf/struts]

  • Is it possible to use a JSF Validator to perform a Dependency validation?

    I'm new to JSF, but getting more and more experience everyday. I've create some custom validators for a few input fields on my form and they are working beautifully. What I can't figure out is how to write a validator that will check a field for a value based on another fields value. For instance, I would like to require a person to enter an address if they select a Yes / No select box indicating they would like to supply an address.
    Does anyone know how I can do this? I've come up with a clunky work around by performing my dependency validations in my action page rather than a validator.
    Thanks!!!!

    Hi RaymondDeCampo.
    I have never been a big fan of how JSF (and even Struts)handle forms both in the front (the view) and the back.
    Forcing the developer to contend with writing a java class for each thinkable form does not look like a workable pattern to me. And tying the view (JSP or JSF page) tightly to the form classes and validators is also cumbersome.
    In many decent applications, the number of forms grows to more than a tiny handful and so would the number of classes that simply act as dummy data carriers.
    I do not see why I should have to maintain all the accompanying classes and validators and JSP code that each form comes with. Making changes to the structure of a form (say adding new fields or removing others, or even adding whole form pages into the sequence), modifying the model of a form (like renaming fields, adding new validation rules), or changing form view (e.g. switching from a list of checkboxes to a select dropdown, changing how and where error messages are presented, supporting a new language) are just some of those things that become tedious to maintain sentrally.
    No other model of building forms out there makes the named tasks any simpler, aprt from adding a new level of complexity to the simple data collection purpose of web forms. Well, except Formular. I have had Formular working in JSF and Struts although I ended up ditching the JSF way of handling forms altogether.
    I prefer good and solid separation of form components as outlined by Formular. Formular is the only API out that would allow me to migrate my forms from any Java web server to another without having to rewrite a line of code. Try upgrading your Struts form to JSF or vise versa and you'll get the idea of why I dropped the more hardwired way of coding web forms.
    With Formular, I have created a repository of validators (for doing my form checks). datasources (for populating lists, radios, checkboxes, and combos), and styles (for laying out my form elements). Making modifications to my repositories, I can do site-wide changes without touching my JSPs or Java classes. I can move form messages from the top of ALL my forms and place them just above the offending fields in one single style file, I can swap the markers on optional fields and use them only on required fields if the business manager wants to in a single go, I can even change validation rules that are attached to several fields in different web forms at one instance (how many hours did we save when one client wanted all buttons in the site changed to GIFs and all phone and address fields in their application and survey forms validated a little different?)
    Ack! Now It looks like I'm preaching, again so I'll hold myself.

  • Is it possible to Run a JSF 2.0 application under Websphere v7.0?

    Has anyone succeeded in deploying and running a JSF 2.0 application under Websphere v7 ?
    I was able to do this in 10 minutes using Eclipse 3.5 and Tomcat 6.0.
    However, it seems tedious to do it under Websphere.
    I would like to know if some of you have done it and how you did it.
    Thanks
    Edited by: PatrickBlais on Oct 6, 2009 12:25 PM
    Edited by: PatrickBlais on Oct 6, 2009 12:33 PM

    Now, got that resolved. As I stated in my previous post, I had to change the classloading policy to "Parent Last" and
    found that mojarra is now loaded (see the last line):
    [07/10/09 11:00:12:013 EDT] 00000014 ApplicationMg A WSVR0200I: Starting application: JSFEAR
    [07/10/09 11:00:12:013 EDT] 00000014 ApplicationMg A WSVR0204I: Application: JSFEAR Application build level: Unknown
    [07/10/09 11:00:13:201 EDT] 00000014 ResourceMgrIm I WSVR0049I: Binding DefaultEJBTimerDataSource as jdbc/DefaultEJBTimerDataSource
    [07/10/09 11:00:13:248 EDT] 00000014 webapp I com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Loading Web Module: webJSF.
    [07/10/09 11:00:13:263 EDT] 00000014 WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Will create a new session context for application key SCD/webJSF
    [07/10/09 11:00:13:373 EDT] 00000014 FacesConfigur I org.apache.myfaces.config.FacesConfigurator feedStandardConfig Reading standard config META-INF/standard-faces-config.xml
    [07/10/09 11:00:13:497 EDT] 00000014 FacesConfigur I org.apache.myfaces.config.FacesConfigurator feedWebAppConfig Reading config /WEB-INF/faces-config.xml
    [07/10/09 11:00:13:513 EDT] 00000014 LocaleUtils W org.apache.myfaces.shared_impl.util.LocaleUtils toLocale Locale name in faces-config.xml null or empty, setting locale to default locale : en_CA
    [07/10/09 11:00:13:622 EDT] 00000014 FacesConfigur I org.apache.myfaces.config.FacesConfigurator handleSerialFactory Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
    [07/10/09 11:00:13:622 EDT] 00000014 AbstractFaces I org.apache.myfaces.webapp.AbstractFacesInitializer initFaces ServletContext 'C:\Program Files\IBM\SDP75\runtimes\base_v7\profiles\profil_CGE\installedApps\cellule\JSFEAR.ear\webJSF.war' initialized.
    [07/10/09 11:00:13:701 EDT] 00000014 config I Initializing Mojarra 2.0.0 (SNAPSHOT 20090924) for context '/webJSF'
    Now I will be looking for what I have to set next...

  • Tutorial using Oracle database & ADFBC/JSF

    Hello
    I needed to create a web application which will use Oracle as a database and JSF and ADF BC. I wanted to know what are the steps to creating such an application? Any link, pdf, tutorial?
    Also what is the advantage of using JSF/ADF BC.. i.e., as my web application has to have AJAX implementation too, so which one is better suited?
    Please do provide the necessary guidance. Thanks in advance.

    Have a look at the JDeveloper tutorials page on OTN.
    http://www.oracle.com/technology/obe/obe1013jdev/index.htm
    Also see the ADF learning center for more in-depth tutorial and book:
    http://www.oracle.com/technology/products/adf/learnadf.html
    Using JSF with ADF Faces will get you all sorts of Ajax like capabilities. see for example:
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/adffacesria/adffacesria.html

  • ADFBC+JSF - Master change doesn't refresh detail

    I've the Master iterator driven by an <af:selectOneChoice> with 'autosubmit' set to true. As a UI for the detail iterator I've tried both ADF Read Only Table and with another af:selectOneChoice with no luck so far, when the Master changes (to a new current row), the Detail UI component isn't refreshed directly, I need to hit F5 to refresh the page in order to see the cascade changes.
    I've tested the Application Module and everything works fine (i.e when the current row in the master iterator changes, so does the details).
    I've tried to set the "CacheResults" attribute in the detail iterator to false in pageDef, I've set 'Refresh' to always, 'RefreshCondition' to #{true} and I've failed miserably in each attempt. Any help would be appreciated
    Thanks much,
    Jordi

    I've found a workaround that although far from being declarative, it works:
    - Set the af:selectonechoice's autosubmit attribute to false.
    - Add this new attribute: onchange="javascript:document.forms[0].submit();"
    Change 'forms[0]' accordingly if you have more than one form on your page.
    I hope there's a declarative way to accomplish the same behavior as IMO a selectOneChoice bound to a master iterator is a common way to 'navigate' or filter a detail collection (1..N relationship).
    Thanks in advance for any cleaner solution for this issue.
    Jordi

  • Is ADFBC - JSF is working with Oracle XE?

    Hi ,
    i found in the XE license doc
    that Java Server Pages = NO
    what that means?
    Thanks

    I'm not sure, but JDeveloper 10g (or really any version of JDeveloper) works fine with Oracle XE as its database.
    This comment likely refers to a vestigial feature of Oracle 8i to run JSP pages INSIDE the database.

  • ADFBC JSF Can Dialog Maximized Automatically?

    Hi,
    Can i open a Dialog Maximized Automatically?
    now, whatever i set the height and width of the window i get a dialog but not maximized?
    any idea?
    thanks in advance

    Hi ,
    the reason i need dialog becuase i will pop it up from the login screen if the login is successful , all my application will run in this new window , i want this to hide the browser buttons.
    am i right , any better idea , if the applcations is run in this dialog will affect any behavior ??
    thanks for the great support
    note:
    can we log the maximize of dialog as enhancement request becuase the width and height for the window have a maximum?

  • Bug in JSF 2?

    I'm creating a fairly simple application using Weld and JSF2, running on Glassfish v3. However I have run into a problem which I can't get my head around. On one page I have a search field, which the result populates a h:selectOneMenu. From the h:selectOneMenu it should then be possible to select one of the results. This is were I get an error (or lack thereof, so to speak). The second request never reaches my RequestScoped bean, which I find odd.
    I have created a very simple example to illustrate. The behavior I would expect, is the search field to be populated in the h:selectOneMenu, and then the value selected here shown in the bottom line.
    If I change the bean to return a populated list for #{imTheBean.searchResult} on the first render, I'm able to submit just fine. Which is the behavior I was expecting from my example, but doesn't seem to work because I'm dynamically populating the searchResult..
    <h:messages /> outputs: "searchform:searchResult: Validation Error: Value is not valid". Nothing shows in the glassfish log..
    Am I doing something wrong, or is this a bug somewhere?
    JSF page:
    <?xml version="1.0" encoding="UTF-8"?>
    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                    xmlns:ui="http://java.sun.com/jsf/facelets"
                    xmlns:f="http://java.sun.com/jsf/core"
                    xmlns:h="http://java.sun.com/jsf/html">
        <h:messages/>
        <h:form id="searchform" styleClass="as_form">
            <h:inputText id="search" value="#{imTheBean.searchString}"/>
            <h:commandButton id="searchbutton" value="Search" action="#{imTheBean.doSearch}"/>
            <br/>
            <br/>
            <h:selectOneMenu id="searchResult" value="#{imTheBean.selectResult}">
                <f:selectItems value="#{imTheBean.searchResult}"/>
            </h:selectOneMenu>
            <h:commandButton id="selectButton" value="Select" action="#{imTheBean.doSelectResult}"/>
        </h:form>
        <br/>
        <br/>
        You selected #{imTheBean.selectedResult}
    </ui:composition>Bean:
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.List;
    import javax.enterprise.context.RequestScoped;
    import javax.inject.Named;
    * ImTheBean.
    @RequestScoped
    @Named
    public class ImTheBean implements Serializable {
        private static final long serialVersionUID = -6412703392546135760L;
        private String searchString;
        private List<String> searchResult;
        private String selectResult;
        private String selectedResult;
        public void doSearch() {
            searchResult = new ArrayList<String>();
            searchResult.add(searchString);
        public void doSelectResult() {
            selectedResult = selectResult;
        public String getSearchString() {
            return searchString;
        public void setSearchString(String searchString) {
            this.searchString = searchString;
        public List<String> getSearchResult() {
            return searchResult;
        public void setSearchResult(List<String> searchResult) {
            this.searchResult = searchResult;
        public String getSelectedResult() {
            return selectedResult;
        public void setSelectedResult(String selectedResult) {
            this.selectedResult = selectedResult;
        public String getSelectResult() {
            return selectResult;
        public void setSelectResult(String selectResult) {
            this.selectResult = selectResult;
    }

    This is a vague error that has existed for a long time, also in JSF 1.x. If you search on that specific error in google you'll get many cries for help, with solutions.
    Among other possibilities, it can happen when the list you use to fill the oneSelectMenu has different values on the postback; if the value that was selected in the menu does not exist in the backing list on the post back, you'll get this error.
    Also check BalusC's reply in this thread:
    [http://forums.sun.com/thread.jspa?forumID=427&threadID=5305443|http://forums.sun.com/thread.jspa?forumID=427&threadID=5305443]

  • Bug 2679062 - Wrong results possible from multi-column INLIST - though stat

    Hi,
    The following test case is supplied in the metalink in bug no. 2871341, the base bug for this bug is 2679062.
    REPRODUCIBILITY:
    Reproduces constantly with simple test case below:
    TEST CASE:
    DROP TABLE A1
    CREATE TABLE A1 (X1 VARCHAR2(10), X2 VARCHAR2(10))
    REM *********** Create the second table: ***************
    DROP TABLE A2
    CREATE TABLE A2 (X1 VARCHAR2(10), X2 VARCHAR2(10))
    INSERT INTO A1 VALUES ('1','2');
    INSERT INTO A2 VALUES ('3','4');
    COMMIT;
    CREATE INDEX A1_X1 ON A1(X1 );
    CREATE INDEX A1_X2 ON A1(X2);
    CREATE INDEX A2_X1 ON A2(X1);
    CREATE INDEX A2_X2 ON A2(X2);
    CREATE OR REPLACE VIEW A_ALL AS SELECT * FROM A1 UNION ALL SELECT * FROM A2;
    ANALYZE TABLE A1 COMPUTE STATISTICS;
    ANALYZE TABLE A2 COMPUTE STATISTICS;
    SELECT * FROM A_ALL;
    SELECT * FROM A_ALL WHERE (X1='1' AND X2='2') ;
    SELECT * FROM A_ALL WHERE ((X1='1' AND X2='2') OR (X1='3' AND X2='4'));
    The 2nd query returns answer while the second is not !
    The following is published in the 9.2.0.4 fixed bug list:
    " 9204 - 2679062 - Wrong results possible from multi-column INLIST "
    I have installed 9.2.0.4 patch set on a win 2000 machine Oracle and saw that the above case is actually solved but our application which has a very similar case doesn't.
    After investigating I found the following test case that fails, it reproduces only when you have index on all columns (covering index):
    drop table t1_1;
    drop table t1_2;
    create table t1_1(c1 number, c2 number, c3 number);
    create table t1_2(c1 number, c2 number, c3 number);
    create index t1_1_ix on t1_1(c1, c2, c3);
    create index t1_2_ix on t1_2(c1, c2, c3);
    create or replace view t1 as select * from t1_1 union all select * from t1_2;
    insert into t1_1 values(1, 2, 100);
    insert into t1_2 values(1, 2, 200);
    commit;
    analyze table t1_1 compute statistics;
    analyze table t1_2 compute statistics;
    prompt
    prompt #######################################
    prompt try 1 - works fine
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    ( (c2=2) and (c3=100)
    prompt
    prompt #######################################
    prompt try 2 - works fine
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    (c2=2) and (c3=200)
    prompt
    prompt #######################################
    prompt try 3 - try 1 OR try 2 does not work !
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    ( ( (c2=2) and (c3=100) )
    or
    ( (c2=2) and (c3=200) )
    opened a TAR and wanted to share with you.
    Tal Olier ([email protected]).

    Hi,
    The following test case is supplied in the metalink in bug no. 2871341, the base bug for this bug is 2679062.
    REPRODUCIBILITY:
    Reproduces constantly with simple test case below:
    TEST CASE:
    DROP TABLE A1
    CREATE TABLE A1 (X1 VARCHAR2(10), X2 VARCHAR2(10))
    REM *********** Create the second table: ***************
    DROP TABLE A2
    CREATE TABLE A2 (X1 VARCHAR2(10), X2 VARCHAR2(10))
    INSERT INTO A1 VALUES ('1','2');
    INSERT INTO A2 VALUES ('3','4');
    COMMIT;
    CREATE INDEX A1_X1 ON A1(X1 );
    CREATE INDEX A1_X2 ON A1(X2);
    CREATE INDEX A2_X1 ON A2(X1);
    CREATE INDEX A2_X2 ON A2(X2);
    CREATE OR REPLACE VIEW A_ALL AS SELECT * FROM A1 UNION ALL SELECT * FROM A2;
    ANALYZE TABLE A1 COMPUTE STATISTICS;
    ANALYZE TABLE A2 COMPUTE STATISTICS;
    SELECT * FROM A_ALL;
    SELECT * FROM A_ALL WHERE (X1='1' AND X2='2') ;
    SELECT * FROM A_ALL WHERE ((X1='1' AND X2='2') OR (X1='3' AND X2='4'));
    The 2nd query returns answer while the second is not !
    The following is published in the 9.2.0.4 fixed bug list:
    " 9204 - 2679062 - Wrong results possible from multi-column INLIST "
    I have installed 9.2.0.4 patch set on a win 2000 machine Oracle and saw that the above case is actually solved but our application which has a very similar case doesn't.
    After investigating I found the following test case that fails, it reproduces only when you have index on all columns (covering index):
    drop table t1_1;
    drop table t1_2;
    create table t1_1(c1 number, c2 number, c3 number);
    create table t1_2(c1 number, c2 number, c3 number);
    create index t1_1_ix on t1_1(c1, c2, c3);
    create index t1_2_ix on t1_2(c1, c2, c3);
    create or replace view t1 as select * from t1_1 union all select * from t1_2;
    insert into t1_1 values(1, 2, 100);
    insert into t1_2 values(1, 2, 200);
    commit;
    analyze table t1_1 compute statistics;
    analyze table t1_2 compute statistics;
    prompt
    prompt #######################################
    prompt try 1 - works fine
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    ( (c2=2) and (c3=100)
    prompt
    prompt #######################################
    prompt try 2 - works fine
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    (c2=2) and (c3=200)
    prompt
    prompt #######################################
    prompt try 3 - try 1 OR try 2 does not work !
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    ( ( (c2=2) and (c3=100) )
    or
    ( (c2=2) and (c3=200) )
    opened a TAR and wanted to share with you.
    Tal Olier ([email protected]).

Maybe you are looking for

  • Cost in Billing document

    Hi all, Pls tell me what is the Cost column in Billing document and what is use? As i know, it relates to internal price, so why it's displayed in billing doc? Thanks,

  • I book G4 dead

    I left my i book G4 today downloading a tv show off i tunes... I come back 2 hrs later and its sleeping. I hit enter it sounds like its coming back on... Then i look no sleep light - blank screen... I try hitting the power button nothing happens... I

  • Why is the pink ipad smartcase not available on itunes store?

    I find it on amazon and other pages, but why is it not on the itunes store?

  • Office 2007 (OOB template) Please wait while configuring...

    Quick query if anyone has had any succcess in stopping virtualised Office 2007 from looping through "Please wait while Microsoft Project 2003 is configuring..." Basically the setup is virtualised office 2007 (latest zenworks) on machines that have of

  • RMS in V-appli

    hi., I�m doing my game(using RMS concept) to Vodafone, If I run this RMS code in Wireless Toolkit its run properly, but at the time of run this application into Vodafone emulator (V-appli Emulator for JSCL1.2.2) it gives the problem. ie., javax.micro