This discussion is archived
1 2 Previous Next 17 Replies Latest reply: Sep 6, 2010 12:01 AM by 726472 RSS

Set ADF form in insert mode

726472 Newbie
Currently Being Moderated
Hi

When drag and drop data control block as ADF form, its be as update mode (display data in text), i need to be in empty form to insert new record, how can i do that?

Regard
  • 1. Re: Set ADF form in insert mode
    Suganth Pro
    Currently Being Moderated
    Hi,

    Try putting insertRow Method in invokeaction of ur pagDef file as below...

    <invokeAction Binds=<<Method Action ID>> id="Create"
    Refresh="renderModel"
    RefreshCondition="${!adfFacesContext.postback and empty bindings.exceptionsList}"/>

    and u will get a Empty row for entering data....

    Regards,
    Suganth.G
  • 2. Re: Set ADF form in insert mode
    Zeeshan BaiG Oracle ACE
    Currently Being Moderated
    Better to mark the CreateInsert operation as default activity in the Task flow.

    Invoke Action is not recommended way to work from 11g
  • 3. Re: Set ADF form in insert mode
    Suganth Pro
    Currently Being Moderated
    Hi BaiG,

    If its a TaskFlow ur point is right if not??????????.............
    and wht it meant "Invoke Action is not recommended way to work *from* 11g"?
    can u justify it???????????? whether Invoke action wont perform well from 11g???????????

    Regards,
    Suganth.G
  • 4. Re: Set ADF form in insert mode
    Zeeshan BaiG Oracle ACE
    Currently Being Moderated
    Suganth  wrote:
    Hi BaiG,

    If its a TaskFlow ur point is right if not??????????.............
    and wht it meant "Invoke Action is not recommended way to work *from* 11g"?
    can u justify it???????????? whether Invoke action wont perform well from 11g???????????

    Regards,
    Suganth.G
    using Invoke action method can make confusion to the developer the implementation of the invoke action. in Jdev 11g the Task flow is more visual way to design the flows of the application and one can easily understand the purpose of the operation.

    its not me its Oracle docs saying :) check the NOTE here http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_form.htm#CACECCJA

    -Baig
    http://baigsorcl.blogspot.com/
  • 5. Re: Set ADF form in insert mode
    Suganth Pro
    Currently Being Moderated
    Hi Baig,

    I agree with ur point I too read oracle docs but there is point called *"USER REQUIREMENT"*..........

    As per the user requirement only we need to desgin the screens and functionality...........
    Then only we need to freeze it should be Task Flow or normal Flow I am right????????????? :)

    MoreOver as per ur sayings InvokeAction will make the developer to confuse if its so u cannot say

    Invoke Action is not recommended way to work from 11g

    Is there any statement in Oracle documentation that Invoke Action is not recommended........ Am I right????????? :)

    Regards,
    Suganth.G
  • 6. Re: Set ADF form in insert mode
    726472 Newbie
    Currently Being Moderated
    hi

    thanks for ur responce

    what you mean of <<Method Action ID>> ?
  • 7. Re: Set ADF form in insert mode
    Suganth Pro
    Currently Being Moderated
    Hi,

    If u drag and drop ur insert method of the viewObject from datacontrol to JSPX it will create an Method Action entry in ur pageDef file.
    I meant the Id of that Method action id value in that pageDef Entry........

    Regards,
    Suganth.G
  • 8. Re: Set ADF form in insert mode
    Zeeshan BaiG Oracle ACE
    Currently Being Moderated
    Suganth  wrote:
    Is there any statement in Oracle documentation that Invoke Action is not recommended........ Am I right????????? :)

    Regards,
    Suganth.G
    i can re-phrase that ........ From JDev 11g it is not best practice to use Invoke Action instead use Task flow Method call activity :)

    I read this practice lot of places, check this page

    http://books.google.kz/books?id=_NG1hb_gezcC&pg=PA542&lpg=PA542&dq=Taskflow+method+call+instead+of+Invoke+action&source=bl&ots=d4w26HPNvr&sig=Desj7MmdOv7t1QlPOVbd-gqc0Hw&hl=kk&ei=NKM9TMnDHo2FOJ73gYoP&sa=X&oi=book_result&ct=result&resnum=2&ved=0CAoQ6AEwAQ#v=onepage&q&f=false


    the TIP Section

    Hope all is well now :)

    Regards,
    Baig

    Edited by: BaiG on Jul 14, 2010 5:48 PM
  • 9. Re: Set ADF form in insert mode
    726472 Newbie
    Currently Being Moderated
    Insert
     <invokeAction  id="Create"  Refresh="renderModel"
            RefreshCondition="${!adfFacesContext.postback and empty bindings.exceptionsList}"
                      Binds="ControlTextPageDef"/> 
    inside <executables> of
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.55.36" id="ControlTextPageDef"
                    Package="com.hulul.prov.view.controltext.pageDefs">
    ???
  • 10. Re: Set ADF form in insert mode
    Suganth Pro
    Currently Being Moderated
    Hi,

    Put the code inside the <executables> tag

    Regards,
    Suganth.G
  • 11. Re: Set ADF form in insert mode
    Zeeshan BaiG Oracle ACE
    Currently Being Moderated
    Download the examples

    Input form http://orclsamples.googlecode.com/files/InputForm.zip (Run the main page it is calling a bounded task flow)

    Create Edit form http://orclsamples.googlecode.com/files/CreateEditRecord.zip

    you can see and easily identify the purpose of the flow in TF diagrams.

    -Baig
    http://baigsorcl.blogspot.com/
  • 12. Re: Set ADF form in insert mode
    726472 Newbie
    Currently Being Moderated
    Thanks for responce

    When i run application of insert record it will appear error after click in call page button

    java.lang.NullPointerException
         at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2128)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3126)
         at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:2823)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2809)
         at oracle.adfinternal.controller.util.model.DataBindingActivityImpl.beforeExecute(DataBindingActivityImpl.java:108)


    thanks
  • 13. Re: Set ADF form in insert mode
    Suganth Pro
    Currently Being Moderated
    Hi,

    Can u give the full stacktrace();

    Regards,
    Suganth.G
  • 14. Re: Set ADF form in insert mode
    726472 Newbie
    Currently Being Moderated
    java.lang.NullPointerException
         at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2128)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3126)
         at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:2823)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2809)
         at oracle.adfinternal.controller.util.model.DataBindingActivityImpl.beforeExecute(DataBindingActivityImpl.java:108)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:969)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.invokeTaskFlow(ControlFlowEngine.java:242)
         at oracle.adfinternal.controller.application.RemoteTaskFlowCallRequestHandler.invokeTaskFlowByUrl(RemoteTaskFlowCallRequestHandler.java:99)
         at oracle.adfinternal.controller.application.RemoteTaskFlowCallRequestHandler.doCreateView(RemoteTaskFlowCallRequestHandler.java:64)
         at oracle.adfinternal.controller.application.BaseRequestHandlerImpl.createView(BaseRequestHandlerImpl.java:57)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:95)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:572)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:280)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
1 2 Previous Next

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points