6 Replies Latest reply: Mar 21, 2013 4:45 AM by Subramanian Meyyappan RSS

    Problem in Drag and Drop Requirement(af:calendar)

    Subramanian Meyyappan
      hi folks,

      i h've a problem while drag and drop my vo from Data control pallette into my .jspx page. context menu does'nt show calendar option. this behaviour seems in jdev - adfbc.

      i had ah vo based on eo. eo has all kind of attribute's.

      i find a example in google regarding af:calendar, but it working fine in jdev - adfbc. i gave ah look to table structure in that example it's pretty clear and also eo and vo objects - bind variable which is of in model layer.
      i made as if in example for my usecase. but it's doesnt work for me. i hope that there is special things have to cook to do that.

      so what stuff it would be.. i do?

      + thing.
      i found out this old thread : by chris Re: af:calendar - drag n drop requirements from the data control palette? i dont want to awake up this thread.

        • 1. Re: Problem in Drag and Drop Requirement(af:calendar)
          Frank Nimphius-Oracle

          your questions doesn't contain a lot of information for what the problem could be. So my suggestion is to look at this how-to: http://www.oracle.com/technetwork/developer-tools/jdev/calendar-091799.html and verify if it works in If it doesn't, can you run a quick test with to check whether this shoul dbe invesitgated further as a bug?


          • 2. Re: Problem in Drag and Drop Requirement(af:calendar)
            Subramanian Meyyappan
            So my suggestion is to look at this how-to: http://www.oracle.com/technetwork/developer-tools/jdev/calendar-091799.html and verify if it works in
            Thanks for the link.
            If it doesn't, can you run a quick test with to check whether this shoul dbe invesitgated further as a bug?
            No it's not bug in jdev I mess up some important steps.. I noticed and correct it.

            • 3. Re: Problem in Drag and Drop Requirement(af:calendar)
              Subramanian Meyyappan
              my usecase: as like of FODCalendarDemo. but slight different what it is means instead of EId i had some other name 'somezid' it is an auto generated like sequence. but not like randaom num generation

              Frank. Now i had Problem with this code

              this code pick'd out from adfcalendar.zip in google. put into my usecase.
                  public void firelistner(CalendarActivityEvent calendarActivityEvent) {
                      // Add event code here...
                              CalendarActivity activity =
                      if (activity != null) {
                          DCBindingContainer dcbindings =
                          DCIteratorBinding iterator =
                          Key key = new Key(new Object[] { activity.getId() });
                          RowSetIterator rsi = iterator.getRowSetIterator();
                          Row row = rsi.findByKey(key, 1)*[0]*; //error on this line
              Error trace
              <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
              javax.el.ELException: java.lang.ArrayIndexOutOfBoundsException: 0
                   at com.sun.el.parser.AstValue.invoke(Unknown Source)
                   at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
                   at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
                   at oracle.adf.view.rich.component.rich.data.RichCalendar.broadcast(RichCalendar.java:369)
                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:313)
                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
                   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:300)
                   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:205)
                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                   at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
                   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
                   at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
                   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
                   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
                   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
                   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:111)
                   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.runJaasMode(JpsAbsFilter.java:94)
                   at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
                   at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                   at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
                   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.wrapRun(WebAppServletContext.java:3715)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
                   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
                   at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
                   at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
                   at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
                   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
                   at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
              Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
                   at CalApp.firelistner(NewCalApp.java:57)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   ... 44 more
              more info....

              I investigated that in my eo object had 3-pk (xid , yid, zid) zid- pk is placed 47 the attribute.

              i had vo based on eo in my query am using where clause. from the query result am getting only one row with all no null values
              but in the example EId - pk is placed first position is this problem?. i hope it may be.

              edited lately.
              • 4. Re: Problem in Drag and Drop Requirement(af:calendar)
                Subramanian Meyyappan
                any one... is there any one to help out of this frank.. timo.. john. anyone..

                i hope that . i should re-phrase my problem/or my question

                Edited by: user707 on Mar 15, 2013 8:31 AM
                • 5. Re: Problem in Drag and Drop Requirement(af:calendar)
                  Timo Hahn
                  I can't comment on the calendar stuff as I did not look into it...

                  However, as a rule if you hit an error like the one in the line you marked
                  Row row = rsi.findByKey(key, 1)*[0]*; //error on this line
                  you should make the the line easier to read. It means that you are doing multiple steps in one line. One of the steps throws the error. The error message give you the hint.
                  javax.el.ELException: java.lang.ArrayIndexOutOfBoundsException: 0
                  tells you that an array is part of the problem. There is only one array in the line you marked. If you rewrite the code to
                  Row [] rows = rsi.findByKey(key, 1); // don't take it for granted that findByKey returns a row!
                  Row row = rows[0];  // if no row returned by findByKey this line throws a ArrayIndexOutOfBoundsException
                  and debug the code you would directly see that the findByKey method did not return any row, so you get an empty array. Then you try to get the first row from the empty array and for this you get the 'ArrayIndexOutOfBoundsException'.

                  • 6. Re: Problem in Drag and Drop Requirement(af:calendar)
                    Subramanian Meyyappan
                    thanks well enough and detail explanation hat's off, great Timo :)