on ADFUtils / JSFUtils

In my project, I use an ADFUtils / JSFUtils classes to get the modules of the application, display items and borrowed with links but this classes have two problems:

1. it is not in the JDeveloper class library.
2. it's use a ValueBindings that are deprecated.

Is there some way to get application module, view object and connect to the bindings without using this course?

Thank you..

Sameh Shokry

Sorry for my short previous reaction:

Call the getAm() will get the appmodule for you

EmpDeptServiceImpl am = getAm();

Here's the code for getAm().
private EmpDeptServiceImpl {} getAm()
FacesContext CF = getFacesContext();
Application app = fc.getApplication ();
ExpressionFactory elFactory = app.getExpressionFactory ();
ELContext elContext = fc.getELContext ();
ValueExpression valueExp =
elFactory.createValueExpression (elContext, "#{data.") EmpDeptServiceDataControl.dataProvider} «»
Object.Class);
return (EmpDeptServiceImpl) valueExp.getValue (elContext);
}

From there, you can call am.get

Hope this helps

Luke

Tags: Java

Similar Questions

  • ADFUtils / JSFUtils for Oracle JDeveloper 11 g 2 Cookbook

    Hi all

    You might have heard and read very probably yet another great book on Oracle ADF and JDeveloper. Now a days I busy to read her recipes.

    The author questions download the latest version of FOD here for classes ADFUtils and JSFUtils , located in the SupplierModule\ViewController\src\oracle\fodemo\supplier\view\utils directory level. I downloaded the latest project FOD and extract the files, but there is not SupplierModule within the project. I tried the project and got these loacted files to the StorefrontUI directory and these classes added to the recipe.

    I thought that the recipe is made... but it is not the case...

    While practitioners using a framework of actions to support generic bean recipe, the code contains a call to ADFUtils.hasChanges () is in error and it seems that either I'm using the wrong version of the ADFUtils/JSFUtils or downloaded the wrong FOD project where no SupplierModule is present.

    I'm stuck now and can not continue...

    Anyone with ADFUtils/JSFUtils with all methods used throughout the book?
    ...
    Or a link to the right project FOD
    ...
    Please help and it will be highly appreciated.

    Thank you
    Best regards
    Bilal

    Hi Bilal,

    Firstly thank you for your good comments on the book :)

    Now regarding the problem you are experiencing: hasChanges() is not part of the ADFUtils comes with the merger of the order (FOD) demo. This is a helper method that is implemented in the recipe ' * determine if the current transaction pending changes * "in Chapter 8: does not save Bakery: bean recipes. As I mentioned in the recipe by using ADFUtils/JSFUtils : "+ utility classes ADFUtils and JSFUtils, at the time of writing, are not part of any official release of JDeveloper.» "You will have to locate them, configure them and develop if necessary for your project. Thus, throughout the book, I expanded ADFUtils by adding a number of new helper methods that the book was evolving. Given that the code of the book progresses gradually from Chapter 1 to Chapter 12, you will find the full code in the last recipe (recipe 5) of Chapter 12. If you open the SharedComponents workspace for this recipe, you will find the ADFUtils as it has evolved throughout the writing of the book. For your convenience, I am also reprint hasChanges() utility method below:

        /**
         * Recipe: Determining whether the current transaction has pending changes.
         *
         * Determines whether there are changes done to the current record.
         *
         * @return true/false whether there are uncommited changes.
         */
        public static boolean hasChanges() {
            // check for dirty transaction in both the model and the controller.
            return isBCTransactionDirty() || isControllerTransactionDirty();
        }
    
        /**
         * Recipe: Determining whether the current transaction has pending changes.
         *
         * @return true/false whether there are pending changes in the BC.
         */
        public static boolean isBCTransactionDirty() {
            // get application module and check for dirty transaction
            ApplicationModule am = ADFUtils.getDCBindingContainer().getDataControl().getApplicationModule();
            return am.getTransaction().isDirty();
        }
    
        /**
         * Recipe: Determining whether the current transaction has pending changes.
         *
         * @return true/false whether there are pending changes in the controller.
         */
        public static boolean isControllerTransactionDirty() {
            // get data control and check for dirty transaction
            BindingContext bc = BindingContext.getCurrent();
            String currentDataControlFrame = bc.getCurrentDataControlFrame();
            return bc.findDataControlFrame(currentDataControlFrame).isTransactionDirty();
        }
    

    While working on the recipe by using a generic support bean context action hasChanges() method can simply be added to the ADFUtils and just return true, i.e.:

        public static boolean hasChanges() {
            // for now return true; see recipe "Determining whether the current transaction has pending changes" for more info
            return true;
        }
    

    Then, when you get to Chapter 8 and read the recipe to determine if the current transaction has changes pending , you can update hasChanges().

    Hope this helps you continue with your "cooking" ;)

    Nick

  • ADFUtils JSFUtils in Jdev 11.1.2.3 on RedHat5.8

    Hello:
    I created a workspace common code as an Application added to the ADF business components and personalized. Now, I want to add the ADFUtils and the JSFUtils to this workspace of common code.

    I copied ADFUtils and JSFUtils of the FOD demo app and tried to add these classes in my workspace. So, I create the class and paste the code source.

    In ADFUtils, I get a not found on import:
    import javax.faces.model.SelectItem

    In JSFUtils, I get a not found on import:
    Import javax.faces.application.Application;
    Import javax.faces.application.FacesMessage;
    javax.faces.component.UIComponent import.
    Import javax.faces.component.UIViewPort;
    Import javax.faces.context.ExternalContext;
    Import javax.faces.context.FacesContext;

    What I am doing wrong?

    Thanks for the help.

    You must add the JFS 2.0 library to your project. This lib contains the necessary classes.

    Timo

  • Importer ADF libraries - reuse and conflicts?

    JDeveloper 12.1.2

    I am designing applications for re-use and want to be sure that I won't put my apps during the conflict.  So far, I've created:

    1. an application from adfUtils called xxxADFUtils.  It has all the usual suspects in the Java code (you guessed it, ADFUtils, JSFUtils and a number of code java House that I use frequently).

    2. a model

    3. the demand for labor

    4. an application with a taskflow to be used as a region within the main application.  This application is the xxxADFUtils library since it requires the common code.

    Of the main Application, I now add request 4 - the workflow.  I noticed that I am now able to reference the xxxADFUtils.

    Later, I intend to add another application that will reference the xxxADFUtils.  

    My question is this.  If I import the xxxADFUtils (code share) in the model, the main application and all other applications that contain workflows - will there be a conflict?

    You can add imported libraries if necessary or should pay you close attention to their implementation to avoid conflicts, as you do with the file naming conventions.

    Thank you

    Stuart

    It should not be conflicts. The library will only be in the final artifact once. Taskflows who use the library even have no problem, as long as the library is the same version (has the same methods with the same signature).

    Timo

  • ADF Library Jars for shared code

    Version: Jdeveloper 12 c.

    I have a request that I am building and try to use as much shared code as possible.  I created an application called xyzUtils which contains the code that each of my applications could need.  I've conditioned as a library of the ADF.   It contains a bunch of standard java classes such as ADFUtils, JSFUtils, StuartsUtils...

    I added that day cela to

    1. my request to ADF 'ABC '. This is to be the main application which will consist of a number of small applications (which will reference each xyzUtils app).  It has a minimal amount of custom code, but search tips.

    2. my request to ADF "homepage".

    As soon as I put the taskflow of my startPage application in my request of ABC, some code has stopped working - and if I delete the shared the ABC app application, the code works.

    The idea is to reduce redundancy, but it seems that I will encounter conflicts if I have a major application that refers to the xyzUtils app, but also other applications that refer to the xyzUtils application.

    I understand the concept to ensure that names don't overlap - but in this case the shared library has the same way in each application.

    What is advised here?  I keep several versions of the shared code (adfutils etc) in each application?

    Thank you

    Stuart

    Kdario,

    I think I found the problem - and it's another error at the origin of the problem, not this... so... Thank you, but ignore!

    Stuart

  • Where can I find AnalyticsUtil for call display page events

    Hi all

    I have a Webcenter Portal Application and I'm trying to integrate the analytical Service to count the number of page views. I've installed the Analytics collector and tried to setup the connection to ActivitiesDS via JDeveloper.I am following the steps in the below document:

    http://docs.Oracle.com/CD/E23943_01/WebCenter.1111/e10148/jpsdg_analytics.htm#BABEHEHC

    I'm stuck at the 47.2.3.1.As mentioned in the section section I added the javascript code on the page but I don't know exactly where to find the AnalyticsUtil as stated in the document that will actually send the event page. I suppose he's a util similar to ADFUtils, JSFUtils etc. Any help appreciated.

    Thank you

    Swathi Jonathan

    Required import location is-

    Import oracle.webcenter.framework.service.AnalyticsUtil;

    If it is found, and then add the required library.

    Kind regards
    Hoque

  • Latest Version of ADFUtils, FacesUtils, JSFUtils for Jdev 11.1.2

    Hello:

    Is there an official or newer ADFUtils, FacesUtils and JSFUtils version? If so where can I download the source from? The versions that I have depricated methods...

    Thank you.

    chk this
    http://www.Oracle.com/technetwork/developer-tools/jdev/index-095536.html

    you will get later in the file zip here

  • ADFUtils and JSFUtil do not compile

    Hi, I'm looking to take advantage of these two files in my project, so I copied these two sample window and rename the package name and add in my application. I use 11.1.1.5

    However, when I deploy my application on weblogic, the compiler throws a series of compilation errors, such as:

    Package javax.faces.application does not exist
    Package javax.faces.component does not exist
    Package javax.faces.context does not exist
    There is no package FacesMessage
    Cannot find FacesContext class
    Cannot find UIComponent.
    etc.

    Of course, I missed somethings in my application. What should I do to be able to use these utility files?

    Thank you

    In the project properties > "Libraries and Classpath", what are the libraries that are currently added?

    Thank you
    Nini

  • JSFUtils.addFacesErrorMessage () does not appear cross icon in 12 c

    Hi Experts,

    JDeveloper 12.1.3.0.0

    JSFUtils.addFacesErrorMessage () does not appear cross icon. His only coming as a single window.

    Thank you

    AR

    JSFUtils are not supported by the ADF. This is a utility class that may not work. You need to check the source code

    User

    FacesMessage fm = new FacesMessage (message.toString ());

    fm.setSeverity (FacesMessage.SEVERITY_ERROR);

    FacesContext fctx = FacesContext.getCurrentInstance ();

    fctx.addMessage (null, fm);

    Instead of the null value, you can pass the component that you want to assign the error.

    Timo

  • JSFUtils for the declarative component

    Hello;

    I use jdev 11.1.1.6

    I have

    < af:declarativeComponent viewId = "declarative.jsff" id = "dc_1" > "

    < / af:declarativeComponent >

    In declarative.jsff

    < af:inputText id = "findThis" label = "Label 1"value ="#{var.something}" immediate = "true" autoSubmit = "true" / >

    Back bean

    {} public void check()

    UIComponent component = JSFUtils.findComponentInRoot ("dc_1");

    System.out.println ("component is:"composant); [output is RichDynamicDeclarativeComponent[oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper@3035a4, id = dc_1]

    UIComponent component1 = component.findComponent("findThis");

    System.out.println ("component is:"component1); output is set to null

    }

    Looking at your declarative.jsff - does not need tags?

    Is that what you want to do with the component once you have? There could be a better way that manipulates it in Java.

    The method that I was referring to would include creating a bean:

    public class DeclarativeBackingBean {
    
      RichInputText inputTextComponent;
    
      public void check() {
        System.out.println("component is " + inputTextComponent);
      }
    
      public void setInputTextComponent(RichInputText inputTextComponent) {
        this.inputTextComponent = inputTextComponent;
      }
    
      public RichInputText getInputTextComponent() {
        return inputTextComponent;
      }
    }
    

    Add to your workflow as a bean managed in extensive backup of bean.

    In the binding of your text entry property, then refers to it. that is add

    Binding = "#{backingBeanScope.DeclarativeBackingBean.inputTextComponent} '"

    for the af:inputText tag.

    You can then refer to the inputTextComponent variable in your code and it is filled in.

  • JSFUtils.java where?

    where is the code for jsfutils.java?
    AdfBoy

    DDI you try google? Cause, he said - you could get the essential JSFUtils for JDeveloper demo application - the demo of the showcase (Fusion order Demo) from this link: http://www.oracle.com/technology/products/jdev/samples/fod/index.html.

  • With the help of OrdDocDomain and get "No data in this topic".

    Hello

    I use and input component file and converting it into an OrdDocDomain in my grain of support (using the tag converter gave me questions that I could not solve).

    The error I'm allows himself to be somewhat sporadic, but now it seems to happen regularly on record.

    Here is the small piece of JSFF:

    <af:inputText columns="#{bindings.DocName.hints.displayWidth}" value="#{bindings.DocName.inputValue}" required="#{bindings.DocName.hints.mandatory}"
               contentStyle="width:500px"  maximumLength="#{bindings.DocName.hints.precision}" shortDesc="#{bindings.DocName.hints.tooltip}" id="fileNm"
               partialTriggers="inFile b12 b15"/>
    <af:button id="b15" icon="/resources/images/delete_s.PNG" visible="#{bindings.Document.inputValue ne null}" inlineStyle="position: relative; right:1px;" shortDesc="Delete file"
               actionListener="#{pageFlowScope.recordBean.deleteFileButtonClicked}"/>
    <af:spacer width="10" height="10" id="s5" visible="#{not empty bindings.DocName.inputValue}"/>           
    <af:panelGroupLayout id="pgl7" layout="horizontal" inlineStyle="display: block; width: 67px; height: 30px; overflow: hidden;">
              <af:button text="Upload..." id="b12" shortDesc="Upload file" inlineStyle="position: relative;"/>
              <af:inputFile id="inFile" autoSubmit="true" valueChangeListener="#{pageFlowScope.recordBean.uploadFileValueChangeEvent}"
                         inlineStyle="width: 120px;  opacity: 0; filter:alpha(opacity: 0); position: relative; left: -75px"/>
    </af:panelGroupLayout>
    <af:spacer width="5" height="10" id="s16"/>
    <af:button id="b4" icon="/resources/images/download2.png" shortDesc="Download file">
              <af:fileDownloadActionListener filename="#{bindings.DocName}" method="#{pageFlowScope.recordBean.downloadFile}" contentType="#{bindings.DocContentType}"/>
    </af:button>
    

    Here is the small piece of backing bean:

    public void uploadFileValueChangeEvent(ValueChangeEvent valueChangeEvent) {
      UploadedFile file = (UploadedFile) valueChangeEvent.getNewValue();
    
      DCIteratorBinding attachmentIterator = ADFUtils.findIterator("ItemRevisionAttachmentVOIterator");
    
      Row[] attachmentRows = attachmentIterator.getAllRowsInRange();
    
      /*
      * It's advised that deferred loading of OrdDocDomain be used during insert, which is much easier
      * than immediate - therefore remove row so that we're always inserting.
      */
      if(attachmentRows != null && attachmentRows.length > 0) {
         OperationBinding deleteOperation = ADFUtils.findOperation("DeleteAttachment");
         deleteOperation.execute();
      }
    
      OperationBinding createOperation = ADFUtils.findOperation("CreateAttachment");
      createOperation.execute();
    
      InputStream inputStream = null;
         
      try {
    
         inputStream = file.getInputStream();
         byte[] attachmentBytes = IOUtils.toByteArray(inputStream);
    
         OrdDocDomain document = new OrdDocDomain(); 
         document.setContentSource(new OrdByteArraySource(attachmentBytes));
         
         Row attachmentRow = attachmentIterator.getAllRowsInRange()[0];
         
         attachmentRow.setAttribute("RefObjectKey1", ADFUtils.getBoundAttributeValue("DimsItemRevisionId"));
         attachmentRow.setAttribute("ApplicationId", 900);
         attachmentRow.setAttribute("Document", document);    
         attachmentRow.setAttribute("DocName", file.getFilename());
         attachmentRow.setAttribute("DocContentType", file.getContentType());
         attachmentRow.setAttribute("DocumentId", attachmentRow.getAttribute("DocId"));  
    
         /* 
          * Reset so that the input file button stays in same location - needed because we hide the actual
          * input file component in front of our custom "Upload" button.
          */
         RichInputFile inputFile = (RichInputFile) JSFUtils.findComponentInRoot("inFile");
         inputFile.resetValue();
                 
      } catch(Exception e) {
         e.printStackTrace();
         
         FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, "We're sorry, there was a problem uploading the file.", null);
         FacesContext.getCurrentInstance().addMessage(null, msg);
         
      } finally {
         closeResource(inputStream);
      }
    }
    

    Here is the stacktrace:

    <oracle.adf.model> <DCIteratorBinding> <processInputException> <[12411] Warning! Exception being ignored by IteratorBinding as reserved row did not match:ItemRevisionAttachmentVOIterator> 
    <oracle.adf.model> <DCBindingContainer> <cacheException> <[12412] * * * BindingContainer caching EXCEPTION:oracle.jbo.TxnValException> 
    <oracle.adf.model> <DCBindingContainer> <cacheException> <[12413] oracle.jbo.RowValException: JBO-27024: Failed to validate a row with key oracle.jbo.Key[634018 null ] in DimsMasterAppModule.RecordsAppModule.ItemRevisionAttachmentVO
      at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:2804)
      at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:4612)
      at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2059)
      at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2403)
      at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1744)
      at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1450)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1489)
      at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2218)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:784)
      at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:410)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:254)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:212)
      at backing.RecordBean.saveAll(RecordBean.java:337)
      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 com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
      at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:1113)
      at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at oracle.adf.view.rich.event.ProxyEvent.broadcastWrappedEvent(ProxyEvent.java:72)
      at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:124)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:168)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:168)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:168)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:115)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:168)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:115)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:1074)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:402)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
    ## Detail 0 ##
    oracle.jbo.AttrSetValException: JBO-27020: The set method for attribute "Document" in DimsMasterAppModule.RecordsAppModule.ItemRevisionAttachmentVO cannot be resolved.
      at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:2122)
      at oracle.ord.im.OrdDocDomain.saveToDatabase(OrdDocDomain.java:2775)
      at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:9223)
      at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:9102)
      at base.FndEntityImpl.doDML(FndEntityImpl.java:43)
      at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:7271)
      at oracle.jbo.server.EntityImpl.callPostChanges(EntityImpl.java:7076)
      at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3329)
      at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3123)
      at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2122)
      at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2403)
      at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1744)
      at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1450)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1489)
      at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2218)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:784)
      at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:410)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:254)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:212)
      at backing.RecordBean.saveAll(RecordBean.java:337)
      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 com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
      at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:1113)
      at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at oracle.adf.view.rich.event.ProxyEvent.broadcastWrappedEvent(ProxyEvent.java:72)
      at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:124)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:168)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:168)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:168)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:115)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
      at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
      at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:168)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:115)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:1074)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:402)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
    Caused by: java.lang.UnsupportedOperationException: No Data In this Entry
      at oracle.binding.DataChangeEntry.getAttributeValue(DataChangeEntry.java:122)
      at oracle.binding.DataChangeEntry.getFormattedAttributeValue(DataChangeEntry.java:137)
      at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.getFormattedAttributeValue(JUCtrlValueBinding.java:4466)
      at oracle.adfinternal.view.faces.activedata.ActiveDataEntryImpl.getFormattedAttributeValue(ActiveDataEntryImpl.java:121)
      at oracle.adf.view.rich.activedata.ActiveComponentContext$AttributeActiveDataEncoder.encode(ActiveComponentContext.java:961)
      at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$EncoderAdapter.accept(PageDataUpdateManager.java:1631)
      at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$ActiveComponentRecord._processActiveDataEvent(PageDataUpdateManager.java:1478)
      at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$ActiveComponentRecord.dataChanged(PageDataUpdateManager.java:1334)
      at oracle.adfinternal.view.faces.activedata.AttrsActiveDataModelImpl.dataChanged(AttrsActiveDataModelImpl.java:164)
      at oracle.jbo.uicli.binding.JUCtrlValueBinding.createAndNotifyDCE(JUCtrlValueBinding.java:365)
      at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateRow(JUCtrlValueBinding.java:418)
      at oracle.jbo.uicli.binding.JUIteratorBinding.notifyUpdateEvent(JUIteratorBinding.java:366)
      at oracle.adf.model.binding.DCIteratorBinding.rowUpdated(DCIteratorBinding.java:1257)
      at oracle.jbo.common.RowSetHelper.fireRowUpdated(RowSetHelper.java:249)
      at oracle.jbo.server.ViewRowSetIteratorImpl.fireRowUpdated(ViewRowSetIteratorImpl.java:3800)
      at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRowUpdated(ViewRowSetIteratorImpl.java:3407)
      at oracle.jbo.server.ViewRowSetImpl.notifyRowUpdated(ViewRowSetImpl.java:2323)
      at oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(ViewObjectImpl.java:13164)
      at oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(ViewObjectImpl.java:13102)
      at oracle.jbo.server.ViewObjectImpl.afterRowUpdate(ViewObjectImpl.java:14890)
      at oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:15117)
      at oracle.jbo.server.EntityCache.sendEvent(EntityCache.java:1660)
      at oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:1676)
      at oracle.jbo.server.EntityCache.notifyColumnAndBlgChange(EntityCache.java:1734)
      at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7934)
      at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7915)
      at oracle.jbo.server.EntityImpl.notifyAttributesAndBlgChanged(EntityImpl.java:7924)
      at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:3968)
      at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3701)
      at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:2165)
      at common.eo.FndDocumentEOImpl.setDocument(FndDocumentEOImpl.java:400)
      at common.eo.FndDocumentEOImpl$AttributesEnum$6.put(FndDocumentEOImpl.java:85)
      at common.eo.FndDocumentEOImpl.setAttrInvokeAccessor(FndDocumentEOImpl.java:495)
      at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:2073)
      ... 109 more
    

    I use Jdeveloper 12.1.3

    Thank you

    Bill

    go to the pageDef and see what is the value of the property ChangeEventPolicy , for ItemRevisionAttachmentVOIterator

    Try again with 'none' and see what happens

  • Clear FilterableQueryDescriptor using JavaScript onLoad page

    Jdev: 12 c

    Problem: I have a method that deletes the filter criteria, but I need the criteria on page load, the method of some clear I have to help in the server listener I button, but in button, this works perfectly:

    Method ServerListener:

    {} public void clearFilter (ClientEvent clientEvent)
    String reqPage = JSFUtils.getPageName ();
    Card < String, String [] > map = PagMap.getPaginasComTabelas (); return a hash table with the name of the page and tables
    {for (String page: {map.keySet ())}
    {if (page. Equals (reqPage))}
    {for (String table: {map.get('zoom') (pagina)})}
    Tab richeTableau = (RichTable) JSFUtils.findComponentInRoot (table);
    ADFUtils.executeQueryWithTableFilter (tab);
    AdfFacesContext.getCurrentInstance () .addPartialTarget (JSFUtils.findComponentInRoot ('t1'));
    }
    }
    }
    }

    Method ADFUtils:

    {} public static void executeQueryWithTableFilter (table richeTableau)
    DCIteratorBinding bindIterator is ADFUtils.findIterator (table);.
    ADFUtils.executeQueryWithTableFilter (table, bindIterator);
    }

    Public Shared Sub executeQueryWithTableFilter (table richeTableau, DCIteratorBinding bindIterator) {}
    ViewObject vo = bindIterator.getViewObject ();
    vo.executeEmptyRowSet ();
    FilterableQueryDescriptor queryDescriptor = (FilterableQueryDescriptor) table.getFilterModel ();
    If (queryDescriptor! = null & & queryDescriptor.getFilterConjunctionCriterion ()! = null) {}
    ConjunctionCriterion cc = queryDescriptor.getFilterConjunctionCriterion ();
    List < test > lc = cc.getCriterionList ();
    for (criterion c: lc) {}
    If (ch. instanceof AttributeCriterion) {}
    AttributeCriterion ac = c (AttributeCriterion);
    ac.setValue (null);
    }
    }
    }
    queryDescriptor.getFilterCriteria () .clear ();
    table.queueEvent (new QueryEvent (table, queryDescriptor));
    }

    User, I can't say that I understand your code, but this https://blogs.oracle.com/aramamoo/entry/an_epic_question_how_to blog is about calling a method when a break of support.

    Timo

  • NPE when you set the value of list binding

    Hello

    JDev 11.1.2.4

    I have a list named Country1 linked to an executable variable country of type String binding. I'm trying to programmatically set the value but I get a NPE.

    public static BindingContainer {} getBindingContainer()

    return (BindingContainer) JSFUtils.resolveExpression("#{bindings}");

    }

    JUCtrlListBinding Country1 = ((JUCtrlListBinding) ADFUtils.getBindingContainer () .get ("country1"));

    _logger.info ('Information' + country1.values () .size ()); Returns the value 100

    country1.setInputValue("*");

    I get the following NPE while * is a correct value in the list:

    java.lang.NullPointerException

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.findIndexFromObject(FacesCtrlListBinding.java:390)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.setInputValue(FacesCtrlListBinding.java:455)

    Thank you

    I got it to work but it makes no sense:

    Ok:

    BindingContext lBindingContext = BindingContext.getCurrent ();

    BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();

    JUCtrlListBinding Country1 = ((JUCtrlListBinding) lBindingContainer.get ("country1"));

    Country1.getInputValue ();

    country1.setInputValue("*");

    KO with NPE

    BindingContext lBindingContext = BindingContext.getCurrent ();

    BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();

    JUCtrlListBinding Country1 = ((JUCtrlListBinding) lBindingContainer.get ("country1"));

    Country1.getInputValue ();

    country1.setInputValue("*");

    It seems that I have to read the value before it is changed.

  • alert registration

    Hi I have a situation where I have what it takes to have the alert record registration message am in jdeveloper 11.1.1.6.0
    i try this
    <af:commandButton text="Submit" id="cb3"
                                action="#{pageFlowScope.InternalUserBean.onSaveRecord}"/>
    
          public String onSaveRecord() {
            ADFUtil.invokeEL("#{bindings.Commit.execute}");
            System.out.println("Internal User Data Committed..");
            ADFUtil.invokeEL("#{bindings.approveUser1.execute}");
            System.out.println("Internal User Work Flow Invoked..");
            
            String emeesage = "Record Saved Successfully!";
            FacesMessage Message = new FacesMessage(emeesage);   
                  Message.setSeverity(FacesMessage.SEVERITY_ERROR);   
                  FacesContext fc = FacesContext.getCurrentInstance();   
                  fc.addMessage(null, Message);
            return emeesage;
        }
    
    am not geting the alert message
    my jsff is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html">
      <af:panelHeader text="    " id="ph1">
        <f:facet name="menuBar"/>
        <f:facet name="toolbar"/>
        <table border="0" height="280">
          <tr>
            <td width="154" height="24">
              <af:outputLabel value="Username" id="ol1" showRequired="true"/>
            </td>
            <td width="220" height="24">
              <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="20"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}"
                            autoSubmit="true" autoTab="false">
                <f:validator binding="#{bindings.Username.validator}"/>
              </af:inputText>
            </td>
            <td height="24">
              <af:outputLabel value="Country" id="ol10" showRequired="true"/>
            </td>
            <td width="507" height="24">
              <af:selectOneChoice value="#{bindings.Countrycode.inputValue}"
                                  shortDesc="#{bindings.Countrycode.hints.tooltip}"
                                  id="soc3" simple="true" autoSubmit="true"
                                  contentStyle="width:140px">
                <f:selectItems value="#{bindings.Countrycode.items}" id="si3"/>
              </af:selectOneChoice>
            </td>
          </tr><tr>
            <td width="154">
              <af:outputLabel value="Persal Number" id="ol5" showRequired="true"/>
            </td>
            <td width="220">
              <af:inputText value="#{bindings.PersalNumber.inputValue}"
                            simple="true"
                            required="#{bindings.PersalNumber.hints.mandatory}"
                            columns="20"
                            maximumLength="#{bindings.PersalNumber.hints.precision}"
                            shortDesc="#{bindings.PersalNumber.hints.tooltip}"
                            id="it7">
                <f:validator binding="#{bindings.PersalNumber.validator}"/>
              </af:inputText>
            </td>
            <td>
              <af:outputLabel value="Branch" id="ol18" showRequired="true"/>
            </td>
            <td height="32" width="507">
              <af:selectOneChoice value="#{bindings.Branch.inputValue}"
                                  required="#{bindings.Branch.hints.mandatory}"
                                  shortDesc="#{bindings.Branch.hints.tooltip}"
                                  id="soc10" simple="true" autoSubmit="true"
                                  contentStyle="width:140px">
                <f:selectItems value="#{bindings.Branch.items}" id="si15"/>
              </af:selectOneChoice>
            </td>
          </tr><tr>
            <td width="154" height="27">
              <af:outputLabel value="Surname" id="ol3" showRequired="true"/>
            </td>
            <td width="220">
              <af:inputText value="#{bindings.Surname.inputValue}"
                            required="#{bindings.Surname.hints.mandatory}"
                            columns="20"
                            maximumLength="#{bindings.Surname.hints.precision}"
                            shortDesc="#{bindings.Surname.hints.tooltip}" id="it3"
                            simple="true">
                <f:validator binding="#{bindings.Surname.validator}"/>
              </af:inputText>
            </td>
            <td>
              <af:outputLabel value="Offices" id="ol6" showRequired="true"/>
            </td>
            <td height="27" width="507">
              <af:selectOneChoice value="#{bindings.Office.inputValue}"
                                  required="#{bindings.Office.hints.mandatory}"
                                  shortDesc="#{bindings.Office.hints.tooltip}"
                                  id="soc9" simple="true"
                                  contentStyle="width:140px">
                <f:selectItems value="#{bindings.Office.items}" id="si14"/>
              </af:selectOneChoice>
            </td>
          </tr><tr>
            <td width="154">
              <af:outputLabel value="First Name" id="ol2" showRequired="true"/>
            </td>
            <td width="220">
              <af:inputText simple="true"
                            required="#{bindings.Firstname.hints.mandatory}"
                            columns="20"
                            maximumLength="#{bindings.Firstname.hints.precision}"
                            shortDesc="#{bindings.Firstname.hints.tooltip}" id="it2"
                            value="#{bindings.Firstname.inputValue}">
                <f:validator binding="#{bindings.Firstname.validator}"/>
              </af:inputText>
            </td>
            <td>
              <af:outputLabel value="Practitioner Number" id="ol24"/>
            </td>
            <td width="507">
              
              <af:inputText value="#{bindings.Accreditationnumber.inputValue}"
                            simple="true"
                            required="#{bindings.Accreditationnumber.hints.mandatory}"
                            columns="20"
                            maximumLength="#{bindings.Accreditationnumber.hints.precision}"
                            shortDesc="#{bindings.Accreditationnumber.hints.tooltip}"
                            id="it12">
                <f:validator binding="#{bindings.Accreditationnumber.validator}"/>
              </af:inputText><af:inputText value="#{bindings.Usertype.inputValue}"
                                                 simple="true"
                                                 required="#{bindings.Usertype.hints.mandatory}"
                                                 columns="#{bindings.Usertype.hints.displayWidth}"
                                                 maximumLength="#{bindings.Usertype.hints.precision}"
                                                 shortDesc="#{bindings.Usertype.hints.tooltip}"
                                                 id="it13" visible="false">
                <f:validator binding="#{bindings.Usertype.validator}"/>
              </af:inputText>
            </td>
          </tr><tr>
            <td width="154">
              <af:outputLabel value="Initials" id="ol4" showRequired="true"/>
            </td>
            <td width="220">
              <af:inputText value="#{bindings.Initials.inputValue}" simple="true"
                            required="#{bindings.Initials.hints.mandatory}"
                            columns="20"
                            maximumLength="#{bindings.Initials.hints.precision}"
                            shortDesc="#{bindings.Initials.hints.tooltip}" id="it4">
                <f:validator binding="#{bindings.Initials.validator}"/>
              </af:inputText>
            </td>
            <td>
              <af:outputLabel value="Business Role" id="ol13" showRequired="true"/>
            </td>
            <td width="507">
              <af:selectOneChoice shortDesc="#{bindings.Roleaccesscode.hints.tooltip}"
                                  id="soc7" simple="true"
                                  valueChangeListener="#{pageFlowScope.InternalUserBean.InternalType}"
                                  value="#{pageFlowScope.InternalUserBean.userType}"
                                  partialTriggers="soc10" immediate="true"
                                  contentStyle="width:140px">
                <af:forEach var="item"
                            items="#{pageFlowScope.InternalUserBean.childRoles}">
                  <af:selectItem value="#{item}" label="#{item}" id="tu7g"/>
                </af:forEach>
              </af:selectOneChoice>
            </td>
          </tr><tr>
            <td width="154">
              <af:outputLabel value="Title" id="ol16" showRequired="true"/>
            </td>
            <td width="220">
              <af:selectOneRadio id="sor2" layout="horizontal"
                                 value="#{bindings.Gender.inputValue}"
                                 rendered="false">
                <af:selectItem label="Male" value="M" id="si2"/>
                <af:selectItem label="Female" value="F" id="si8"/>
              </af:selectOneRadio><af:selectOneRadio value="#{bindings.Gender.inputValue}"
                                                     shortDesc="#{bindings.Gender.hints.tooltip}"
                                                     id="sor3" layout="horizontal"
                                                     rendered="false">
                <f:selectItems value="#{bindings.Gender.items}" id="si9"/>
              </af:selectOneRadio>
               
              <af:selectOneChoice value="#{bindings.Titlecode.inputValue}"
                                  shortDesc="#{bindings.Titlecode.hints.tooltip}"
                                  id="soc1"
                                  valueChangeListener="#{pageFlowScope.InternalUserBean.titlevalue}"
                                  simple="true"
                                  contentStyle="width:140px">
                <f:selectItems value="#{bindings.Titlecode.items}" id="si1"/>
              </af:selectOneChoice>
            </td>
            <td>
              <af:outputLabel value="Email" id="ol7" showRequired="true"/>
            </td>
            <td width="507">
              <af:inputText value="#{bindings.Emailaddress.inputValue}"
                            simple="true"
                            required="#{bindings.Emailaddress.hints.mandatory}"
                            columns="20"
                            maximumLength="#{bindings.Emailaddress.hints.precision}"
                            shortDesc="#{bindings.Emailaddress.hints.tooltip}"
                            id="it5">
                <f:validator binding="#{bindings.Emailaddress.validator}"/>
                <af:validateRegExp pattern="[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}"
                                   messageDetailNoMatch="The value provided is not a valid email address"/>
              </af:inputText>
            </td>
          </tr><tr>
            <td width="154">
              <af:outputLabel value="Gender" id="ol17" showRequired="true"/>
            </td>
            <td width="220">
              <af:selectOneRadio id="sor4" layout="horizontal">
                <af:selectItem label="Female" value="F" id="si7"/>
                <af:selectItem label="Male" value="M" id="si10"/>
              </af:selectOneRadio>
            </td>
            <td>
              <af:outputLabel value="Confirm Email" id="ol11" showRequired="true"/>
            </td>
            <td width="507">
              <af:inputText label="Confirm Email" id="it9" simple="true"
                            columns="20"/>
            </td>
          </tr><tr>
            <td width="154">
              <af:outputLabel value="Date Of Birth" id="ol12" showRequired="true"/>
            </td>
            <td width="220">
              <af:inputDate value="#{bindings.Dateofbirth.inputValue}"
                            required="#{bindings.Dateofbirth.hints.mandatory}"
                            shortDesc="#{bindings.Dateofbirth.hints.tooltip}"
                            id="id1" simple="true" columns="20">
                <f:validator binding="#{bindings.Dateofbirth.validator}"/>
                <af:convertDateTime pattern="#{bindings.Dateofbirth.format}"/>
              </af:inputDate>
            </td>
            <td>
              <af:outputLabel value="Mobile Number" id="ol8" showRequired="false"/>
            </td>
            <td width="507">
              <af:inputText value="#{bindings.Mobilenumber.inputValue}"
                            simple="true"
                            required="#{bindings.Mobilenumber.hints.mandatory}"
                            columns="20"
                            maximumLength="#{bindings.Mobilenumber.hints.precision}"
                            shortDesc="#{bindings.Mobilenumber.hints.tooltip}"
                            id="it8">
                <f:validator binding="#{bindings.Mobilenumber.validator}"/>
              </af:inputText>
            </td>
          </tr><tr>
            <td width="154">
              <af:selectOneRadio id="sor1" layout="horizontal"
                                 autoSubmit="true" immediate="true"
                                 value="#{pageFlowScope.InternalUserBean.idtype}"
                                 required="true">
                <af:selectItem label="ID" value="1" id="si6"/>
                <af:selectItem label="Passport" value="0" id="si16"/>
              </af:selectOneRadio>
            </td>
            <td width="220">
              <af:inputText value="#{bindings.Identitynumber.inputValue}"
                            simple="true"
                            columns="20"
                            maximumLength="#{bindings.Identitynumber.hints.precision}"
                            shortDesc="#{bindings.Identitynumber.hints.tooltip}"
                            id="it11" partialTriggers="sor1"
                            visible="#{pageFlowScope.InternalUserBean.idtype eq '1'}">
                <f:validator binding="#{bindings.Identitynumber.validator}"/>
                <f:convertNumber groupingUsed="false"/>
                <f:validateLength minimum="13" maximum="13"/>
              </af:inputText><af:inputText value="#{bindings.Passportnumber.inputValue}"
                                           simple="true"
                                           columns="20"
                                           maximumLength="#{bindings.Passportnumber.hints.precision}"
                                           shortDesc="#{bindings.Passportnumber.hints.tooltip}"
                                           id="it6" partialTriggers="sor1"
                                           visible="#{pageFlowScope.InternalUserBean.idtype eq '0'}">
                <f:validator binding="#{bindings.Passportnumber.validator}"/>
              </af:inputText>
            </td>
            <td nowrap="nowrap">
              <af:outputLabel value="Business Number" id="ol23"/>
            </td>
            <td width="507">
              <af:inputText value="#{bindings.Businessnumber.inputValue}"
                            simple="true"
                            required="#{bindings.Businessnumber.hints.mandatory}"
                            columns="20"
                            maximumLength="#{bindings.Businessnumber.hints.precision}"
                            shortDesc="#{bindings.Businessnumber.hints.tooltip}"
                            id="it10">
                <f:validator binding="#{bindings.Businessnumber.validator}"/>
              </af:inputText>
            </td>
          </tr><tr>
            <td width="154">
              <af:outputLabel value="Expiry Date" id="ol22"
                              showRequired="#{bindings.chckid.inputValue eq '0'}"
                              partialTriggers="sor1"
                              visible="#{pageFlowScope.InternalUserBean.idtype eq '0'}"/>
            </td>
            <td width="220">
              <af:inputDate value="#{bindings.Passportexpdate.inputValue}"
                            shortDesc="#{bindings.Passportexpdate.hints.tooltip}"
                            id="id2" simple="true" partialTriggers="sor1"
                            disabled="#{bindings.chckid.inputValue eq '1'}"
                            visible="#{pageFlowScope.InternalUserBean.idtype eq '0'}">
                <f:validator binding="#{bindings.Passportexpdate.validator}"/>
                <af:convertDateTime pattern="#{bindings.Passportexpdate.format}"/>
              </af:inputDate>
            </td>
            <td width="163" height="33" nowrap="nowrap">
              <af:outputLabel value="Professional Category" id="ol9"
                              showRequired="true"/>
            </td>
            <td width="507" height="33">
              <af:selectOneChoice value="#{bindings.Profcatcode.inputValue}"
                                  label="#{bindings.Profcatcode.label}"
                                  required="#{bindings.Profcatcode.hints.mandatory}"
                                  shortDesc="#{bindings.Profcatcode.hints.tooltip}"
                                  id="soc2" simple="true"
                                  contentStyle="width:140px">
                <f:selectItems value="#{bindings.Profcatcode.items}" id="si4"/>
              </af:selectOneChoice><af:inputText value="#{bindings.Roleaccesscode1.inputValue}"
                            simple="true"
                            required="#{bindings.Roleaccesscode1.hints.mandatory}"
                            columns="#{bindings.Roleaccesscode1.hints.displayWidth}"
                            maximumLength="#{bindings.Roleaccesscode1.hints.precision}"
                            shortDesc="#{bindings.Roleaccesscode1.hints.tooltip}"
                            id="it14" visible="false">
                <f:validator binding="#{bindings.Roleaccesscode1.validator}"/>
              </af:inputText>
            </td>
          </tr><tr>
            <td width="154"> </td>
            <td width="220"> </td>
            <td width="163"> </td>
            <td width="507" align="right">
              <af:commandButton text="Submit" id="cb1"
                                action="#{pageFlowScope.InternalUserBean.onSaveRecord}"/><af:selectOneChoice value="#{bindings.Commcode.inputValue}"
                                  label="#{bindings.Commcode.label}"
                                  required="#{bindings.Commcode.hints.mandatory}"
                                  shortDesc="#{bindings.Commcode.hints.tooltip}"
                                  id="soc4" visible="false">
                <f:selectItems value="#{bindings.Commcode.items}" id="si5"/>
              </af:selectOneChoice>
            </td>
          </tr>
        </table>
      </af:panelHeader>
    </jsp:root>
    Published by: adf009 on 04/06/2013 17:44

    Published by: adf009 on 04/06/2013 17:46

    Published by: adf009 on 04/06/2013 17:46

    OperationBinding = getCommitBinding
    ADFUtils.getBindingContainer () .getOperationBinding ("Commit");
    getCommitBinding.execute ();

    If (! getCommitBinding.getErrors () .isEmpty ()) {}
    JSFUtil.showFacesErrorMessage ("cannot save.");
    }
    JSFUtil.showFacesInformationMessage ("Record saved successfully!");

Maybe you are looking for

  • Cannot delete the email from the iPad

    I have an e-mail I want to remove my iPad air but I am unable too If I open the email it freezes remove it from the screen so unable to elect Any help appreciated

  • Hide the gray bar at the bottom of the screen of the iPad Pro

    iPad Pro; Is it possible to hide the gray at the bottom bar, as I do with my Mac laptop?

  • files to clear the cache does not work

    I tried to remove some cache safari files, but the files in the cache keep coming back. I'll explain how I tried to delete them: I clicked the button of safari on the top left of the screen---> Preferences---> Privacy---> details (next to remove all

  • The pool management and quality Service

    I've had problems with HP for over 2 years now. The first laptop, they have replaced and gave me a 8570p Elitebook that they new was not good and gave to a member of the family of the same model. I have had problems with it, run hot and fingerprints

  • Frozen on blue screen after asking to activate

    I just did a reinstall on Windows XP Professional, after that a virus wiped out my file on the Dell laptop structure.  Used a CD that was floating around my company because the OS came preinstalled on my laptop and the original disk is no longer with