BUG??? Overridden prepareModel not being called all the time

I have an ADF/struts application that was originally developed with Jdev 10.1.2. I then migrated it to 10.1.3 and have been maintaining it with that for that past two months. Recently, I added some new pages and in those new pages I need to do some preprocessing. I was hoping to do this in the prepareModel of this page, however it is not being called when I come to the page via a submit button that is named "event_Calendar". If I click the search button on the Calendar page though, the prepareModel does fire, and the preprocessing takes place.
Hyperlinks do work though. If I use a html:link with page "browseCalendar.do" it does get called an the preprocessing goes perfectly. I am guessing that this does not use the framework as extensively as the above example though.
Is this a bug?? Or am I doing something wrong??
Let me know if you need more info.
Thanks,
Chris

public class BrowseCalendarPageController extends PageController {
    public void prepareModel(LifecycleContext context)
        super.prepareModel(context);
        System.out.println("Inside prepareModel");
        StrutsPageLifecycleContext actionContext = (StrutsPageLifecycleContext)context;
        DCIteratorBinding it = actionContext.getBindingContext().findBindingContainer("browseCalendarPageDef").findIteratorBinding("BS_CalendarFindViewIterator");
        Row row = it.getViewCriteria().getCurrentRow();
        if(row.getAttribute("StartTime") == null) {
            System.out.println("StartTime is null");
            Date date = new Date();
            SimpleDateFormat df = new SimpleDateFormat("MM-dd-yyyy hh:mm:ss a");
            row.setAttribute("StartTime",df.format(date));
        if(row.getAttribute("EndTime") == null) {
            System.out.println("EndTime is null");
            String start = row.getAttribute("StartTime").toString();
            SimpleDateFormat df = new SimpleDateFormat("MM-dd-yyyy hh:mm:ss a");
            try{
                Date date = df.parse(start);
                Calendar ca = Calendar.getInstance();
                ca.setTime(date);
                ca.add(Calendar.DAY_OF_MONTH,7);
                Date newDate = ca.getTime();
                row.setAttribute("EndTime",df.format(newDate));
            catch(Exception e) {
                e.printStackTrace();
        it.getViewObject().applyViewCriteria(it.getViewCriteria());
        it.executeQuery();
}

Similar Messages

  • Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Hi,
    I have the check box on a second Partition  but not on the Time Machine one
    I forget what I did now to get this called "Recovery HD"
    For the rest try https://discussions.apple.com/docs/DOC-4055  User Tip that links to Pondini's work on Time Machine.
    10:17 pm      Friday; May 2, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • BUG: Return listener not being called for manually launched dialog

    Hello all,
    I have found a bug in the dialog framework. To set the stage, I have a ADF Faces page with a command button on it. The partial submit property is set to "true" and the use window property is also set to "true." I also have the returnListener property set to a method in the backing bean. When I set the Action property of the command button to a global navigation rule that launches a dialog, the return listener is being called correctly when I dismiss the dialog.
    However, when I launch the dialog from an action listener, the return listener is not being called. Here is my action listener code:
      public void al (ActionEvent ae)
        FacesContext context = FacesContext.getCurrentInstance();
        ViewHandler vh = context.getApplication().getViewHandler();
        UIViewRoot dialog = vh.createView(context, "/infrastructure/ICConfirmDelete.jspx");
        HashMap properties = new HashMap();
        properties.put("width", new Integer(300));
        properties.put("height", new Integer(300));
        AdfFacesContext.getCurrentInstance().launchDialog(dialog, null, ae.getComponent(), true, properties);
      }and here is my return listener:
      public void rl(ReturnEvent re)
        System.out.println("in return");
        System.out.println((String) re.getReturnValue());
      }OK - here's an update. If the command button is in the Actions facet of the page, everything works as expected. However, if the button is in the selection facet of a table (inside of afTableSelectOne) - it does not work properly as documented here. It also works correctly if the button is in the actions facet of the table. I think that this is a bug and needs to work - my use case (as you might tell from my code) is to do a delete confirmation dialog. My short-term workaround is to use the Action instead of ActionListener property on the command button, but the issue I have is that the pop-up dialog is just a tad too small, and is showing scrollbars.
    Regards,
    John
    Message was edited by:
    John Stegeman
    Added additional information about tableSelectOne

    Gabrielle,
    Sorry for the confusion.
    What does not work:
    Initiating a dialog from the ActionListener attached to a command button (where the command button is inside an afSelectTableOne) will not fire the returnListener when the dialog is closed.
    What does work:
    Initiating a dialog by returning a dialog-based navigation rule (e.g. a string starting with "dialog:") from the Action attached to a command button (even if the command button is inside an afSelectTableOne) - the return listener is called when the dialog is closed
    What also does work:
    Initiating a dialog with either method (Action or ActionListener) when the command button is elsewhere on the Page (e.g. in the Actions facet)
    Hope this clarifies the bug. I could send a test case if desired.
    Kind regards,
    John

  • Module Function not being called by the planning function

    Hi all,
    I am having a problem with the MF assigned to the planning function of my planning level. It's not being called when executing the layout using Planning Folder. This action is suppose to be taken when saving the entries of the layout (I have made the proper setting in planning folder)
    When I execute the planning folder and manually introduce data in the layout and save, the MF is not executed but data is loaded in the infocube anyway. I have put a breakpoint in the MF but never stops, as never has been called.
    Please, could anyway let me know his comments?
    Best Regards!
    José.-

    Hi Jose,
    There could be two reasons why the FM might not work.
    1. The level selections for which the FM runs and the Layout gets executed might different and the FM is not getting the Requisite Data set to read data from .
    The solution could be check the level selections and execute the FM .Also after you save the Data ,please do an F9 to check the display message.Chekc if oyu Function module is reading any data set at all(ifit says 0 read ,0 changed statement i mean).
    2. The second reason could be that the FM is not initialised at all.To initialise the FM you need to write an initialisation FM and place it in the INIT part of the Exit function.This creates dummy records if your data set is initially empty which is the case here.Here is a sample code you might get reference from .
    Create one dummy combination
    If we don't do this, the upload won't work since the second function
    will not be executed at all in case no transaction data exists so far.
    The combination must be a subset of the planning level!
    " >>> BEGIN INSERT
      IF l_count = 1.
        EXIT.
      ELSE.
        CLEAR ls_chas.
        CLEAR: ls_chasel.
        LOOP AT ito_chasel INTO ls_chasel.
          CLEAR: ls_charng.
          READ TABLE ls_chasel-t_charng INTO ls_charng INDEX 1.
          IF sy-subrc = 0.
            ASSIGN COMPONENT ls_chasel-chanm OF STRUCTURE ls_chas TO <f>.
            IF sy-subrc = 0.
              <f> = ls_charng-low.
            ENDIF.
          ENDIF.
          CLEAR: ls_chasel.
        ENDLOOP.
      ENDIF.
      " <<< END INSERT
      COLLECT ls_chas INTO lto_chas.
      eto_chas = lto_chas.
    ENDFUNCTION.
    Hope this helps.
    regards
    Sai Vishnubhatla

  • Im gettin flash sms about not enough credit all the time! help :*

    Hi guys im gettin Alerts with BIG DISMISS about not enough credit for service.... ANd im getting it all the time   Please help me without jailbbreak   or something :S  When i press the top button to lock and when i press Home i got it ! always and its annoying i didnt had this problem...  class 0 or flash msg with big green dismiss button about not enough credit LL THE TIME...

    this is not an iphone issue it's an issue with your phone network provider

  • Yosemite will not start - stalls all the time. Cannot use MacBook

    Installed Yosemite when it was released.
    Has worked fine until today.
    When waking up from sleep, went into spinning beach ball mode. Tried restarting but stayed the same.
    TRied reinstalling Yosemite but this made no difference.
    have Yosemite Beta on separate partition. Booted to this, started ok but went unresponsive after a few minutes
    help!

    hello,
    all the temperature apps(smcfans, istat, temperature gauge) sense the temperature only when i'm charging my mac or when the mac start to become hot. at the rest of the time it just stuck on tne lest temp he sense.
    i use now macbook pro retina 13 heswell and in my old macbook air 13 sandy bridge the temp apps sense the temp all the time like it should be.
    is it normal? is it part of the "haswell saving energy”?

  • Crossdomain.xml file not being called by the SWF

    Hi,
    I'm serving an swf file compiled using flex builder 3.2 through plain HTTP, the SWF file calls a service in the same domain through HTTPS, as such, I put the following file in the root directory of my web server:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
        <allow-access-from domain="*" secure="false" />
    </cross-domain-policy>
    and name it crossdomain.xml
    When the service is invoked, I get the following error: [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
    When I check the access log files of my web server (Apache), there's no entry for crossdomain.xml (it is not being requested), why?
    When I serve the SWF through HTTPs it works OK ... any ideas?
    I have tried in several machines (different browsers, different versions of Flash player) and no success.

    I am also experiencing the exact same problem.  I'm not able to change the crossdomain.xml file located in the root directory and am going to try creating a new policy file in a sub directory.  The problem I'm having is that my web service is called from a virtual path and I do not know where to save this new policy file.
    Have you tried to load in a specific policy file?
    Security.loadPolicyFile( "http://yourdomain.com/policyFile.xml" );
    Also, you may want to check which sandbox your swf file is in.  flash.system.Security.sandboxType.  This could be another cause to the error.  My swf file is in the "remote" sandbox.

  • My brand new iphone 5 cuts out during calls all the time, doesn't send mt text messages and then when it does it sends them twice?! why?? is it just apple or my network provider? bearing in mind my iphone 4 did exactly the same, so its a new handset   sim

    Hi,
    i have just updated my iphone 4 16gb to an iphone 5 16gb
    The iphone 4 had horrific problems, for example: Cutting out on calls, it going silent, me not being able to hear the person i was speaking to and them being able to hear me, and then visa vera.. also the main button at the bottom started to break.. my text messages weren't sending and then when they did they would send several of the same one.. also with mixed messages in them.. some of the texts had been form ages ago and had been deleted anyway and bits of them would re appear in the middle of the text, but only show to the person recieveing the text.
    I thought all of this might have been some water damage as i had nearly had it for 2 years... However on Tuesday.. ( 29th Jan) i recieved my new upgrade of the iphone 5.. i was so excited, but then today.. 2 days after recieving it, its starting to do EXACTLY the same things my old phone did... cutting me off, going quiet on the phone, not sending texts, then sending several ones... sending mixed texts. Safe to say i am fuming!!! i am with vodafone and rang them today asking why?! they said it couldnt be my handset as its a new one, couldnt be the sim because thats new too so it must be the area signal.. so she checked for me.. came back to me and said that the signal in my area is perfectly fine....?!?!?! that makes it even worse!!! so i have asked to return it....!! i was going to go with a different provider thinking that it was vodafone??but after looking on here it seems like its apple? i am very disappointed as i love everything else about the phone, but its impossible to have a phone like this! especially when i use it for work too!

    My wife is having the same problems as a reciever. She works in a school as a teaching assistant and her teacher sends messages that are mixed with previous texts from ages ago.
    Can anyone shed some light on this problem or is it only her and this poster?
    2m42s

  • Sound does not work correctly all the time, on youtube.

    So I have been having this issue for a while now, and I have tried everything to fix it on my own.
    My issue is sometimes you-tube videos will play about 1-2 sec of sound then stop, the video will buff all the way out and I can watch it but no sound will come from it. Once it happens if I try to watch another video they will all have no sound, but if i start up itunes it will still play music, so it's not my PC.
    Once I close Firefox and reopen it 80% of the time it will play sound on the same video, the other 20% of times it will play 1-2secoinds of sound again and quit playing sound, if I restart fire fox again it will play just fine. Also I do not seem to get this issue with internet explore.
    Stuff I have done.
    Check for updates for my video/sound cards.
    Uninstalled/installed flash 3 times even downloads the Adobe Flash player uninstaller, then reinstalled flash again.
    Unchecked enable hardware acceleration, in the Adobe Flash setting.
    My setup
    Firefox 3.6.13
    Windows 7 64bit
    ATI HD radeon HD 4350 video card.
    I have my PC connected to my TV, sound/video is carried with a HDMI cable from my video card.

    Did you check the settings for Firefox in the Volume Mixer?
    See also:
    * [[No sound in Firefox]]
    * [[Video or audio does not play]]
    * http://kb.mozillazine.org/Video_or_audio_does_not_play
    You can also try to clear the Flash cookies and settings.
    Flash Website Storage Settings panel:
    * http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html
    See also Flash Local storage settings:
    * http://www.macromedia.com/support/documentation/en/flashplayer/help/help02.html

  • ADF Faces selectOneChoice does not raise valueChangeEvent all the time

    When using the following code in my JSF page:
    <af:selectOneChoice id="yearChoice" autoSubmit="true" value="#{selectedDate.startingYear}" binding="#{selectedDate.yearChoice}" required="yes" valueChangeListener="#{selectedDate.valueChanged}">
    <f:selectItem itemLabel="2005" itemValue="2005" />
    <f:selectItem itemLabel="2006" itemValue="2006" />
    <f:selectItem itemLabel="2007" itemValue="2007" />
    <f:selectItem itemLabel="2008" itemValue="2008" />
    <f:selectItem itemLabel="2009" itemValue="2009" />
    </af:selectOneChoice>
    The valueChangeEvent is fired most all of the time, but when you change the choice back to whatever the original was set to, it does not fire. It only fires when you choose something other than the original selection. Even after selecting other values.
    Any help would be greatly appreciated.

    Set "immediate" to false on all of the showDetailItems inside the showOneTab. It currently defaults to true (unlike all other uses of "immediate"); we may revisit that decision shortly.

  • Wifi not picked up all the time

    Hi there fellow users...hope you can help. I don't understand why my phone seems to drop its wi fi connection when i am at home. wi fi is fine laptop works with it and phone usually does but here's the problem....when iphone goes into sleep mode and i slide to unlock it is using either edge (or the other network i cant remember its name.... not3g) even though the wi fi signal is excellent. Sometimes it wont connect at all and i have to close the phone down and power up again. any ideas because this is seriously starting to annoy me!!
    also why does it take hours for my phone to notify me that i have had an email in my yahoo account?
    Thanks so much for reading any help much appreciated!!

    When connected via wi-fi, the cellular network is always available in the background since visual voicemail messages are downloaded to the iPhone via the cellular data or internet network only.
    Even though you may see the cellular data network briefly when waking your iPhone from sleep when connected via wi-fi, it should quickly reconnect to the network.
    I suggest selecting your wireless network on your iPhone followed by selecting Forget This Network. Then reconnect your iPhone to your wireless network. If your wireless network is password protected, this will require re-entering the password for your wireless network.
    Is your Yahoo account a free account accessed with your iPhone's mail client as a Push-IMAP account?
    Yahoo has had some ongoing problems and if you are accessing your Yahoo account via IMAP or POP using Fetch, there have been some reported problems with Fetch access since firmware update 2.1 was released.

  • What is the reason of window not being called

    Hello,
    I am working with a copied form YY_MEDRUCK. This form is to produce purchase order details ouput. there are about 9 windows on First page which are in following orders.
    1MAIN
    2 ADDRESS
    3 CONSGNE
    4 DELDATE
    5 FOOTER
    6 HEADER
    7 INFO
    8 INFO1
    9 LOGO
    Problem is that window CONSGNE is not called. I know it because first of all it was not showing the address on the desired position on the first page, then for the confirmation I debugged the form when ME23N was called and when I tried to see the print preview.
    I found the while debugging the form, all the windows got called off but CONSGNE window was not called.
    Could someone let me know if window is defined in a form the the page then why window is not called. Any suggestion for this ?
    Thanks,
    Mark

    I am really kind of getting confused over here. Previously changes were done by some other guy. Now though the form is a copied form but the same form is working in productive system and values are coming when I debugged in productive system there CONSGNE window was getting called.
    print program for this is SAPFM06P for ouput type Y009, same output type is also used in productive system.
    Now I donot know as this is a standard print program and even if I debug the print program i do not know where to put the break point so that I can actually see why window is not being called. The problem is i am not supposed to make changes in the standard program and only in YY_MEDRUCK form.
    Can you give me some suggestion to go in a right direction to fix up this problem.
    Thanks,
    Mark

  • H:commandLink not working all the times

    Hi,
    I am working on an application, with JSF and Spring. In the application I have one page containing a h:dataTable containing records from database. The first column in the dataTable is a commandLink on click of which I need to call method frmo managedBean defined in the action tag.
    The problem regarding the above scenario is that the commandLink is workign alternate times, like when the page loads first the commandLink will work fine calling the action method in the managedBean but when I click the same link second time it does not call the method in managedBean, then third time it works again fine. My managed Bean is in session scope.
    I need to open the details of the link in a new window which will be opened using target="_blank".
    Can anybody please help me regarding the above scenario and giving me any solution why the hypelink is behaving like this.
    Thnak You in advance.
    Edited by: rBond008 on Aug 21, 2009 1:51 AM

    i am facing the same problem.
    I have a view in session scope and which opens in multiple pages on clicking <h:commandLink target="_blank">
    in a datatable.
    The thing is page is opening fine for the alternate clicks and all command links in parent page are not functioning properly.
    They are working properly at alternate clicks.
    I found the problem from debug logs as the form is not getting submitted on alternate clicks which is making the framework to quit the "*INVOKE_APPLICATION*" phase.
    i tried using onclick="javascript:submit()" as part of each command link but it is not working fine all the time.

  • Phone makes "morse code" sound when in use, not all the time but quite frequently. The sound does not come from the speakers, infact it comes from the comments inside the phone.

    When in use my phone makes a quiet buzzing noise coming not from the speakers but the actual phone. It does not do it all the time but it is quite frequent, my phone is an iPhone 5. Please can you tell me what the problem  is?

    Make an appointment at the Genius Bar to have it evaluated by the techs there. This is not normal and is probably not something that a user can fix.

  • N8 re-connect to wlan all the time.

    I have search the forum and it seems that many people have the same problem. However I have not yet found a solution to the problem.
    Widgets are set to offline. Datapacket is "only when needed".
    Switch to wlan is "manual"
    Data use in home country is  "Always ask" . It connects without asking anyway!
    Email is set up to sync every 30 min. This is not the issue.
    I have social 1.2 installed but widgets are set to offline so it doesn't update.
    The phone is ALLWAYS connected to wlan. If I tried to disconnect, it reconnects immediately. I can make it work by setting the phone to offline -> remove the access point (home network) -> put it back to online.
    If I try to connect to home network via wlan guide now, it says "connection not available". However, if I restart the phone here then I can connect via wlan guide.
    This will make the connection work properly. Email will connect when syncing and then disconnect again like it should.
    If I restart the phone once more (now the home wlan connection is set up) then I will be back on square one. WLAN connected all the time I refuses to disconnect.
    I would like to call this a proper BUG. This has nothing to do with setup.
    Does anybody have a solution for this or do I have to wait until Nokia FIXES this?
    I'm running PR1.2
    regards
    /Jens

    I do have the wlan set to a higher priority than packet data. This is the way it should be I believe. I want it to connect via wlan first then packet data if no wlan is available.
    I just tried to kill the "xmppservice.exe" process and this solves the problem. However this requires that I buy a 3rd party task manager. So this isn't really a solution. Also this needs to be done each time the phone reboots.
    I also noticed that it is not just connected all the time but it is continuously sending data at slow rate.
    The question here is really what does the xmppservice do I why does it work when shut down?
    /Jens

Maybe you are looking for