ActionListener and Timer

Hello,
please help me. I have a problem with a timer and the actionlistener. here is my code:
public String button2_action() {
ActionListener listener = new ActionListener(){    
int count = 1;
public void actionPerformed(ActionEvent e){
count++;
String zwischena = String.valueOf(count);
zeitausgabe.setValue(zwischena);
if (count == 6){  //30 Sekunden
count = 0;
//bn_v_fzg_shDataProvider.refresh();
zeitausgabe.setValue("Timer abgelaufen");
//form1.discardSubmittedValues("save");
test(count);
Option[] clear = new Option[0];
getSessionBean1().setListOptions(clear);
timer.stop();
timer = new Timer(1000, listener);
timer.start();
return null;
The function actionPerformed does not set the new object variable in the sessoinbean. can someone help me?

Perhaps an exception is being thrown? You could use Creator's debugger and set a breakpoint in your actionPerformed method. Alternatively, I notice that there's a java.util.Timer (rather than javax.swing.Timer) that may be a better fit for web apps.

Similar Messages

  • Backing up photos on iMac using external hard drive and time machine

    How do i back up photos from my imac using an external hard drive and time machine
    Thanks in advance

    Apple explains how to use Time Machine in http://support.apple.com/kb/ht1427.
    Setting up and using TM is very simple to do, connect any external HD (format as Mac OS Extended (Journaled) using Disk Utility ) and your computer shoudl ask if you want to use that EHD for a Time Machine backup. If you have any questions visit your local Apple Store or reseller and they can answer how to setup and use TM and also should be able to offer suggestions on EHDs. My personal preference is OWC (www.macsales.com) Mercury Elite Pro due to the build quality and OWC's level of support.

  • I'm having a hard time setting up my external hard from with my AirPort Extreme and Time Machine Backups.

    I have been using a Mac Mini with an external hard and Time Machine.  I bought an Airport Extreme and have had problem setting up the hard drive using the USB port on the Airport Extreme.  I also just recently bought a Mac Book Air and hope to have both computers back up to the external hard drive using Time Machine and Airport Extreme.  I have been using the optical drive from the Mac mini to load programs into the Mac Book Air.  I think I'm just getting confused in Finder.  I am just not seeing the hard drive.  I ended up plugging the hard drive back into the Mac Mini and that is work fine again.  How do I setting the external hard drive up to the AirPort Extreme and use for both computers?  Or at least to start with the Mac mini.

    It's critical to understand that Time Machine (TM) stores backups differently between local and network drives. That would mean the TM backup on your locally attached USB hard drive will not be directly useable when it is connected to the AirPort Extreme Base Station (AEBS). There is a way to copy a local version to a network version, but it is not fool-proof. When you do connect this drive and point TM to it, TM will start a brand new backup, leaving your existing backup as is.
    If your current backup is critical to you, you may want to consider getting a second USB drive to attach to the Extreme and use your existing one as a backup ... or use TM's multi-backup process to backup to more than one destination drive alternatively.
    So, at this point, you may want to make a decision on how you want to go forward to help provide a solution for you.
    To directly answer your question, when you go to select a destination for a Time Machine backup, the drive(s) that show up under "Backup Disks" are those that TM already recognizes and has backed up to. Those listed under "Available Disks" are drives (either local or on the network) that TM can back up to.

  • Date and Time in Sender File Adapter Target Directory

    Hi there,
    is there a way of using Date and Time from XI to the Target Directory naming? To use variable substitution some fields of the message had to contain that date and time information, which is not our case.
    For filename you can use "add time stamp" option, but and for target directory?
    Thanks and regards,
    Henrique.

    > <i>Do you have further information on how to perform
    > this with shell commands?</i>
    > >> You need to write a shell script. This script will
    > add the date/time stamp into the folder in the target
    > system. This shell script is executed from the File
    > adapter. So once the file is written into the target
    > directory, then it will rename the directory.
    Hi there, Moorthy
    We've tried to write that shell script that you mentioned, but now we have a few doubts on how to make it create the proper directory.
    In the file adapter, my target directory is "/%var1%/%var2%/", where %var1% and %var2% are variable substitutions, referencing data which comes from the payload. Now, I need the shell script to append "/<Year>/<Month>/" in the target directory. But where to archive the script? If it stays in the root directory, than how to make it create "/<Year>/<Month>/" folders inside a directory which is variable (/%var1%/%var2%/)?
    Is there a way of passing %var1% and %var2% as parameters for the shell script?
    Thanks a lot,
    Henrique.

  • Unable to insert date and time when using date datatype

    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    Thanks

    user633278 wrote:
    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    ThanksYou most certainly can save the time. A DATE column, by definition stores date and time. What you describe is a presentation problem, and setting nls_date_format at the system as an init parm is the weakest of all settings as it is overridden by several other locations.
    without seeing the exact sql that produced the error (not just your description of what you think you were doing) it is impossible to say for sure.
    However, I'd suggest you read http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/

  • DVD camcorder (VIDEO_TS) - preserve clip date and time

    I had asked this question on the forums a long time ago but iMovie did not seem to be supporting it reliably at the time. But since some time has passed, I wanted to check if iMovie '09 can import clips from a mini DVD (those used in camcorders to capture video directly on to DVD media) AND preserve the clip's date and time.
    What I see is that the first clip gets some date and time related to the event's date and time (perhaps the start time of the first clip?) but all the other clips which are imported, get timestamps of 1 second after that first clip's timestamp.
    These are all my home videos and in order to keep each clip short, I have had the habit of pausing after about a minute or two, resulting in MANY clips over MANY DVD's, so manually updating date and time is absolutely the last resort.
    The DVD player can see the clip date and time correctly, and so could the camcorder (I have since sold the darn thing!) so I know that information exists somewhere in the DVD, but it seems like iMovie is unable to "see" it.
    Any help would be appreciated, including programmability hints.

    Thank you for your post.  I figured out why iMovie was assigning today's date to everything that I imported.  It turns out that many of my video files did not have a real "created" date--some had no date at all and some had Wednesday, December, 1967 or 9 (I think).  iMovie defaulted today's date in both of these situations.  I took your advice and ot A Better Finder Attribute and easily converted all of the files using the option to copy the "modified date" into the "created date" attribute.  Now everything imports correctly into iMovie.

  • What is diff b/w order series and time seriesu2026

    what is diff b/w order series and time seriesu2026

    Hi S R,
    Order series is the concept used in SNP whereas time series is concept used in DP.
    ie In SNP, orders are stored in livecache as Order series whereas in DP, the historical data is stored with respect to time, ie time series in DP.
    Regards
    Senthil mareeswaran.

  • How can I get rid of the dates and time on my Notes

    How do I get rid of the dates and times on my Notes that appeared when I updated to 8?

    Yes, it's seems like a poor design decision.
    By putting the date on the line below the Note title in the Notes Index, the app shows half the number of notes per page AND if you have a large number of notes, it takes twice as long to stroll down.
    I doubt the designer actually uses the app. 
    TSAW

  • How do I delete duplicate songs? (date and time stamp are identical

    I put my cd collection in itunes and now have duplicates of most songs (don't know how I did that). The duplicates have the exact same date and time, so the method to delete a "newer" duplicate will not work. Is there a simple way to delete exact duplicates from the itune library?

    This application can help.  It's US$15.  http://dougscripts.com/apps/dupinapp.php

  • Wifi problems ipad 3rd and Time capsule 4th generation since iOS 8 upgrade

    Does anyone have the same issue?... I have wifi problems betwen ipad 3rd generation and Time capsule 4th generation since iOS 8 upgrade. Solution: I must switch on/off airplane mode in order to start using Wifi...
    I have the latest updates for all equipment and I don't have similar problems with my iphone, macbook or mini-ipad.

    It works ... removing and reestablish the wifi connection works. Thanks ...

  • Cannot Find Photos on External Hard Drive Using iPhoto and Time Machine

    Hi everyone,
    This is my first time posting on this forum and am really hoping for some help! I have a 2006 PowerBook G4 that is running iPhoto and Time Machine, and I've used an external hard drive to backup everything on the computer via Time Machine. When I plug the external hard drive into my newer 2010 MacBook Pro, I follow this path to try to access the photos:
         External Hard Drive > Backups.backupd > PowerBook G4 12" > Latest > Macintosh HD > Users > Me > Pictures > iPhoto Library
    When I click "iPhoto Library", I get the following message:
         "The iPhoto Library is a Time Machine backup, and so cannot be used as the main library.  Relaunch iPhoto with <option> key held down to choose another   library."
    So, I do as the error message says and I hold down the "option" key and iPhoto launches and says:
         What Photo Library do you want iPhoto to use?
    In this case, I choose "Other Library..." and again follow this path:
         External Hard Drive > Backups.backupd > PowerBook G4 12" > Latest > Macintosh HD > Users > Me > Pictures > iPhoto Library
    When I choose this, I again get the following message:
         The iPhoto Library is a Time Machine backup, and so cannot be used as the main library.  Relaunch iPhoto with <option> key held down to choose another   library.
    So as you can see, I'm feeling a bit like I'm chasing my tail in trying to open these photos. I did follow another user's advice and confirm that all photos are infact on the hard drive by using the "control" button and clicking "iPhoto Library" under the pictures folder, and choosing "Show Package Contents". All looks to be in tact in the "originals" folder when showing package contents, however, I just can't find a way to actually view the photos in iPhoto. I really don't want to import all the photos to my current MacBook Pro, because I'd like them to live on the external hard drive (which is formatted for Macs) so that I can browse the photos on the external drive, rather than housing it on my computer.
    One other thing I tried was opening iPhoto on my MacBook Pro and going to File > Browse Backups...  which essentially opens Time Machine and shows me the photos on my MacBook Pro but gives me no option to view them from my External Hard Drive.
    Any super users out there willing to lend me some help?
    Thanks!

    The iPhoto Library is a Time Machine backup, and so cannot be used as the main library.  Relaunch iPhoto with <option> key held down to choose another   library.
    You can have an iPhoto library on an external drive and use it from different machines
    and you can have a Time Machine backup
    The two can not be on the same volume - and iPhoto can not access the TM backup - it must be restored to use it
    LN

  • Since latest update to airport extreme im getting 10 unknown base station and time capsule items showing in airport utility as a network.  when able to "forget" them they initially drop off but soon return. how do i get them deleted and stay that way

    since latest update to airport extreme im getting 10 unknown base stations and time caps showing up as though they are a part of my network. sometimes i can "forget" them and they will disappear initially but soon return. i need and want only my connection inside my home . any ideas. i have done a factory reset and set up a new network but they continue to show up.

    I'm not convinced that the problem lies in Airport Utility. This same thing was happening to me, nearly exactly as you describe it. The thing is that with me, the problems clearly started when I updated the firmware in my Airport Express (n). That's when all the wacky stuff started happening. Sometimes it would show up in AU, sometimes it didn't and even if it didn't, I could still access the internet through it.
    But as you said, the problems got really bad when another Express (b/g) was put on the network with it. Even when it did work, the (b/g) would make it impossibly slow.
    You know more about this than me, and clearly have more patience if you've restarted the network fifty times. I gave up at about ten.
    In any case, your solution is more of a work around and if you're still having that slow connection problem, I'm not sure you've got it. But thanks for your reporting of this. At least I know I'm not crazy.

  • Problem with date and time preference

    hi there,
    i set my date and time and the time support yesterday and then i click the lock button to prevent further chance and last night i shut down my iMac, open it again in the morning the lock open back up and the timezone support change.
    i redo that again and restart my iMac the same thing happen. is this a problem with my software or everyone have this problem?
    any idea what should i do?
    thanks in advance
    regards AL

    Having the same problem, & am running Parallels (which I haven't used for some time) not boot camp. I tick the box labeled "Set time automatically" & lock the "click the lock to make changes". When I reboot, the Lock is unlocked and the "set time...." is unticked. Any ideas. Cheers.

  • Problem with date and time syncing itouch to macbook

    i have a problem with the date and time on ical when i sync my itouch4 w my macbookair. whatever i entered into my calendar in itouch will appear different in my ical( with a 6 hrs advance difference) and the alarm i set on my itouch in the calendar doesnt ring at the right time as set even though it is shown the time that i wanted.
    Both my macbook n itouch are set to the same time zone and i have checked this many many times n the time is the same on both machine. but i just dont understand why is there a time difference when synced and my alarm just dont sound at the time it was supposedly set. it rings hours later n showing a different time that it was set but in the parenthesis the right time that i had set it.
    One time my computer ran out of battery n went into sleep mode and when i open it again, the time n date setting was all off. which im surprised why it had gone off. So did this create the problem i have now with the date n time sync or something else?
    please help!!!!

    Having the same problem, & am running Parallels (which I haven't used for some time) not boot camp. I tick the box labeled "Set time automatically" & lock the "click the lock to make changes". When I reboot, the Lock is unlocked and the "set time...." is unticked. Any ideas. Cheers.

  • My APPLE ID is NOT working properly. I am frustrated beyond belief I have tried time and time again to change my apple ID and it keeps reverting back to my original ID!! I even set up a new email to try to submit a new id and it still does not work

    My APPLE ID is NOT working properly. I am frustrated beyond belief I have tried time and time again to change my apple ID and it keeps reverting back to my original ID!! I even set up a new email to try to submit a new id and it still does not work

    To change your Apple ID, follow these steps:
    Go to My Apple ID (appleid.apple.com), click "Manage your Apple ID", and sign in.
    If you have two-step verification turned on, you'll be asked to send a verification code to the trusted device associated with your Apple ID. If you are unable to receive messages at your trusted device, follow the guidelines for what to do if you can't sign in with two-step verification.
    In the "Apple ID and Primary Email Address section," click Edit.
    Enter the email address you want to use, then  click Save Changes. Apple will send a verification email to that  address.
    Open the  email  from Apple, then click Verify Now in the email.
    When the My Apple ID page opens, sign in with your renamed Apple ID.
    If you have two-step verification turned on, you'll be asked to send a verification code to the trusted device associated with your Apple ID.
    After you see a message indicating that verification is complete, remember to update all of the stores and services that you use with your  Apple ID.

Maybe you are looking for