Steve Muench Example 105

Hi everyone,
I have implemented Steve's example 105 for unique key validator using ADF Business components.
Can anyone explain to me how can i implement this functionality using EJB?
Thanks
Antonis

Set the control hint like the format mask or tooltip on the "Ssn" attribute, then you can edit the Java message bundle directly.

Similar Messages

  • Displaying Images in ADF/JSF: Error Using Steve Muench's Example #69

    Hi,
    I've been able to load images into the database using Steve Muench's Example 69. However, I'm having issues displaying the images.
    Jdeveloper: 10.1.3.3.0
    Database: 10gR2 with ORDSYS active.
    I'm getting the following error:
    07/08/20 12:09:20.993 JSFOrdImageExample-ViewController-webapp: Servlet error
    java.lang.NullPointerException
         at oracle.ord.html.OrdPlayMediaServlet.renderContent(OrdPlayMediaServlet.java:403)
         at oracle.ord.html.OrdPlayMediaServlet.deliver(OrdPlayMediaServlet.java:263)
         at oracle.ord.html.OrdPlayMediaServlet.doGet(OrdPlayMediaServlet.java:204)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:613)I'm not sure why I'm getting a NullPointerException...
    Previous to this, I had to include the bc4jhtml.jar file as a library in application.xml, and I've tried using the two bc4jhtml.jar files, but neither one seems to work.
    I'm thinking that there must be something simple that I'm missing with the servlet setup...
    Thanks!
    Kenton

    I tried the wayback machine, but unfortunately, it doesn't cache the SWF files either :( I do have a copy of some (ok one) of Steve's old videos (the one that shows how to do a dropdown list in an editable table, back before it was easy to do), but unfortunately, none of the search ones.
    John

  • Dynamic JDBC credentials example application from Steve Muench

    Apologies for this newbie question...but I'm trying to understand the Dynamic JDBC credentials example application from Steve Muench:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#14
    I think I understand most of it but the one bit I dont understand is why it customizes the ADF Page Lifecycle (DynamicJDBCADFPhaseListener, DynamicJDBCPageLifecycle, DynamicJDBCPageLifecycleContext).
    Can anyone explain to an ex-forms developer why this code is there?
    I'm also trying to work out a way for the session to be invalidated when the user logins again
    e.g. a user logins, he doesnt use the logout function but uses the back button to go back to the login page. when he logs in with another set of credentials, would a new session start or as i supsect, it would use the original login credentials?
    Thanks

    You can ignore those three classes in the example. They are not related to the dynamic credential solution, and must have been left over from some other example I evolved into what you see. Sorry to have cluttered up the implementation with stuff that isn't really contributing to the actual solution. DOH!

  • Dynamic JDBC Credentials: Example 14 from  Steve Muench

    Hi,
    Im trying example from Steve Muench, it's working fine.
    But I have some questions about it.
    If I want to connect to the db with a wrong username/password I see that it tries 5 times to connect to the database, Where Can I change this number of retries?
    Before the password should be used, it must be encrypted. I have two encryption methods, wich one should be used varies.
    If the first encryption gives a wrong result(no login) the second encryption should be used.
    What is a good place to encrypt the password?
    I was thinking of DynamicJDBCSessionCookieFactory because that is called more than 1 time if login fails.

    I placed my code to encrypt now in the DynamicJDBCBindingFilter.
    This how I try to connect twice
    catch (Exception e) {
                        if (isFailedLoginException(e)) {
                            System.out.println("Poging="+poging);
                            attemt+=1;
                            if (attemt<3){
                                FacesContext    fctx = FacesContext.getCurrentInstance();
                                ExternalContext ectx = fctx.getExternalContext();
                                HttpSession session2 = (HttpSession)ectx.getSession(false);
                                if (session2 != null) {
                                  session2.invalidate();
                                this.doFilter(request,response,chain);
                            }else{
                                signalFailedLoginAttempt(svrRequest);
                                redirectToLoginPageOnLogonError(request, response);
                        }As you can see I invalidate the session and then I call doFilter again.
    This is almost working, but when I'm forwarded to main.jsp with the table I see access denied istead of the table, I also get this error on the Jdev console:
    08/03/25 15:09:14 java.lang.IllegalStateException: Session was invalidated
    08/03/25 15:09:14      at com.evermind.server.http.EvermindHttpSession.setAttribute(EvermindHttpSession.java:151)
    08/03/25 15:09:14      at test.DynamicJDBCBindingFilter.doFilter(DynamicJDBCBindingFilter.java:84)
    08/03/25 15:09:14      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    08/03/25 15:09:14      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    08/03/25 15:09:14      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    08/03/25 15:09:14      at java.lang.Thread.run(Thread.java:595)
    The session is invalidated, but If I don't to that it looks like that the new login credentials are not used. Because then I go back to the login page and see the message that the login\password was not correct.
    Someone who knows what I do wrong? I realy need to know this!!
    Message was edited by:
    KdeGraaf

  • Example 5-11 in Steve Muench's Oracle-XML book

    Hi,
    Anyone who studied the book Building Oracle XML Applications by Steve Muench (O'Reilly), could clarify this query. When I tried to execute Example 5-11:Test,Extract and Retrieve an XPath Expression Value (page 132) I get the following error:
    PLS-00307: too many declarations of 'SELECTNODES' match this call (complete source code given at the end of this message).
    Could you please explain why this error is occurring.
    Best wishes,
    Balu
    Code
    SQL> SET SERVEROUTPUT ON
    SQL> DECLARE
    2 doc xmldom.DOMDocument;
    3 approvers xmldom.DOMNodeList;
    4 PROCEDURE p(msg VARCHAR2, nl BOOLEAN := TRUE) IS BEGIN
    5 dbms_output.put_line(msg);IF nl THEN dbms_output.put(CHR(10)); END IF;
    6 END;
    7 FUNCTION yn(b BOOLEAN ) RETURN VARCHAR2 IS
    8 BEGIN IF b THEN RETURN 'Yes'; ELSE RETURN 'No'; END IF; END;
    9 BEGIN
    10 doc := xml.parse(BFileName('XMLFILES','claim77804.xml'));
    11
    12 p('What is the value of the Policy number for this claim?');
    13 p( xpath.valueOf(doc,'/Claim/Policy') );
    14
    15 p('Does this claim have any settlement payments over $500 approved by JCOX?');
    16 p(yn(xpath.test(doc,'//Settlements/Payment[. > 500 and @Approver="JCOX"]')));
    17
    18 -- Demonstrate Saving and Re-getting the XML document
    19 xmldoc.save('claim77804',doc);
    20 doc := xmldoc.get('claim77804');
    21
    22 p('What is XML document fragment contained by the <DamageReport> element?');
    23 p(xpath.extract(doc,'/Claim/DamageReport'));
    24
    25 p('Who approved settlement payments for this claim?');
    26 approvers := xpath.selectNodes(doc,'/Claim/Settlements/Payment');
    27 FOR j IN 1..xmldom.getLength(approvers) LOOP
    28 p(xpath.valueOf(xmldom.item(approvers,j-1),'@Approver'),nl=>FALSE);
    29 END LOOP;
    30 xml.freeDocument(doc);
    31 END;
    32
    33 /
    DECLARE
    ERROR at line 1:
    ORA-06550: line 26, column 16:
    PLS-00307: too many declarations of 'SELECTNODES' match this call
    ORA-06550: line 26, column 3:
    PL/SQL: Statement ignored

    I tried the wayback machine, but unfortunately, it doesn't cache the SWF files either :( I do have a copy of some (ok one) of Steve's old videos (the one that shows how to do a dropdown list in an editable table, back before it was easy to do), but unfortunately, none of the search ones.
    John

  • Error while running a sample XSQL from XML bible book from Steve Muench

    I am running the sample XSQL code from Chapter 03, which deals with exporting XML and transform into SQL statements. I'm using JDeveloper and I believe I've setup libraries and HTML root directory etc. I'm getting the following error:
    XSQL-011 Error processing XSLT stylesheet.
    XSL-1009 Attribute xsl:version not found in xsl:stylesheet.
    Can I get some help in fixing this error?
    Thanks a lot,
    Murali
    null

    Hi,
    This is the example I took from Steve Muench's book.
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text"/>
    <xsl:template match="/">
    </xsl:template1>
    </xsl:stylesheet>
    As you can see, I do have the version=1.0 attribute. Why is it complaining still?

  • ADF BC : using UI Locale to translate data (Steve M. example 95)

    hi
    In his example 95, Steve Muench suggests an approach to "Change Preferred UI Locale with a Button in the Page".
    I have made some minor modifications to this example, using JDeveloper 10.1.3.3.0, in an attempt to make it work with "translated data".
    (1) I added a bind variable "LanguageBVar" and an attribute "CalculatedTranslatedDnameAttribute" to "DeptView" with this expression:
    nvl(decode(:LanguageBVar, 'en', dname || ' (en)', 'it', dname || ' (it)'), dname || ' (language not supported)')(2) I added this new attribute to the table and the form on TestPage.jspx
    (3) I implemented the executeQuery() method in DeptViewImpl.java like this:
    public class DeptViewImpl extends ViewObjectImpl
         public void executeQuery()
              Locale vLocale = getApplicationModule().getSession().getLocale();
              System.out.println("DeptViewImpl.executeQuery()"
                   + " : getName() = " + getName() + ", vLocale = " + vLocale);
              setLanguageBVar(vLocale.getLanguage());
              super.executeQuery();
    }(4) If I run TestPage.jspx in JDeveloper, my "translated Dname" column shows "translated data" with suffix "(en)".
    (5) If I click on "Italian", all the labels change, but my "translated Dname" column still shows "translated data" with suffix "(en)".
    (6) After that I added a button to execute "DepartmentListIterator" using an "Execute" binding.
    (7) Again, as in (4), I run the page and see the same behaviour and this output on the console:
    DeptViewImpl.executeQuery() : getName() = DeptView, vLocale = en
    DeptViewImpl.executeQuery() : getName() = DepartmentList, vLocale = en(8) Again, as in (5), I click on "Italian" and see the same behaviour (no extra output on the console in this step).
    (9) If I click on the "ExecuteDepartmentListIterator" button, no "translated data" changes on the page, although this line is added on the console:
    DeptViewImpl.executeQuery() : getName() = DepartmentList, vLocale = itThe modified version of this application, as described here, is available at (check README.txt):
    http://verveja.footsteps.be/~verveja/files/oracle/ChangeLanguageInTheUIForData-v0.01.zip
    question:
    How can I make this application show "translated data" when changing the UI Locale, as in step (5).
    However it is important that a solution for this would be as "non-intrusive" as possible because I would like to be able to use it in an application that has lots of translated data and where the user should be able to change his preferred language on each page.
    many thanks
    Jan Vervecken

    Thanks for your reply Steve.
    In your updated testbindlocale.zip example, the buttons "Italian" and "Inglese" behave as expected. The "TranslatedDname" column has the correct translated data.
    So, I modified the example in ChangeLanguageInTheUIForData-v0.04.zip, in a similar way an moved up the call to "super.prepareRender(lfContext)" before the check on the Iterator Bindings in the current Binding Container, like this:
      public void prepareRender(LifecycleContext lfContext) {
        App app = (App)ELHelper.get("#{App}");
        Locale preferredLocale = app.getPreferredLocale();
        UIViewRoot uiViewRoot = FacesContext.getCurrentInstance().getViewRoot();
        System.out.println("CustomFacesPageLifecycle.prepareRender()"
          + " : preferredLocale = " + preferredLocale
          + ", uiViewRoot.getLocale() = " + uiViewRoot.getLocale());
        boolean changedLocale = false;
        if (preferredLocale == null) {
            app.setPreferredLocale(uiViewRoot.getLocale());
        } else {
            if (preferredLocale != uiViewRoot.getLocale()) {
    //        if (!preferredLocale.equals(uiViewRoot.getLocale())) {
                System.out.println("CustomFacesPageLifecycle.prepareRender()"
                  + " : preferredLocale = " + preferredLocale
                  + ", uiViewRoot.getLocale() = " + uiViewRoot.getLocale()
                  + " : different so the Locale has changed");
                uiViewRoot.setLocale(preferredLocale);
                changedLocale = true;
        super.prepareRender(lfContext);
              if (changedLocale)
                   DCBindingContainer vDCBindingContainer =
                        (DCBindingContainer)lfContext.getBindingContainer();
                   ArrayList vIterBindingList = vDCBindingContainer.getIterBindingList();
                   for (Object vIterObject : vIterBindingList)
                        JUIteratorBinding vJUIteratorBinding =
                             (JUIteratorBinding)vIterObject;
                        ViewObject vViewObject = vJUIteratorBinding.getViewObject();
    //                    if (vViewObject.getVariableManager().findVariable("LanguageBVar") != null)
                        if (vViewObject instanceof SessionLocaleBasedVO)
                             System.out.println("CustomFacesPageLifecycle.prepareRender()"
                                  + " : calling executeQuery()"
                                  + " : preferredLocale = " + preferredLocale
                                  + ", uiViewRoot.getLocale() = " + uiViewRoot.getLocale());
                             vViewObject.executeQuery();
      }(h1) If I run TestPage.jspx, my "translated Dname" column shows "translated data" with suffix "(en)" and I see this output on the console:
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    DeptViewImpl.executeQueryForCollection() : getName() = DepartmentList, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en : different so the Locale has changed
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = en, uiViewRoot.getLocale() = en
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = en, uiViewRoot.getLocale() = en
    DeptViewImpl.executeQueryForCollection() : getName() = DepartmentList, vParamNV[0] = LanguageBVar, vParamNV[1] = en(h2) If I click on "Italian", my "translated Dname" column shows "translated data" with suffix "(it)" and I see this output added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = en : different so the Locale has changed
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = it, uiViewRoot.getLocale() = it
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = it
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = it, uiViewRoot.getLocale() = it
    DeptViewImpl.executeQueryForCollection() : getName() = DepartmentList, vParamNV[0] = LanguageBVar, vParamNV[1] = it(h3) If I click on "Inglese", my "translated Dname" column shows "translated data" with suffix "(en)" and I see this output added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = it
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = it : different so the Locale has changed
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = en, uiViewRoot.getLocale() = en
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = en, uiViewRoot.getLocale() = en
    DeptViewImpl.executeQueryForCollection() : getName() = DepartmentList, vParamNV[0] = LanguageBVar, vParamNV[1] = enSo, this seems to behave similar to your updated testbindlocale.zip example.
    about determining whether the Locale has changed
    Consider this scenario ...
    (i1) Run TestPage.jspx and the "translated Dname" column shows "translated data" with suffix "(en)", the same as in (h1).
    (i2) Select a different row in the table, and click the "Edit Number on AnotherPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en : different so the Locale has changed
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = en, uiViewRoot.getLocale() = en
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = en(i3) Without entering an "Example Number ...", just click the "Update and Back to TestPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en
    oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[20 ] ... and the "JBO-35007: Row currency ..." message also shows up on the page.
    (i4) Click the "Update and Back to TestPage" button again to return to the "start page".
    If I try a scenario similar to "i1 to i4" where I do provide an "Example Number ..." in step (i3), the first row gets updated instead of the one I selected in step (i2).
    To imporve this behaviour I replaced this line ...
            if (preferredLocale != uiViewRoot.getLocale()) {... with this line ...
            if (!preferredLocale.equals(uiViewRoot.getLocale())) {And after that, a scenario like "i1 to i4" behaves like this:
    (j1) Run TestPage.jspx and the "translated Dname" column shows "translated data" with suffix "(en)", the same as in (h1) and (i1). But only this output is added on the console:
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    DeptViewImpl.executeQueryForCollection() : getName() = DepartmentList, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en(j2) Select a different row in the table, and click the "Edit Number on AnotherPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en(j3) Without entering an "Example Number ...", just click the "Update and Back to TestPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en ... and no message on the page, just returning to the "start page".
    If I try a scenario similar to "j1 to j3" where I do provide an "Example Number ..." in step (j3), the correct row is updated.
    But, if I precede a scenario like "j1 to j3" with an explicit language change, things go wrong again.
    (k1) Run TestPage.jspx and the "translated Dname" column shows "translated data" with suffix "(en)", the same as in (h1), (i1) and (j1).
    (k2) Click on "Italian", the "translated Dname" column shows "translated data" with suffix "(it)", similar to step (h2).
    (k3) Select a different row in the table, and click the "Aggiorna Numero con AnotherPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = it
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = en : different so the Locale has changed
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = it, uiViewRoot.getLocale() = it
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = it(k4) Without entering an "Campo Numerico ...", just click the "Aggiorna e Ritorna a TestPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = it
    oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: JBO-35007: La valuta della riga è cambiata da quando è stata visualizzata linterfaccia utente. La chiave di riga prevista era {0}. ... and the "JBO-35007: La valuta della riga ..." message also shows up on the page.
    (k5) Click the "Aggiorna e Ritorna a TestPage" button again to return to the "start page".
    see http://verveja.footsteps.be/~verveja/files/oracle/ChangeLanguageInTheUIForData-v0.05.zip (check README.txt)
    So, ...
    It looks like some "row currency issues" remain with this approach.
    regards
    Jan

  • Issue with Steve Muench's latest eg. How to resolve it?

    I have gone through the example "Compelling Dialog" By Steve Muench. Which is available at below link
    "http://www.oracle.com/technology/oramag/oracle/10-jul/o40frame.html";
    This example is perfectly good even great. There are two issues with this example which i have found and need a solution for those
    1. Any LOV or error message that opens from the popup is confined within the pop-up window. Resulting in ugly looks and a tedious way to maneuver. How to work this out?
    2. I don't want to give any width or height for this popup. It should adjust as per the required width of the fields.
    I have issues with above mentioned two problems. Can any of you come up with the solution of above two problem.
    I am working with JDEV11.1.1.2.0 with ADF11g
    Thank You in advance

    I have had exactly the same problem now with two mini iPads.  Everything was tried; 1) restarting; 2) restoring factory settings etc.  NONE worked.  Eventually Apple agreed to replace it.  I have had the replacement now for two to three months and exactly the same thing is happening again. So off to Apple tomorrow to get another replacement.
    I am quite a heavy user of the iPad so wonder if this is something to do with the fault.
    It is so frustrating as sometimes reset works, and then after 10/20/30/40 minutes (you pick) it goes unstable again.

  • Error while running the tutorial posted by Steve Muench

    Hi Guys,
    I have been trying to run the tutorial published by Steve Muench on October 9 2006. I've followed all the steps as specified in the tutorial.
    Chapter 3.4:Run the Application, should supposed to compile and run my application using stand-alone embedded OC4J. It was compiled witout any error. But gave me the following error while running the application.
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\oracledevday\jdeveloper\jdev\system\oracle.j2ee.10.1.3.39.14\embedded-oc4j\config>
    C:\oracledevday\jdeveloper\jdk\bin\javaw.exe -client -classpath C:\oracledevday\jdeveloper\j2ee\home\oc4j.jar;C:\oracledevday\jdeveloper\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\oracledevday\jdeveloper\jdev\system\oracle.j2ee.10.1.3.39.14\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    2006-10-12 22:47:17.250 NOTIFICATION JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    2006-10-12 22:47:17.265 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    2006-10-12 22:47:22.609 ERROR J2EE HTTP-00004 Internal error raised tyring to instantiate web-application: webapp defined in web site OC4J 10g (10.1.3) Default Web Site. Application: datatags does not exist. Error creating Web application: webapp
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 14015 ms.
    Target URL -- http://10.10.10.10:8988/MyDemo/faces/pages/EmployeesTable.jspx
    06/10/12 22:47:22 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
    22:47:26 WARN (Digester) -[ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/EmployeesTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/DepartmentsTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/LocationsTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/CountriesTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/RegionsTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/JobsTable.jspx)
    2006-10-12 22:47:29.546 TRACE Setting JAZN Config property ...
    2006-10-12 22:47:29.625 NOTIFICATION ---- JAZNSecurityContext.getUserPrincipal(): NULL
    2006-10-12 22:47:32.015 NOTIFICATION ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    22:47:32 DEBUG (JhsPageLifecycle) -Executing prepareModel, page=/pages/EmployeesTable.jspx, pagedef=EmployeesPageDef
    22:47:32 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
    22:47:32 DEBUG (BreadcrumbStack) -Adding breadcrumb to stack: "Employees" (/pages/EmployeesTable.jspx)
    22:47:32 DEBUG (JhsPageLifecycle) -Executing prepareRender, page=/pages/EmployeesTable.jspx, pagedef=EmployeesPageDef
    22:47:32 DEBUG (BreadcrumbStack) -Breadcrumb already on stack; rolling back the stack
    22:47:32 DEBUG (BreadcrumbStack) -Adding breadcrumb to stack: "Employees" (/pages/EmployeesTable.jspx)
    2006-10-12 22:47:34.468 ERROR
    Please advise and let me know if you need any other information from me.
    Thanks,
    Magesh.

    Thanks Steven.
    That makes sense. Is there anything I can do to make this demo work without de-installing 10.1.3.1 Preview? Or If I also install 10.1.3.0.4 with SU5 on another folder, does that affect my 10.1.3.1 Preview version?
    I'm using 10.1.3.1 Preview version to learn Oracle's SOA suite.
    Thanks again,
    Magesh.

  • Servlet problem: (Shay Shmeltzer / Steve Muench / Frank Nimphius)

    Dear sirs... (Shay Shmeltzer / Steve Muench / Frank Nimphius)
    I hope you can give me an answer.
    I created an ADF UIX application using JDeveloper 10.1.2. I have created a servlet to download files. my problem is that it works just fine using jdeveloper, while when deployed into oracle application server it causes errors.i am calling this servlet by storing filename and data in the session, then sending redirect request to the browser.
    the servlet code is:
    package view;
    import java.io.OutputStream;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    public class FileDownload extends HttpServlet
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    try
    String DownloadFileName=(String) request.getSession().getAttribute("downloadfilename");
    byte data[]=(byte []) request.getSession().getAttribute("downloadfiledata");
    if (DownloadFileName==null)
    return;
    request.getSession().removeAttribute("downloadfilename");
    request.getSession().removeAttribute("downloadfiledata");
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment;filename="+DownloadFileName);
    response.setContentLength(data.length);
    OutputStream OS=response.getOutputStream();
    OS.write(data);
    catch (Exception e)
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    try
    String DownloadFileName=(String) request.getSession().getAttribute("downloadfilename");
    byte data[]=(byte []) request.getSession().getAttribute("downloadfiledata");
    if (DownloadFileName==null)
    return;
    request.getSession().removeAttribute("downloadfilename");
    request.getSession().removeAttribute("downloadfiledata");
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment;filename="+DownloadFileName);
    response.setContentLength(data.length);
    OutputStream OS=response.getOutputStream();
    OS.write(data);
    catch (Exception e)
    and the error is :
    java.lang.IllegalStateException: Response has already been committed
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1902)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:213)
    this error is stored in the log file. if i am running this code from JDeveloper I can download the files using either FireFox or Internet Explorer without any error.
    but if i am running this code using Oracle Application Server 10g Realse 2, i can not download the files using either FireFox or IE.
    so i created another solution, instead of redirecting from a datapage into the servlet, i put the following code in a data page as follows:
    public void onDownload(DataActionContext ctx)
    String DownloadFileName=getfilename();
    byte data[]=getdata();
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment;filename="+DownloadFileName);
    response.setContentLength(data.length);
    OutputStream OS=response.getOutputStream();
    OS.write(data);
    OS.flash();
    this time the application works fine when deployed into Oracle Application Server if you use FireFox, but if you use IE, it causes problem, i can not save the file or view it.
    what is the problem?
    how can i fix this?
    i am certin that the second method is not correct and it should not be used.
    thanks for everyone in advance
    best regards

    Dear Sir...
    Thanks alot for your replay
    regarding the reset method. Itried it and it does not give any good.
    I discovered the following problem:
    If you are redirecting from with struts dataaction page to the servlet, you get the error
    Otherwise if you called the servlet from directly or redirected to a servlet from within a servlet, you get no problem.
    can any one help me please??
    Is it possible that the problem is in IE itself? The file is downloaded perfectly fine with firefox(but the error log still appear)?
    best regards

  • For those who used the solution by Steve Muench,Dynamic JDBC Credentials

    hi every body
    is there any body used the solution by Steve Muench, Dynamic JDBC Credentials .
    thanks
    Yaser
    Edited by: 842127 on Mar 13, 2011 9:24 AM

    Hi,
    in the login page i have a button to make login which work perfect
    How can you say ?
    Whenever i click any control in the login page i see this message invalid username/passowrd . i do not why i face this problem ?I have tried changing the username,password and database using http://www.oracle.com/technetwork/developer-tools/jdev/dynamicjdbchowto-101755.html which works perfect.
    refer my thread
    Changing the database for a particular user session
    Regards,
    Santosh
    Edited by: Santosh Vaza on Mar 17, 2011 11:29 AM

  • Q&A interview with Steve Muench published

    Steve Muench has been kind enough to allow me to web-publish a Q&A interview with him that I wrote and was published in 2006 AUSOUG Summer Foresight magazine edition.
    The article has been published here for your reading pleasure:
    http://one-size-doesnt-fit-all.blogspot.com/
    Regards,
    CM.

    nice and keep up the good work
    fadi hasweh
    http://oracle-magic.blogspot.com/
    Oracle is not Magic, it just takes years of experience

  • BeginRequest on previously used DataControls (for Oracle guys/Steve Muench)

    Hi,
    We are using JDeveloper 10g (10.1.2.1.0) and ADF BC+JSP in our application.
    In our developer team, in tuning tasks we have detected, that all DataControls that were been used be the user in the past (same session) are activated each request (beginRequest) that user realizes, activated and taking an AM out of the pool and maybe this AM not will be used in this request, and maybe neither in any other future request from the user. Then we have that each AM that were used in the past by the user, must will be activated/passivated if pool is small size limited or pool must will be oversized (server big load situations).
    When the user ends using this AM, we call its resetState method, like is recommended by Steve Muench at
    Re: application modules and a logoff event (for Steve Muench)
    but the next ones user requests will make the ADFBindingFilter call beginRequest on all previous AM anyway. Seems that initially the user BindingContext contains references to DataControls (DCDataControlReference) but when the user uses/gets an DataControl its reference is replaced with the real DataControl instance (DCJboDataControl), and seems that DCJboDataControl.beginRequest, gets an AM instance out of pool, I think that this will make that the AM will not be expired/cleared by the PoolMonitor.
    We have hard coded a test in our application that seems to work with the normal ADF and application lifecycle (but I don't like this test too much, too much low level coding), basically the DataControl is replaced by its reference when the user ends using it.
    And now the questions. Is it a normal situation? Why we must suppouse that all the AM/DataControl previously used by the user will be used in the current request? There's a normal way to do this, maybe a method that when the DataControl is marked with a flag releases it till the next time user needs it (I'd try release(int) and it didn't works in this way)? Any suggestions/explanations about this?
    Comments will be very well received. Thanks in advanced.

    Hi Steve,
    firstly, thank you very much for your so fast answer.
    Ok, I'll open a TAR in metalink. I've searched for the bug# 4566186 in metalink, but I didn't found nothing in metalink for this bug number.

  • Erroneous link to blog Steve Muench

    Don't know if this is the right place to tell, but on http://www.oracle.com/technology/tech/java/index.html the link called "Steve Muench" actually points to Chris Chalk's blog.

    It is; thanks for letting us know.
    Cheers, OTN

  • Can't download file from Steve Muench not yet documented examples

    I'm trying to download example 64 - Recalc Sum of Salary at the view object level but the link is broken? Can someone provide me the file?
    Thanks.

    Thanks for reporting the issue. We have been able to reproduce it at our end and shall let you know when this gets fixed in one of the future releases.
    Thanks,
    Adobe Reader Team

Maybe you are looking for

  • Using Wifi in Japan

    Will my ipt work in japan if wifi is available?

  • FCP Project File & other Editing programs

    G'day, I apologise if this has been brought up earlier but this is a question I've had for a while. FCP projects obviously maintain the file extension .fcp for the file projects. My question is can FCP open, use and edit other file projects such as t

  • What is the best way to Insert BLOB in DB?

    Hi, We are having a Table containing BLOB datatype & trying to populate it using JDBC. But simple insert is not allowing us to insert the data into table. As the alternative we used to firstly insert a empty_blob & later on update it using FOR UPDATE

  • Hyperion Financial Reports Studio - Activex error 429

    Greetings Everyone, I have recently installed Hyperion Financial Reports Studio 11.1.2.1 on a 64 bit Windows 7 machine using the standalone installer (FinancialReportingStudio.exe) After the install, when attempting to launch the client we get the cl

  • Batch management in production order for WM managed components

    Hi Experts, Iam having WM managed components in my production order which are batch managed as well. I have to do batch determination for these WM managed components. I would like to know the steps involved in it and the required configuration. Can a