ADF Faces  ADF BC

its nice to know ADF 11g is released. I am fan of ADF, yet "why are'nt there enough ADF faces/BC related jobs in job market ? Isnt ADF been around for more than 8 years (including BC4J) now ? search and u find hardly 3 - 4 jobs here and there.

I guess it all depends on where are you looking.
Check this out: http://www.indeed.com/jobs?q=ADF&l=
or this: http://www.indeed.com/jobs?q=JDeveloper&l=
In general I think the Job trend shows we are in a decent position compared to some other Java frameworks:
http://www.indeed.com/jobtrends?q=JDeveloper%2C+ADF%2C+SEAM%2C+Struts2%2C+Wicket&l=

Similar Messages

  • JSF/ADF Faces - ADF-BC example/howto?

    Hi,
    Background:
    ==========
    I know that ADF-BC databinding is not included in the JDev 10.1.3 preview.
    I read and searched nearly all howto's, examples, blogs on ADF-Faces available on the net.
    For the past months I learned how to use the ADF-BC with JClient.
    This convinced me to use the ADF-BC and it's binding features (a fantastic framework!!!!) for my model layer.
    I'm developping a web application.
    Most of the examples on ADF-Faces/JSF are on the View Layer.
    My question:
    ===========
    I read somewhere that JDev 10.1.3 production with drag and drop of ADF-BC databinding will be available only in the summer.
    Question 1:
    ==========
    I suppose that meanwhile it is still possible to use the ADF-BC as the model layer for JSF or ADF-Faces, but the databinding must be done manually, is this correct?
    Question 2:
    ==========
    If answer to 1) is yes.
    Where can I find a howto/best practice document that explains how to use ADF-BC with JSF/ADF-Faces in the backing beans?
    My purpose is to develop my code so that it will be "standard" / "compatible" with the production version of JDev 10.1.3.
    I prefer to use the de-facto JSF standard and code the bindings manualy instead of using Struts with available drag'n drop ADF-BC databinding.
    Your advice will be apreciated
    Frederic

    There is no such document for (1) because we are in the process of delivering design time support for ADF BC integration with ADF Faces, as you mentioned.
    Therefore, you could either continue with ADF UIX, ADFm, ADF BC for the time being, or else try out ADF Faces with session scope Managed Beans. In either case, you'll want to convert this later on, when JDev 10.1.3 completes its support for ADF Faces / ADF BC drag-and-drop integration.
    Kind Regards.

  • ADF Faces ADF BC PlSql ???

    Hi All,
    We have clarify (Oracle tables) and stored procedures ready. Using Jdev 10.1.3
    We want to write a simple form, that has several input textfields, selectSelectChoice etc.
    On form submit, we want to call this stored procedure from ADF BC.
    Can I achieve (call plsql) this using ADF Faces and ADF BC ?
    I guess, I can. Following is my action plan.
    Please correct me if I am wrong.
    1>As I said, we hace Clarify repository (5 Oracle Tables). We have PL Sql procedures ready. These has business logic in it. Some procedured return a REF cursor, some take IN parameters and return OUT parameters.
    2>I will create a database connection in Jdev to these 5 Clarify tabes.
    3>I will use Jdev wizards and create 5 ENTITY and 5 VIEW Objects. I will craeate a Application Module.
    4>I will drag and drop view objects (drop as InputText, SelectOneChoice, Tables Tree, Radio button etc etc etc etc ) from Data Control on my JSF - JSP pages. This will help me generate the UI super FAST.
    5>Now, on UI submits the View Object will interact with corresponding Enity objects.
    6>Now, as I said, I HAVE to use the PLSQL code that is ready to use. So, instead of the ADF default dehaviour, I will override the doDML method in the entity object as follows to call PlSql procedures.
    Modified Entity object code as below
    protected void doSelect(boolean lock) {
    if (lock) {
    this.handleStoredProcLock();
    else {
    this.handleStoredProcSelect();
    public void doDML(int operation, TransactionEvent e) {
    switch (operation) {
    case DML_INSERT: {
    handleStoredProcInsert();
    break;
    case DML_UPDATE: {
    handleStoredProcUpdate();
    break;
    case DML_DELETE: {
    handleStoredProcDelete();
    break;
    void handleStoredProcSelect() {
    CallableStatement st = null;
    try {
    String stmt = "BEGIN departments_pkg.do_select(?,?,?); END;";
    DBTransaction tr = getDBTransaction();
    st = tr.createCallableStatement(stmt,1);
    st.setLong(1,getDepartmentId().longValue());
    st.registerOutParameter(2,Types.VARCHAR);
    st.registerOutParameter(3,Types.NUMERIC);
    int rows = st.executeUpdate();
    populateAttribute(DEPARTMENTNAME,st.getString(2),true,false);
    populateAttribute(LOCATIONID,st.getBigDecimal(3),true,false);
    catch (SQLException s) {
    throw new JboException(s);
    finally {
    try {
    if (st != null) st.close();
    catch (SQLException s) { /* ignore */}
    void handleStoredProcInsert() {
    CallableStatement st = null;
    try {
    String stmt = "BEGIN departments_pkg.do_insert(?,?,?); END;";
    DBTransaction tr = getDBTransaction();
    st = tr.createCallableStatement(stmt,1);
    st.setLong(1,getDepartmentId().longValue());
    if (getDepartmentName() != null) {
    st.setString(2,getDepartmentName());
    else {
    st.setNull(2,Types.VARCHAR);
    if (getLocationId() != null) {
    st.setLong(3,getLocationId().longValue());
    else {
    st.setNull(3,Types.VARCHAR);
    int rows = st.executeUpdate();
    catch (SQLException s) {
    throw new JboException(s);
    finally {
    try {
    if (st != null) st.close();
    catch (SQLException s) { /* ignore */}
    7> In short, above route lets me call Ready Stored Procedures and I am able to speed up the development as well (Because, I am generating the Entity and View Objects based on tables and able to drag drop the Views from Data Control on my JSF - JSP UI.
    I can deploy this code in App Server 10.1.2.0.2 and DONE !!
    What do you guys think ? Is this a good approach to take towards ADF Faces, ADF BC and Pl Sql ??
    thanks,
    pp

    Hi,
    I don't see an objection to this strategy. ll that can be said aboutthe use of PLSQL in ADF BC is mentioned in the documentation
    http://download-uk.oracle.com/docs/html/B25947_01/bcadvgen005.htm#sm0297
    Frank

  • ADF Faces + ADF BC : how to pass an url parameter to a backend business ser

    Hi,
    I'm using latest JDev studio version SU 3.
    My project is using ADF Faces with BC4J in the service layer.
    I have a backend application module which exposes a method taking a String parameter as an input (ex: void setUsername(String username))
    I need to have a jspx page which reads a parameter passed in the url (http://localhost/faces/registerUser.jspx?username=john) and send it to the backend service method when a submit is raised on a clicked button.
    It's pretty simple when using inputtext for example but not obvious if I want to use urm param instead of inputtext.
    How do I do this ?
    Thanks

    Hi,
    Thanks a lot for your answers.
    The link http://www.it-eye.nl/weblog/2006/06/12/passing-a-url-parameter-to-model-using-adf/ is no more reachable.
    The following EL expression work for displaying the parameter inside an outputText component :
    #{facesContext.externalContext.requestParameterMap[’yourParameter′]}
    The parameter is not sent to the business service when the button is clicked.
    Thanks,
    Seb.

  • ADF faces (adf-faces-impl.jar) on Glassfish not being deleted on undeploy

    I'm using Glassfish milestone 48 (Windows) and Oracle's ADF Faces in a basic web application. When undeploying an already deployed application the adf-faces-impl.jar is not being deleted from the applications WEB-INF/lib folder on the server.
    Google searches have led me to believe that this is because the file was locked at the time the app was being undeployed. All my application does is display an ADF Faces date component using the ADF taglib. There is no programming logic built in it (yet). So I'm guessing there is some issue with ADF Faces and Glassfish. I verified this same error when using the ADF Faces demo war application that is packaged with the ADF Faces download.
    Stopping Glassfish and starting it up again solves this file locking issue. But this is far from ideal in a development environment where we constantly redeploy apps.
    Any help on how to fix this would be of immense help.
    -sud

    Here is a stack trace from the point where the jar file is opened during deployment of adf-faces-impl to GlassFish. On the surface, it looks as if a stream might be opened but not closed in the ADF code?
    - Tim
    domains\domain1\applications\j2ee-modules\adf-faces-demo\WEB-INF\lib\adf-faces-impl-SNAPSHOT.jar
    java.util.zip.ZipFile.<init>(ZipFile.java:242)
    java.util.jar.JarFile.<init>(JarFile.java:132)
    java.util.jar.JarFile.<init>(JarFile.java:70)
    sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:56)
    sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:41)
    sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:63)
    sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:102)
    sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:124)
    java.net.URL.openStream(URL.java:1007)
    oracle.adf.view.faces.bean.FacesBeanFactory._initializeBeanTypes(FacesBeanFactory.java:125)
    oracle.adf.view.faces.bean.FacesBeanFactory._initializeBeanTypes(FacesBeanFactory.java:116)
    oracle.adf.view.faces.bean.FacesBeanFactory.<clinit>(FacesBeanFactory.java:151)
    oracle.adf.view.faces.component.UIXComponentBase.createFacesBean(UIXComponentBase.java:108)
    oracle.adf.view.faces.component.UIXComponentBase._init(UIXComponentBase.java:1192)
    oracle.adf.view.faces.component.UIXComponentBase.setRendererType(UIXComponentBase.java:332)
    oracle.adf.view.faces.component.UIXComponentBase.<init>(UIXComponentBase.java:102)
    oracle.adf.view.faces.component.UIXColumn.<init>(UIXColumn.java:159)
    oracle.adf.view.faces.component.core.data.CoreColumn.<init>(CoreColumn.java:215)
    oracle.adfinternal.view.faces.renderkit.core.xhtml.table.SpecialColumnRenderer.<clinit>(SpecialColumnRenderer.java:17)
    oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer.<init>(TableRenderer.java:877)
    oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.<init>(DesktopTableRenderer.java:48)
    oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.<init>(DesktopTableRenderer.java:60)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    java.lang.Class.newInstance0(Class.java:350)
    java.lang.Class.newInstance(Class.java:303)
    com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1308)
    com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1379)
    com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:774)
    com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:529)
    org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
    org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
    com.sun.enterprise.web.WebModule.start(WebModule.java:292)
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:659)
    com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1478)
    com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1143)

  • NPE upon logout (ADF Faces / ADF BC) 10.1.3.0 SU 5

    Hi all,
    I have some code that I use to log out from an ADF Faces appliction. The way that it works is that the "logout" link uses a dialog to ask the user if they really want to log out. If they do, the return listener handles the logout like this:
        if (rv.equals("Logout:Y"))
          ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
          HttpServletResponse response = null;
          HttpSession session;
          if (ectx != null)
            response = (HttpServletResponse)ectx.getResponse();
            if (response != null)
              session = (HttpSession)ectx.getSession(false);
              if (session != null)
                try
                  session.invalidate();
                catch (Exception e)
                  e.printStackTrace();
                  // Ignore this exception - always happens
          try
            response.sendRedirect(ectx.getRequestContextPath() + "/index.jspx");
          catch (IOException e)
            System.out.println("ignoring error");
        }When the code hits the session.invalidate() call, the following exception occurs (note that my code explicitly ignores it - if I put an e.printStackTrace(system.out), I get this:)
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
         at oracle.jbo.JboException.<init>(JboException.java:346)
         at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:76)
         at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:43)
         at oracle.adf.model.BindingContext.get(BindingContext.java:491)
         at oracle.adf.model.binding.DCBindingContainer.release(DCBindingContainer.java:1910)
         at oracle.adf.model.binding.DCDataControl.release(DCDataControl.java:1551)
         at oracle.adf.model.bc4j.DCJboDataControl.release(DCJboDataControl.java:471)
         at oracle.adf.model.binding.DCDataControl.release(DCDataControl.java:1482)
         at oracle.adf.model.BindingContext.release(BindingContext.java:284)
         at oracle.adf.model.servlet.HttpBindingContext.valueUnbound(HttpBindingContext.java:36)
         at com.evermind.server.http.EvermindHttpSession.destroy(EvermindHttpSession.java:458)
         at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:400)
    etc..etc...etc... snippedIs this normal and expected? Do I need to clean something else up before logging out? When I ignore this exception, everything works just fine and dandy, so it may not be something to worry about, but I tend to wonder any time an exception is thrown, especially an NPE.
    Any ideas appreciated.
    Regards,
    John

    John,
    seems to be related to teh dialog use. Can you try the same logic from a logout button on a page to see if it also throws the exception ? I tried without dialog and it works fine.
    Btw, I changed
    String ctxpath = ectx.getRequestContextPath();
    try
    response.sendRedirect(ctxpath + "/indx.jsp");
    Also I redirected to a plain JSP file and not another JSF page (just in case you do this)
    Frank

  • Difficulty with ADF Faces/ADF Essentials and Glassfish

    Hi all,
    I've got a web application written with ADF Faces, and it runs just fine within jDeveloper 11.1.2.3 but when I deploy it to Glassfish 3.1.2 (with ADF Essentials installed) something curious happens.
    My application has no difficulty performing database reads, but when it tried to write to the database and commit, it fails.
    I've seen only a couple of other people with this problem, and none of them seem to have found a solution - so I'm assuming it's something stupid that I'm doing or misunderstanding.
    Here is the log file:
    [#|2013-11-10T11:45:17.601-0500|WARNING|glassfish3.1.2|oracle.adf.controller.faces.lifecycle.Utils|_ThreadID=79;_ThreadName=Thread-2;|ADF: Adding the following JSF error message: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
    java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
      at oracle.jbo.server.BaseSQLBuilderImpl.isSQLRecoverableException(BaseSQLBuilderImpl.java:4575)
      at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3380)
      at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
      at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
      at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
      at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
      at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
      at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
      at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
      at app.AppModuleImpl.commitOperation(AppModuleImpl.java:50)
      at com.methods.lrc.view.VendorBean.createPaymentReceived(VendorBean.java:509)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.sun.el.parser.AstValue.invoke(AstValue.java:254)
      at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
      at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
      at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at com.methods.lrc.view.ApplicationSessionExpiryFilter.doFilter(ApplicationSessionExpiryFilter.java:42)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
      at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:724)
    Here is the method where it fails:
        public String createPaymentReceived() {
            AppModuleImpl appModule = this.getAppModule();
            ViewObjectImpl paymentReceivedVOI = appModule.getPaymentsReceivedView3();
            Row paymentRow = paymentReceivedVOI.createRow();
            paymentRow.setAttribute("CheckNumber", prCheckNumber);
            paymentRow.setAttribute("PaymAmount", totalSelectedValue);
            paymentRow.setAttribute("PaymentComment", prComment);
            paymentRow.setAttribute("PaymentDate", prPaymentDate);
            paymentRow.setAttribute("PaymentType", prPaymentType);
            paymentRow.setAttribute("TrackId", prTrackId);
            appModule.commitOperation();
            DBSequence paymentsReceivedId = (DBSequence)paymentRow.getAttribute("PaymentsReceivedId");
            Iterator selectionIt = unpaidPaymentItemsTable.getSelectedRowKeys().iterator();
            while (selectionIt.hasNext()) {
                Object rowKey = selectionIt.next();
                unpaidPaymentItemsTable.setRowKey(rowKey);
                int index = unpaidPaymentItemsTable.getRowIndex();
                JUCtrlHierNodeBinding row = (JUCtrlHierNodeBinding)unpaidPaymentItemsTable.getRowData(index);
                Row selectedRow = row.getRow();
                selectedRow.setAttribute("PaymentsReceivedId", paymentsReceivedId.getSequenceNumber());
                selectedRow.setAttribute("PaymentDate", prPaymentDate);
            appModule.commitOperation();
            prCheckNumber = null;
            totalSelectedValue = 0;
            prComment = null;
            prPaymentDate = new Date();
            prTrackId = null;
            prPaymentType = "K";
            refreshTableIterator("VendorPaymentItemsView1Iterator");
            refreshTableIterator("VendorPaymentsReceived1Iterator");
            return null;
    it fails on the second appModule.commitOperation() (which I've bolded)
    if anyone can give a clue to what I'm misunderstanding I'd really appreciate it.  I'm sure that if I had the course for BaseSQLBuilderImpl.java and/or DBTransactionImpl it would be easier to see what the actual error was - unfortunately java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception doesn't tell me much of anything.
    Thanks so much to anyone who's got the time/knowledge to help.
    Bob

    That doesn't seem to make any difference.  It works just fine within jDeveloper, but as soon as I deploy it, I can no longer write to the database.
    A few more details that seem relevant - it's not only this method that fails.  Even on screens which were designed without any backing code (where I used the wizards to create my forms and commit buttons) the same exact thing happens.
    I've also replicated this behavior in Tomcat.
    Part of what is happening is that something is throwing a NoClassDefFoundError, which is caught by a catch (Throwable thEx) clause within DBTransactionImpl.  This passes the Error to a method (isSQLRecoverableException) within the BaseSQLBuilderImpl class.  The problem is that this method takes only Exceptions for arguments, and NoClassDefFoundError is not a subclass of Exception (only of Throwable.)
    It seems obvious to me that there's somewhere a jar missing, but I cannot find it without knowing which class was not found.

  • Best way to autofill related fields (ADF Faces - ADF BC )

    Hi,
    I have the following database structure:
    Restaurant (RestId*, RestName, ..)
    |1
    |
    |n
    Categories (CatId*, RestId (FK), CatName, CatOrder,..)
    I am trying to implement the Categories page as follows (sorry for the layout but was the best I could do with text based interface...):
    Restaurant
    | RestId | | RestName |
    Categories List
    Select Category Name
    | o | CatId#1 | CatName#1 |
    | o | CatId#2 | CatName#2 |
    Category Detail
    | CatId |
    | CatName |
    | CatOrder |
    | Commit | | Rollback | | Create | | Delete |
    Autofill Functionality:
    1. After leaving the RestId input field RestName and Categories List gets populated. (For this I will be using the autoSubmit feature).
    2. If the user enters a wrong RestId (not in table restaurant) an error should be raised and user shouldn't be allowed to leave RestId field until it has the correct value.
    Question:
    Which is the best way of achieving such functionality having most part of the code at the ADF BC Layer ? It would be nice to have all validations inferred as they are when you define them at the Entity Object Layer.
    Thanks,
    Claudio.

    see section 9.6.2 "Implementing an Efficient Existence Check" to perform your existence check validation.

  • What about security in adf faces application ?

    It seem that the documentation has a little bit changed about security for adf faces application.
    SRDemo J2EE sample application only implemented the security at the web container and may be for the session beans (don't remember) by using security-role and security-constraint in web.xml configuration file.
    It seem that the documentation recommand now to implement adf security and didn't find anymore the reference to the standard j2ee security implementation.
    We found also that the security constraints checked by the web container was sometimes ignored and the container didn't ask us to login before displaying a page.
    Is ADF security a clear Oracle recommandation for ADF Faces application ?
    What about j2ee security for this type of application (why it is not recommended to use it) ?

    Hi,
    there is no single recommedation about security because security ideally is applied on several levels to implement security in depth. Container managed security with J2EE is a good option to secure page access and - if using EJB - to propagate the user identity for method level access control.
    Using ADF Security, which is security added to the binding layer based on JAAS, a second layer of the security onion becomes available that allows you to define which user is allowed to perform which operation on an iterator or attribute binding. This goes beyond of what container managed security can do for you.
    The thrid layer is business layer security and eventually database security.
    For Oracle Open World we will have a developmengt track and one of the presentation I am giving with Ric Smith from our team is about end-to-end application security for ADF Faces, ADF, ADF BCor TopLink/EJB and the Oracle database.
    The plan is to also write this up in a paper, but this would come late because of other priorities I have on my plate. So attending OOW probably is the best option for you to get the big picture
    Frank

  • Weblogic Portal 10.3.5 using JSF 1.2 portlets with ADF faces

    We are developing Portal site using Weblogic Portal 10.3.5 with JSF portlet 1.2 and ADF faces (ADF Application runtime 11.1.1.5 ). But the JSF portlets not supporting ADF faces. Please let me know how we use ADF faces in JSF portlet 1.2 in Weblogic Portal.

    Hi Murthy,
    We did a detailed analysis.
    (1) How do we add ADF taskflows, JSF in to weblogic portal desktop/pages? Do we create portlet out of JSF, and display on desktop/page? If this is the case, what about ADf task flows?
    --> Taskflows can be deployed as WSRP2.0 portlets. Note 2 options are there JSF page as portlet or taskflow itself as portlets.
    (2) How do we integrate weblogic user profiles and UUP (unified user profiles) with ADF and JSF?
    --> ADF Security can use Weblogic Server realm as the security provider. Entitlements in WLP will have to be provided based on Weblogic Server roles. In case you are using external LDAP then both can be integrated withe external LDAP
    (3) Can anybody shed some light which this better?
    (a) weblogic portal with JPF (Java page flows), NetUI --Legacy approach
    Pros:
    -Easy Development
    -Well tested integrated
    Cons:
    -Future support
    -Enhancements may not be available
    -Not really portable or standards based
    (b) weblogic portal with ADF, JSF?
    Pros:
    -If your on Oracle stack then great
    -Standards based
    Cons:
    -JSF Portlet bridge issues
    -ADF Faces does not work on IE6!
    Well what we are going for is JSR 286, Trinidad components (Supports IE6), JSF.
    Difficult choice.
    Venkat

  • How to minimize Client-Server Round-trip in ADF Faces application ?

    Hi All,
    We have just finished POC on our prototype of ADF Faces + ADF BC application. The POC Emphasizes on Bandwidth requirement.
    After receing the result from the communication provider, including : TCP packets send, Bytes sent from/to server and number of Client-Server Round-Trip.
    There are several part of the application that Must be tuned for the application to run on acceptable performance.
    Here is some page/ function that should be tuned :
    - First page, ADF Read Only Table with two images and some buttons, cause 5 round-trip
    - ADF Dialog Returning Value (as LOV), cause 4 Round-trips
    - On ADF Form, press Commit button, cause 3 Round-trips.
    So the question is :
    1) How to reduce round-trips on ADF Faces application ?
    2) How to minimize the bytes send from / To server on a specific user action ?
    Please give me some recommendation..
    Thank you very much,
    xtanto

    Hi Frank and Steve,
    Thank you for your reply.
    Yes Frank, what I mean by Round-Trip is the traffic between Client and the Server. And Yes, we will use VSAT where the latency is 1 - 1.5 second, so that round-trip matters significantly.
    What I will do is :
    - use minimal skin and No image at all
    - don't use Dialog for LOV because it requires AutoSubmit there.
    - Use 'Apply-Changes' button to do server-side validation before Commit.
    Then do the POC / testing again.
    Thank you,
    xtanto

  • Jdev101304 SU5 - ADF Faces - Web app deployment best practice|configuration

    Hi Everybody:
    1.- We have several web applications that provides a service/product used for public administration purposes.
    2.- the apps are using adf faces adf bc.
    2.- All of the apps are participating on javaSSO.
    3.- The web apps are deployed in ondemand servers.
    4.- We have notice, that with the increase of users on this dates, the sessions created by the middle tier in the database, are staying inactive but never destroyed or removed.
    5.- Even when we only sing into the apps using javasso an perform no transacctions (like inserting or deleting something), we query the v$sesisons in the database, and the number of inactive sessions is always increasing, until the server colapse.
    So, we want to know, if this is an issue of the configurations made on the Application Module's properties. And we want to know if there are some "best practices" that you could provide us to configure a web application and avoid this behavior.
    The only configurations that we found recomended for web apps is set the jbo.locking.mode to optimistic, but this doesn't correct the "increasing inactive sessions" problem.
    Please help us to get some documentation or another resource to correct configure our apps.
    Thnks in advance.
    Edited by: alopez on Jan 8, 2009 12:27 PM

    hi alopez
    Maybe this can help, "Understanding Application Module Pooling Concepts and Configuration Parameters"
    see http://www.oracle.com/technology/products/jdev/tips/muench/ampooling/index.html
    success
    Jan Vervecken

  • How to add adf faces in component pallete of jdeveloper 11g?

    how to add adf faces in component pallete of jdeveloper 11g?

    Hi,
    the replacement of ADF Faces HTML components in JDeveloper 11 is Trinidad. For existing applications, a migration path will be provided in JDeveloper 11 production. I wouldn't recommend configuring ADF Faces in JDeveloper 11.
    You an configure ADF Faces Components in JDeveloper 11 by :
    - Tools --> Manage Libraries
    - Create a User Library
    - select ADF Faces adf-faces-impl.jar
    - Enure the namespace is not af or afh but something different to not cnflic with teh ADF Faces RC components
    Note that adding the ADF Faces components to the component palette will not make them show in the ADF binding context menu nor will it automaticaly set up the web.xml file. The components are available as any other JSF library set
    Again, I wouldn't go this way ;-)
    Frank

  • "Developing Smart Web UIs with Ajax, JSF, and ADF Faces" example

    I'm trying to get this example (http://www.oracle.com/technology/pub/articles/cioroianu_jsfajax.html) to work within JDeveloper, during compilation I'm getting an error:
    C:\jptest\view\public_html\msgIndexResp.jsp
    Error(5): tags:property is not a registered tag in that namespace.
    C:\jptest\view\public_html\helloNameResp.jsp
    Error(5): tags:property is not a registered tag in that namespace.
    C:\view\public_html\ajaxCtrl.jsp
    Error(6): tags:response is not a registered tag in that namespace.
    Has anyone attempted at this example and ran into the same problem?
    Thanks
    -Wes

    There is no such document for (1) because we are in the process of delivering design time support for ADF BC integration with ADF Faces, as you mentioned.
    Therefore, you could either continue with ADF UIX, ADFm, ADF BC for the time being, or else try out ADF Faces with session scope Managed Beans. In either case, you'll want to convert this later on, when JDev 10.1.3 completes its support for ADF Faces / ADF BC drag-and-drop integration.
    Kind Regards.

  • Customizing ADF Faces Look & Feel. Some questions & suggestions

    Hi everybody,
    We are developing an application with ADF Faces using JHeadStart. For the moment, I am studying the way we must modify the JHS templates to adapt each element to our needs.
    As it's told in the JHeadStart Developer's Guide, there are two ways to customize Look & Feel:
    1) Modifying the templates
    2) ADF Skinning
    I'm using both methods, but I feel that thay are not good enough to adapt the L&F to our customer requirements.
    My main problem now is in the ADF Table customization. I want to use ADF Table because it offers us a lot of features that are not in the jsf table (the selection column, the table overflow...), and is very usefull combined with the generated JHS code. But at the same time, it doesn't offer a lot of functionality in the look & feel customization. Using JSF Table, I can set the CSS style for headers, rows, columns, the table, I can set the border, cellspacing and cellpadding. But I cannot do
    any of these thing (or at least, I don't see how) with the ADF Table.
    Our customer (a government) have a strict definition of the look & feel of his web applications. They want we use their CSS styles definition file, so they can modify at once the Look & Feel of all their applications. Modifying the L&F through skinning generate other styles, not use the style classes in our CSS (o so I think).
    So, the questions:
    1) There is any way to set the suitable styles for the ADF Table components (headers, rows)?
    1bis) Why, If I have defined a new skin, with only just a few selectors, some styles from oracle are applied? Maybe because the render kit in the 'adf-skins.xml' is "oracle.adf.desktop"? If it is true, how can I make that they are not used, I must implement a render kit or can I use another existent?
    2) Can I decide how looks the select column (for example a button instead of a radio button)? Can I decide where does it goes (right or left)?
    3) There is any way to hidden the text Show/Hide of the showDetail in the table (the tableOverflow), as I can change the icons through skinning? If it is not possible, How can I overwrite the text. I need it in Catalan, but it is shown in English for this locale. Where is the message bundle I should overwrite?
    4) There is any way to force a tree to start fully expanded?
    5) There is anywhere documentation about the javascript functions used in ADF and their meaning? I think for example in the previous question. If I knew which javascript function I should call for expand the tree and its parameters, I could put the call in the onload event of the body.
    6) I use a selectInputDate. I have skinned the launch-icon, and I would like to do a similar thing in the chooseDate that is opened in a new window. But It seems not to be affected for my skinning directives (if I put a chooseDate in the same page, its L&F follow the skinning rules I've defined). I don't know if this dialog is an ADF feature or a JHS generated feature.
    7) There is any way to keep unmodified the id I've choosed for a component? (I mean, an inputText with id="hello" in a form with id="form" will have in the HTML an id = "form:hello", but I would like it to be simply 'hello')
    8) How can I control the position and the size of a dialog (the chooseDate dialog or a dialog I've created)? In the cases I've been testing, it seems the dialog is forced to resize depending on the content. I would like to know if I can establish a fixed size.
    9) There is any way to open a non-modal dialog? (which I could keep open at the same time that another instance of the same dialog)
    For the moment, I think I have no more question. But give me time.... :-D
    The suggestion I've to do is basically more flexible components for a better customization (for example, the styles settings I've talked about previously). ADF components are nice and powerful, but I think they should generate pages that follow the tendencies in the web development: tableless pages (I cannot understand the utility of the objectSpacer existing the margins), use of CSS for layout...
    Any answer, comment or suggestion will be welcome.
    Carles.
    Message was edited by:
    cbios

    I have been able to make the UIX 2.2 and ADF Faces LAF look near identical by updating the oracle-desktop.xss file within UIX 2.2 as follows
    <!-- Change the accent color ramp to tan -->
    <style name="DarkAccentBackground">
    <!--<property name="background-color">#cccc99</property>-->
    <property name="background-color">#d2d8b0</property>
    </style>
    There are still some differences:
    1) A black line appears on the ADF Faces on the 'menu1' facet selected tab below the text. DON'T KNOW HOW TO REMOVE THIS FROM ADF Faces or add it to UIX 2.2!!!
    2) In UIX 2.2 a bulleted list uses the HTML <li> tag. In ADF Faces it doesn't use the HTML <li> tag rather it constructs the bulleted list using lower level HTML tags with the 'bullet' becoming an image, in my browser this means the disc is smaller in Faces. The motivation for this change I think is explained via this post. Since I have no control over how this specific HTML tag is rendered it forces me to replace the /adf/images/bltdscn.gif file in adf-faces-impl.jar with a larger disc!
    http://www.thescripts.com/forum/thread96839.html
    May update this again if there are other things I notice.

Maybe you are looking for

  • No Sync, weird download

    I have Windows XP Pro on my computer with Media Player, which is Version 9 or 10 (can't find the "About" to confirm that).  In the last three days, I have put a new 16GB micro SD from Sandisk in to take all my music onto it.  My Samsung Intensity 2 i

  • Time Capsule as Hard Drive for older iMac

    After upgrading to Snow Leopard on my MacBook, my family now has four laptops that can take advantage of time machine for wireless backups, so I want to buy time capsule to do that easily. Will I also be able to use it as a hard drive for an older no

  • So for the past two years I've shared an iTunes with my sisters. This year i want to take my iPhone off, but keep my music. How do I do this?

    So, for the past two years I've shared an account with my sisters. This year I got my own laptop and I want to take my device off that iTunes, but still keep the music I bought. How do I do this?

  • Mail Server Will Not Deliver Mail

    I can connect with to the mail sever with a mail client, and see delivered mail up to this past Wednesday, but any new mail sent to any account on the server seems to get swallowed up. Except for a single spam mail with the title "JavaChief Info Requ

  • Copy File Fails error

    I have a Pavilion dm4 and it is telling me that my Hard Drive is going to fail. The original operating system was Windows 7 (64bit), but I 'upgraded' to Windows 8 I have backed up everything on an external hard drive I purchased a new hard drive: WD