Different behavior from JDeveloper 11.1.1.4 to JDeveloper 11.1.2

On Windows 7 64 bit.
I have one component af:outputtext. In property value I wrote
<af:outputText value="#{pageFlowScope.value}" id="outputText1"
      inlineStyle="font-size:small; font-weight:bold; border-color:Black; border-width:thin; border-style:ridge; background-color:#{pageFlowScope.value le 0?'Red;':'Lime;'};">
</af:outputText>If I want to run, I have to clean *background-color:#{pageFlowScope.value le 0?'Red;':'Lime;'}*.
But the same groovy code in JDev 11.1.1.4 it run well.
Why?
Am I doing wrong?
If i don't use this way, how can change background-color at outputtext when it's < 0?
Thank you

As your original code works for me, I wonder why it doesn't work for you.
Which browser did you try? I'm using FF6.
Next you can try a new simple test page, put an input Text component and an outputText component on it, autosubmit the inputText to a pageFlowScope variable and set the inlineStyle of the outputText to your code (alter the value you check).
Now you can enter text into the inputText hit enter and see the result.
That is what I did to test this.
Timo

Similar Messages

  • Different behavior from the PRE function based on BMRS and WMRS

    Hi All,
    We are seeing different behavior from the PRE function based on whether the type is Before Modified Record Saved or When Modified Record Saved. Should the PRE function work the same for both as long as there is not a Wait action in the WMRS workflow?
    (((PRE('<plTier_ITAG>') <> [<plTier_ITAG>]) AND ([<plTier_ITAG>] = '2 - BA')) AND [<IndexedPick4>] = 'FSCM')
    Explaination: The Tier field changes AND now equals Tier 2, AND Application is equal to 'FSCM'
    The same expression fires only as designed in BRMS, but in WMRS it fires every time a SR is in Tier 2 and IndexedPick4 = 'FSCM', regardless of whether a change was made to the Tier field.

    Try changing your syntax around to something like -:
    PRE('<plTier_ITAG>') {NOT EQUAL} '2 - BA' AND [<plTier_ITAG>] = '2 - BA' AND [<IndexedPick4>] = 'FSCM'
    +i.e. Previous value of Tier is not equal to "2 - BA" and current value of Tier equals "2 - BA" and IndexedPick4 equals "FSCM". Replace {NOT EQUAL} with the appropriate syntax+
    Regards,
    Cam

  • Dbms_sql  in a different schema from query table-error  ** ORA-00942

    Oracle Experts,
    I think I am having problems with using DBMS_SQL in which the function was created in one schema and the query table was created in a different schema.
    We have 2 schemas: S1, S2
    We have 2 tables:
    T1 in Schema S1
    T2 in Schema S2
    We have a function F1 created by DBA in schema S1 that uses the dbms_sql as:
    CREATE OR REPLACE FUNCTION S1.F1(v1 in VARCHAR2) return NUMBER IS
    cursor1 INTEGER;
    BEGIN
    cursor1 := dbms_sql.open_cursor;
    dbms_sql.parse(cursor1, v1, dbms_sql.NATIVE);
    dbms_sql.close_cursor(cursor1);
    return (0);
    EXCEPTION
    when others then
    dbms_sql.close_cursor(cursor1);
    return (1) ;
    END;
    I am using jdeveloper 11G. We have an Oracle DB 11g.
    We have a java program which uses jdbc to talk to our Oracle DB.
    Basically, in my java program, I call function F1 to check if the query is valid.
    If it is, it returns 0. Otherwise, returns 1:
    oracle.jdbc.OracleCallableStatement cstmt = (oracle.jdbc.OracleCallableStatement) connection.prepareCall ("begin ? := S1.F1 (?); end;");
    cstmt.registerOutParameter (1, java.sql.Types.INTEGER);
    cstmt.setString(2, "Select * from S2.T2");
    cstmt.execute ();
    Since the table that I run the query is T2, created in different schema than F1 was created in, I have the error:
    ** ORA-00942: table or view does not exist
    So my questions are these:
    - I am using Oracle DB 11g, if I run the query on a table that created in a different schema from the one that the function (which uses dbms_sql) was created in, I would get the error ORA-00942?
    - If I runs the query on table T1 in the same schema as the function F1, would I have the same problem(The reason I ask is I cannot create any table in schema S1 because the DBA has to do it; I am not a DBA)
    - This is not a problem, but a security feature because of SQL injection?
    - How to resolve this issue other than creating the table in the same schema as the function that utilizes DBMS_SQL?
    Regards,
    Binh

    Definer rights (default) stored objects run under owner's security domain and ignore role based privileges. So regardless what user you are logged in as, function S1.F1 always executes as user S1 and ignores user S1 roles. Therefore exeuting statement within S1.F1:
    Select * from S2.T2requires user S1 to have SELECT privilege on S2.T2 granted to S1 directly, not via role.
    SY.

  • ESS Benefits Generic Enrollment - Different behavior backend v/s portal

    We are using the ESS Benefits generic enrollment service for enrollment kicking off the adjustment reasons on IT 0378.
    Here is the configuration set up, trying to simplify to explain the matter. We are on ECC 6.0 with EHP2.
    1.  Configured one plan type in savings category.
    2.  Within this plan type,  configured 2 plans.
    3.  Configured all other related configuration to set up the 2 plans.
    4. Configured the adjustment reason and the appropriate plan type created in step 2.
    5.  Created the required adjustment reason on 378.
    In HRBEN0001 transaction via backendwe can  see the 2 plans configured within the plan type.
    But when Trying to enroll from ESS - only one plan can be seen for that plan type, the other plan is not shown at all.
    OK - eventually, debugged and found this piece of code in FM HR_BEN_ESS_FILL_SELECTION_DISP.  The 2 different plans are there until this piece of code takes one of them Off...
      CODE -
    3.) Reduce entries to one entry per type and period
      delete adjacent duplicates from selection_display_gt
        comparing pernr
                  barea
                  bpcat
                  pltyp
                  begda
                  sprps.
    CODE -
    This FM is called only for ESS application and not for backed program.
    What we do not understand is why is it behaving differntly on backend v/s portal.
    Any information or experience with this form any one of you will be highly appreciated.
    Thanks.

    Siddharth,
    Thanks for your reply. Yes ESS has its own FMs.  The UI, user exits, BADIs etc are different for backend v/s front end.
    What we are not clear with, is the different behavior in core functionality --  i.e. When the adjustment reason is processed from the backend using HRBEN0001 - The 2 plans within the Plan Type are available for elections. BUT the same adjustment reason for the same penr when processed from  ESS - there is just one plan available for elections.
    It's clear from the code, that it is deleting one plan and this code is within the FM which is called only from ESS.  But we are still not sure why it should behave differently i.e. 2 plans via backend v/s one plan  via ESS. 
    Wanted to see if anyone can share any information if they have a similar benefits set up .. 2 plans within one plan type FOR savings plan category and then having a adjustment reason set up.
    Regards.

  • Different behavior with decimal data on same version of CF

    I have a linux/apache/mysql/CF MX 7 Enterprise server. I insert decimal data using the cfqueryparam that looks like
    <cfqueryparam value="#BudgetSet.BUD_SET_DETAIL_COST_PER#" CFSQLType="CF_SQL_DECIMAL">.
    No problems the decimal data does not get rounded, 123.45 inserts as 123.45.
    I'm building applications for my neighborhood association, so I'm having godaddy.com host the web site with CF and MySQL.
    Like a good developer, I took code from my CF server, moved some of the more useful programs to the godaddy.com, set up the database and started testing some apps. Now any decimal data inserted gets rounded using the same cfqueryparam syntax from my CF server (like above). The decimal data on the godaaddy.com inserts as 123.00, when I'm trying to insert 123.45, of course if I insert 123.99 I get 124.00, rounding. So I called godaddy.com and of course I get the standard technical answer "its your code". So off to testing I go. Only to determine, by not using the cfqueryparam, I could stop the rounding, more testing I determined that I need to use
    <cfqueryparam value="#BudgetSet.BUD_SET_DETAIL_COST_PER#" CFSQLType="CF_SQL_MONEY"> or
    <cfqueryparam value="#BudgetSet.BUD_SET_DETAIL_COST_PER#" CFSQLType="CF_SQL_DECIMAL" scale="2">. The version of CF @ godaddy.com is also MX 7 Enterprise. Finally the question, what in configuration could cause such different behavior ?
    Thanks for reading my short novel.

    The database drivers determine how the cfqueryparam values are
    interpreted (behind the scenes ColdFusion generates a prepared
    statement using the driver interface and sets the values using
    standard JDBC calls). Unfortunately, like you found out, not all
    drivers are created equal and have slightly different behavior or
    defaults.
    I would check and compare the driver versions.
    Mack

  • Different behavior for index

    Hi.
      I have the table inl_allocations with following index:
    CREATE INDEX inl_allocations_n1 ON inl_allocations
      ( ship_header_id                  ASC,
        adjustment_num                  ASC,
        ship_line_id                    ASC )
    When running query below, we have different behaviors for indexes in different DB:
    SELECT *
      FROM INL_ALLOCATIONS CA, INL_SHIP_LINES_ALL CC
      WHERE CC.SHIP_LINE_ID = CA.SHIP_LINE_ID
      AND CC.SHIP_HEADER_ID = CA.SHIP_HEADER_ID
    1- For DB 1 (11.2.0.1.0) the explain plan for query:
                    (3)  INDEX INDEX FULL SCAN INL.INL_ALLOCATIONS_N1  [Analyzed]
                        Est. Rows: 33  Cost: 1
    2- For DB2 (11.2.0.3.0) the explain plan for query does not use the index INL_ALLOCATIONS_N1, and we have a FULL in table.
               (3)  TABLE TABLE ACCESS FULL INL.INL_ALLOCATIONS  [Analyzed]
               (3)   Blocks: 13 Est. Rows: 167 of 269  Cost: 5
    We would like to know the reason why there are differences between both environments.
    Thanks and Regards.

    many years ago Oracle used to optimize queries with a set of rules that ranked the potential access paths and finally chosed the possible operation with the highest rank. So for two systems with the same DDL Oracle would have generated the same plan. This was the rule based optimizer (RBO) and its shady ghost still dwells somewhere deep in the Oracle code. Since at least Oracle 8i (> 10 years ago) the standard optimization engine is the cost based optimizer (CBO) which uses statistics to generate execution plans: and if the data of your systems is different (or even if the data is identic but its physical order is different and changes the index clustering factor) the CBO can and will generate different plans and use or not use existing indexes.
    Regards
    Martin

  • How can I Generate two different reports from single execution of Test cases in NI teststand

    Hi,
    My requirement is to generate two different reports from NI teststand. One for the Logging of error descriptions and the other report is by default generated by the Teststand. How can i generate a txt file that contains error descriptions other than that mentioned in the default report?
    Solved!
    Go to Solution.

    Do you need to do that just for these two sequences but not for other sequences? I don't see a problem to use SequenceFilePostStepRuntimeError. Create this callback in both sequence files and configure them to log into the same file. SequenceFilePostStepRuntimeError callback is called after each step of the sequence file if it has runtime error. You can access the calling step error information via RunState.Caller.Step.Result.Error property. Take a look to attached example.
    The "other way" is useful if you need to log errors not for every step of the sequence file, but for some of them. This is more complex, because you need to create a custom step types for these steps. For the custom step you can create substeps (post-step in your case) which will be executed every time after step of this type executed. Then, this is you job to determine if error happened in the step, acces to step's error information is via Step.Result.Error property. 
    Also, be aware that step's post-expression is not executed in case of error in the step.
    Sergey Kolbunov
    CLA, CTD
    Attachments:
    SequenceFilePostStepRuntimeError_Demo.seq ‏7 KB

  • How can I make different catalogs from the same image

    How can I make different catalogs from the same image where that image has been changed in some way between the catalogs. For instance if I wanted to have a catalogs for cropped images and have 3 catalogs one for 4x6 , 5x7 and 8x10 cropping. When I tried this , if I changed a file in one catalog that same image in the other would change also.

    Do not confuse the creation of the crops and the display in collections per crop ratio.
    Of course one virtual copy (VC) per crop ratio is needed. If the same image should be cropped in all 3 mentioned ratios there would be 3 VCs.
    The OP asked how to have/see a set of same-crop-ratios.
    After having created the virtual copies for whatever crop ratio he wants, the way to display this result in the fashion asked for is via smart collections, provided they can be found. Without a plugin the naming of the VC with the crop ratio applied is a straight way to achieve that.
    IF the wish is to get new crops automatically added. (See my answers 2+3)
    IF the wish is to creat static collections per crop ratio for a certain set of images, I'd go as follows:
    1. Select all images you want to have cropped in that way,.
    2. With this selection click on the + to add another collection and fill the dialog box like this:
    Then navigate into this newly created selection and perform the 4x6 crop - according to taste individually or by synchronizing the first crop.
    Cornelia

  • How can I transfer my old music files to my new iPod using a different computer from that used on the old iPod?

    I got a brand new iPod and wanted to put the music files on my old iPod to the new one. In addition to this I would like to know how to sync my new iPod to a different computer from that of the old one. Is it possible for me to accomplish all this with music rescue?

    Put everything on one computer and sync to that computer.

  • Calling 3 different servlets from a single servlet

    hi all,
    i am in lot of soup...i am new to servlets,etc....so help me pls.
    i need to call 3 different servlets from one servlet. all 3 servlets that i want to call perform different functions and execute queries on the database.
    what i am trying to do is:
    there is an html page that call a servlet called authenticate.java.(whose code is at the bottom of this page).
    the servlet authenticate.java should authenticate a user according to the password and username supplied in the html page.
    MAINLY:-
    i need to display 3 buttons to the authenticted user. those 3 buttons each should call 3 different servlets, which do different things.
    now in authenticte.java i set certain information in the session using session.putValue();
    further, whatever servlet is called, i need to use that information i set into the session...using session.getValue().
    PLS TELL ME HOW TO DO THAT...ALSO C IF THE BELOW CODE IS OK.
    ALSO TELL ME HOW TO END A SESSION. ALSO DO SERVLETS SUPPORT SESSIONS?
    I AM USING jdk1.3 and jsdk2.0.
    * Authenticate.java
    // this places all user variables in session
    //to access use session.getAttribute
    //dispatcher stuff
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    * @author Gudiya
    * @version
    public class Authenticate extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException {
    HttpSession session = request.getSession(true);
    Connection con=null;
    String sessionid;
    String deptcode;
    String desig;
    String add1;
    String add2;
    String contname;
    PrintWriter out = response.getWriter();
    try
    {System.out.println(1);
    response.setContentType("text/html");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:SACFA","","");
    System.out.println("connection established");
    catch(ClassNotFoundException e){
    System.out.println("database driver not found");
    System.out.println(e.toString());
    catch(Exception e){System.out.println(e.toString());
    String username=request.getParameter("username");
    String password=request.getParameter("password");
    try{
    System.out.println(2);
    PreparedStatement stmt=con.prepareStatement("SELECT * FROM AUTHENTICATION,mb_add where AUTHENTICATION.NAME=? AND AUTHENTICATION.PASSWORD=? AND mb_add.DEPT_NAME=?");
    stmt.setString(1,username);
    stmt.setString(2,password);
    stmt.setString(3,username);
    ResultSet rs=stmt.executeQuery();
    System.out.println(3);
    boolean rowfound=false;
    rowfound=rs.next();
    if (rowfound==true)
    sessionid=session.getId();
    System.out.println(sessionid);
    System.out.println(4);
    session.putValue("user",username);
    rs.beforeFirst();
    while (rs.next())
    System.out.println(5);
    deptcode=rs.getString("DEPT_CODE");
    desig=rs.getString("DESIGNATION");
    add1=rs.getString("ADDRESS1");
    add2=rs.getString("ADDRESS2");
    contname=rs.getString("NAME");
    session.putValue("dept_code",deptcode);
    session.putValue("designation",desig);
    session.putValue("address1",add1);
    session.putValue("address2",add2);
    session.putValue("cont_name",contname);
    System.out.println(6);
    }          out.println("<html>");
              out.println("<head>");
              out.println("<title>Successful Login Screen</title>");
              out.println("</head>");
              out.println("<body bgcolor='ORANGE'>");
    out.println("WELCOME SACFA MEMBERS FROM "+ username);
    //print decorative html statements here
              out.println(" SELECT ANY ONE ACTION:-");
    //out.println("<form Action="+"\"servlet/noc\""+" method =post>");//call for your noc servlet
    //print decorative html statements here
    out.println("<INPUT TYPE=submit VALUE='GENERATE NOC' NAME='NOC'>");
    out.println("</form>");
    //print decorative html statements here
    //out.println("<form Action="+"\"servlet/comments\""+" method =post>");//call for your comment servlet
    out.println("<INPUT TYPE=submit VALUE='ENTER/ MODIFY COMMENTS' NAME='COMMENTS' >");
    out.println("</form>");
    //print decorative html statements here
    // out.println("<form Action="+"\"servlet/bye\""+" method = post>");
    out.println("<INPUT TYPE=submit VALUE=EXIT NAME=EXIT >"); //place javascript fucction for exiting window
    out.println("</form>");
              out.println("</body>");
              out.println("</html>");
    con.close();
    } catch( SQLException e){ }
    out.close();}
    THANK YOU,
    REGARDS,
    ASHNA

    Hi Ashna,
    You have use three different forms for three buttons. But I think all are commented one.It will also work if you uncomment it.
    Else you can use only one Form without giving action in form tag. Use normal buttons instead of submit type buttons & call different JavaScript functions on onClick event for each button.
    Try this out.
    Ajay

  • If both you and the person you are texting have iMessage, and that person's phone is dead... Will it/Can it still be sent as an imessage? I am getting different answers from people. I want to know if this person was being untruthful about there phone bein

    If both you and the person you are texting have iMessage, and that person's phone is dead... Will it/Can it still be sent as an imessage? I am getting different answers from people. I want to know if this person was being untruthful about there phone being truthful.

    IF that is the only iDevice activated for that recipient, then no. It should not successfully send as an iMessage if the phone is powered off or has no data connection. If you have Send as SMS turned on, it should automatically fallback to SMS after a few minutes. Of course, they won't get this until they power on their phone, assuming they have a text messaging plan with their carrier.

  • How can i look up a EJB residing in different machine from client side?

    hai ,
    How can i look up a EJB residing in different machine from client side?
    this is my code...........i don't know what should i use as Initial Context Factory...................i am using a sun appserver 8............
    package com.parx.lms.lmsdelegate;
    import com.parx.lms.exception.LMSException;
    import javax.naming.Context;
    import javax .ejb.CreateException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.rmi.PortableRemoteObject;
    import java.rmi.RemoteException;
    import com.parx.lms.controller.*;
    import com.parx.lms.vo.UserVo;
    import com.parx.lms.exception.BusinessException;
    import java.util.Hashtable;
    import java.lang.*;
    public class LmsDelegate{
    private final static String JNDI_NAME="LmsBean";
    private static String url="http://localhost:4848";
    public static Lms lms = null;
    public void getController() throws CreateException,
    NamingException,RemoteException{
    if(lms == null){
    Hashtable h=new Hashtable();
    h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************");
    h.put(Context.PROVIDER_URL,url);
    System.out.println("Before Loading Context in Delegate");
    Context ctx=new InitialContext(h);
    System.out.println("Loaded Context in Delegate");
    Object obj=ctx.lookup(JNDI_NAME);
    System.out.println("Loaded Object in Delegate");
    System.out.println("Before Loading Home in Delegate");
    LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
    System.out.println("Loaded Home in Delegate");
    lms = home.create();
    System.out.println("Loaded remote in Delegate");
    public void addUserDelegate(UserVo vo) throws BusinessException{
    try{
    getController();
    System.out.println("Before calling the addUser of Session");
    lms.addUser(vo);
    }catch(CreateException e){
    System.out.println("Create Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    }catch(NamingException e){
    System.out.println("Naming Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    catch(RemoteException e){
    System.out.println("Remote Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    }catch(LMSException e){
    System.out.println("duplicate user name--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    pls help me..........

    h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************")
    Each app server provides their own jndi factory class. For ex for weblogic it is weblogic.jndi.WLInitialContextFactory. SInce you are using sun app server, check if there are any examples to find out or the docs.
    private static String url="http://localhost:4848
    Since the client is in a different machine the localhost is not going to work here. provide the url or the machine name of the system in which ur sunapp server is running. In addition u will need to have the stubs of the remote interfaces in ur client machine.

  • JDBC connection to two different machines from the same program

    I want to use JDBC to connect to two different databases that are on two different MySQL installations on two different machines.
    One of the installations is MySQL 4.1.12 and the other is 4.1.14-nt
    For some reason, all my statements seem to be going only to one machine, even though I am very clearly set it up to go to two different machines.
    Does anyone know whether connecting to two different installations from one program presents any unusual problems?
    Thanks.

    Unless there is some horrible defect in the MySQL JDBC driver (which I doubt!), there should be no problem and like the other poster says, please post snippits of your code so we can see what your doing...

  • SUM two fileds from different rows from the same table

    I would like to SUM two fileds from different rows from the same table but I don't know how to do that.
    E.g.
    BillingTransactionsIndex      CreateDate      UserType      UserIndex      TransType      Reference      Total      Balance
    2      6/5/2008 15:02      1      51      1      150      -288.2      -288.2
    5      6/8/2008 11:55      1      51      1      157      -1.58674      -289.787
    In the table above I want SUM fields Total and Balance for the first row and the the next row SUM 2nd row Total with 1st row Balance
    Please help
    Thanks

    SQL> with tbl as
      2  (select 1 as ID,  90 as total from dual
      3          union all
      4  select 2 as ID,  23 as total  from dual
      5          union all
      6  select 3 as ID,  15 as total  from dual
      7          union all
      8  select 4 as ID,  20 as total  from dual)
      9  select id , total, sum(total) over (order by ID) as balance from tbl
    10  /
            ID      TOTAL    BALANCE
             1         90         90
             2         23        113
             3         15        128
             4         20        148
    SQL>

  • How to go to a different Transaction from a Transaction iview

    Hi Experts,
    I have one question and I need you help regarding this.
    1 . How to go to a different R3 transaction from an existing R3-Transaction iview in portal.
         Lets assume I have one iview which points to tcode : MIRO(R3 transaction)
         Now the end user wants to go to a different transaction(for example : FB60) from this iview.
          He wants to navigate to different transaction from inside portal only and not from ECC.
    Thanks a lot in advance.

    Dont you want the user to enter this transaction in the command field after entering MIRO and let them work ike we work in R/3?
    or make a transaction iview with transaction "SESSION_MANAGER" which will take the user to SAP initial screen and probably there user can go to any transaction to which he is authorized to.
    Regards
    Puneet

Maybe you are looking for