Best way to ask user for duration ??

I am wondering what the best way to set up a dialog to ask the user for a duration is ?
I need to query the user for the following duration example 1 month 3 days 5 hours 15 mins
I have tried messing around with JSpinners with date formats but they really only work with fixed calendar dates not calendar durations...
Any ideas on a neat approach..
Currently i have an individual number spinner for each of the items which looks ugly and is hard to manage as you have to take care of up to 23 hours but 24 is one day so one day etc etc..
Thanks in advance
-Alan

You continue along the same lines; keep the DTO in the session as an attribute. When you display your JSP, read the appropriate values for choices from the DTO and set your checkboxes/ radio buttons to 'selected' if they should be.
When the page is submitted, read the parameters from the form submit and update your session attribute ( DTO ) to reflect any changes the user might have made like selecting a new option or deselecting a previously selected one.
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
(Yes I know it's on JavaRanch but I think it applies everywhere)
----------------------------------------------------------------

Similar Messages

  • Best way to save user's choices

    Hello everybody
    I am working on a Website built on JSP and Servlets . One of the features of the site is to give user the chance to subscribe to different newsletters under different categories.
    There are 6, 7 available categories. So for example, user1 surfs to the page which displays category sport and under that some options (check boxes) and he can choose zero or more newsletters, and he clicks to add the next catetory options , for example entertainement. He may choose to go to final summary page without seeing all the categories.
    From the summary page , something like this is displayed to user if he has choices from 3 categoires of Sport , Social, Home ; but he did not choose anything from Movies and other categories:
    Sport : edit (hyperlink) , remove (hyperlink)
    Social : edit (hyperlink) , remove (hyperlink)
    Home edit (hyperlink) , remove (hyperlink)
    The user should have a choice to go back to each category page and edit it (he will see the page of that category with his previous choices in check boxes) .Another option is just by clicking the remove link in the final summary page, to remove that category and all the values chosen for that category.
    I am new at Java and I'd be grateful if you help me with my questions:
    1. What is the best way to keep user's choices as he surfs and adds options under each category ? I thought of using session vars , in form of 2 dimentional arrays, but I wonder if there is a better more efficient way ?
    2. At the last page, user is shown the category names with two links beside them , edit and remove ... could you also advise what is the best way to implement this as well? For example if I use array session vars, I am not sure how to display that particular page again with his previous choices shown .....
    The categories and options under each are read from database. User's choices are not commited to DB until he reviews the summary and clicks confirm button at the last stage.
    Thank you in advance
    Vajra

    You continue along the same lines; keep the DTO in the session as an attribute. When you display your JSP, read the appropriate values for choices from the DTO and set your checkboxes/ radio buttons to 'selected' if they should be.
    When the page is submitted, read the parameters from the form submit and update your session attribute ( DTO ) to reflect any changes the user might have made like selecting a new option or deselecting a previously selected one.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Whats the best way to create USER variable in BI Apps?

    I have just installled BI Apps and am trying to integrate EBS R12 with OBIEE 11g
    We have USER variable already defined in the BI Apps rpd.
    In EBS Security context init block i need to define USER variable, but when i define it... it says *'USER' has already been defined in the variable "Authentication"."USER"*
    Whats the best way to create USER variable for EBS Security Context init block?
    1) Delete the existing USER variable and then define a new one ( in this case all the places where USER variable is getting used in the rpd would become <missing>)
    And i was told that it should not be done.
    Let me know how can it be done.
    Thanks
    Ashish

    Disable existing Init block and then double click on USER variable and hit on NEW... button to create new Init block
    Thanks
    Edited by: Srini VEERAVALLI on May 1, 2013 4:18 PM

  • Best way to move users

    what is the best way to move user data and settings from one system to another? and how about backing up users? thanks in advance...

    Just wanted to clarify:
    1. Mike Bombich's method entails moving the entire /Users folder to another drive so everyone's home is moved?
    2. David Pogue's method (as described in the Missing Manual) only entails moving individual, selected home folders to another drive (and no soft links needed)?
    3. It sounds like Pogue's method is preferable anyway (for the paranoid at least), so if the 2nd drive dies or needs maintenance, I can still login as a user whose home folder is in the boot drive?
    4. So, if I use Pogue's method, all that is needed are the steps listed in my original post above, and nothing else?
    Thanks.

  • What is the best way to format Videos for ipod touch?

    What is the best way to format Videos for ipod touch? Used Quicktime Pro/ Export (iPhone setting). Videos aren't as crisp as downloaded Videos. Compressors /ipod video Setting also looks crapy (with bitrate med & High). What should I use?

    Visualhub is a transcoder with multiple input and output formats with specific setting for iPod,iPod touch. Costs around $19-used to work great but recently everything I convert suffers audio crash than closes out the player. Hopefully they will fix it.
    Elgato H.264 hardware transcoder is $99 dollars(USB stick that plugs in to Mac)-speeds up encoding of any file quicktime can handle, settings for apple tv, iphone/touch, ipod,Sony PSP. Worth the cost if you transcode a lot of video for the Touch or own an elgato HD tuner. Files work flawlessly and look great.
    Mpeg streamclip-free. Works great, has presets or can customize the output.

  • What is the best way to create space for a Yosemite download?

    What are the best ways to create space for the download of Yosemite.  I can't install it as I don't have enough space.

    Did you empty Trash?  Very important!
    How much space do you have available?  Click in the HDD icon on the desktop, COMMAND+I.
    Also try a Safe Boot:
    http://support.apple.com/kb/HT1564?viewlocale=en_US
    That will temporarily create some additional space.
    Ciao.

  • Best way to prepare photos for iPhoto printed book

    Hello,
    I was wondering what would be the best way to prepare photos for iPhoto printed book on a Macbook Pro so to achieve the most realistic results to what's on the screen
    ie. which software should I use to change photos from RGB to CMYK, photoshop or iPhoto itself. I'm guessing maybe the autofix feature in iPhoto? (I don't have Aperture)
    Secondly, which monitor color setting should I set the screen at? I'm guessing it's either Apple RGB or Colour LCD, maybe even ColorMatch RGB?
    Any any other tips that people can give in achieving the most realistic results to what you have on the screen when your printed iPhoto book gets sent back. I don't want the mid tones to disappear or become too bright because the gamma and color settings were different to what they use at the other end.
    Many thanks.

    Hi,
    The situation has changed a little, our original photos are in RAW format and some of them are slightly over saturated in the higher tones.
    I've read on other threads that it is a good idea to run the 'Enhance' tool on all photos before sending the iPhoto Book away.
    Since iPhoto's 'Enhance' tools seems to do a lot of helpful things like sharpen, adjust the levels, etc it also seems to notch the contrast up and this would prove destructive for the lighter and darker tones not captured by the camera's dynamic range.
    So as I've been advised it's best to use Apple's own tools before sending the iPhoto Book away, so I'm going to download the trial of Aperture.
    Does anyone have any more recommendations on which monitor colour profile setting to use etc. I've also read that iPhoto prints best from JPEGS so the RAW will obviously need changed. Will Aperture automatically save to Profile name: Camera RGB Profile after I've done some editing there?
    What would be the best way to prepare RAW images in aperture where some of them might need an Image Overlay in Photomatix then imported back to Aperture for printing an Apple/iPhoto style Book?
    Many thanks

  • Is there any way to report users for spamming?

    Is there a way to report users for spamming?
    One of them in this forum is now editing their handle to nearly match genuine users.

    Use the [url http://forums.oracle.com/forums/forum.jspa?forumID=29]Community Feedback and Suggestions Forum to report spam and for question about the Forum performance login performance etc... but not for product related questions.
    Tony

  • What's the best way to get user testing of our app (we're based in the UK)

    Hi all.
    We've just developed our first app for Palm and would really like to get some feedback from Palm users (our app allows users to take photos and send them as real printed postcards. We'd be very happy to give users free postcards in exchange for feedback).
    The problem we have is that Palm users are pretty sparse in the UK. We've found that user testing with non-Palm users becomes handset testing rather than app testing. We have to teach them how to use Palm ("Where's the back button?") and so the testing mainly focuses on the particularities of Palm rather than our app. Plus, we don't benefit from the user being able to compare to other Palm apps.
    Any advice on the best way to get feedback from Palm users? Especially as they'll need to download the SDK and install our app using it in order to get it onto their phones.
    If any of the users of this forum are interested in giving the app a go and sending us feedback, I'd love to send you the IPK and then chat. Just send me an email using [email protected]
    Our app is available for Pixi+, Pre+ and Pre2.
     Thanks,
     Freddie.
    Post relates to: Pixi Plus p121ueu (SFR)

    Hello freddie:
    Welcome to the Palm Forums. Thank You for the offer. I highly suggest offering it up
    to our many enthusiasts on Twitter as a beta with the #webos hashtag or joining
    the Precentral.net community and list it in a topic there, homebrew beta. You would
    get better beta response if you Package your app and put it in an ipk to simplify
    the install.
    Hope that helps... Best of luck with your app!
    notimeoff

  • What is the best way to organize pictures for huge library?

    Hello.
    I have lost 3 evenings of work the last week after the corruption of the iPhoto database. I lose my temper now . it was not the first time. but I’m ready to take long term action to improve the situation.
    I have now around 15.000 pics & something like 15 Go of data. That means I have to use an external drive to store them all. Each team the connection between the external HD & my iBook is lost, not often but can happen, the database is bugged. Of course I gonna have more and more pictures in the future, I took 5.000 Go of pictures back from Australia.
    My question is very general, what is the best way to handle this kind of database size?
    Okay, now I know that I should bake-up the Library6.iPhoto file. What else?
    Could I archive my rolls on CDs (well I should do it anyway) & delete the rolls from the database afterwards? What about the photo album? Is it possible to restore the pictures from the CDs to the hard drive?
    I have read that I should create several libraries. That could be a solution. Is it possible to split the current one? I could import the pictures in a new library, but in this case I will lose the comments field.
    I would really appreciate if you could send me your feedback about handling this size of library. Thanks in advance.

    Arnaud:
    There's is a way you can have your library on your boot drive and keep the "source" files on the external. It's using iPhoto in it's alias mode. There are pluses and minuses to this system. The pluses are that you can have a very large library. I have 18,000+ photos in my alias library. The iPhoto Library folder on my boot drive is only 1.7MB while the source files on my external HD take up 27G.
    The minuses are 1: if the external HD is not mounted then you can only view the thumbnail files and any full sized files that have been edited (the edited version is saved to the iPhoto Library folder). Any operation that requires moving a thumbnail or using the full sized version can't be run. 2: if you delete a photo from your library the "source" file does not get deleted. You'll have to do that via the Finder. 3: When you add new files it's best if you put them in their own folder with the other source folders and then import. If you try to put them in another folder it you'll have to import them manually instead of just dragging the entire new folder into iPhoto to create a new roll.
    I've created some Tutorials to help users convert and use this type of library. It's not for everyone but may hold some pluses for your situation.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application, iPhoto dB file backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    G5 Dual Core 2GHz, 2G RAM, 250G HD; G4 Dual 1Ghz, 1.5G RAM, 80G HD,   Mac OS X (10.4.8)   QT 7.1.3, 22 LCD, 200 & 160G FW HDs, Canon S400, i850 & LIDE 50, Epson R200

  • What is the best way to store data for this project?

    hey everyone,
    I have been subscribed to this for a while, not sure if I have ever actually asked anything though.
    I have a project on the go for myself/portfolio
    It is a booking sheet, where by I have a GUI that has a diary system of a day followed by time slots. This also has a date picker that can change the date of the booking sheet
    I want to be able to store mainly strings and ints,
    I need to be able to store, retrieve and on occasion change some data.
    I was looking at using something called JExcelAPI but I cant get that to work at all, I asked for assistance but was refered to here.
    what would be the best way to implement this data storage?
    davyk

    Hey everyone,
    Back again,
    I got this this little snippet of code working but want to ask you guys for a little bit of help on it. if thats ok?
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         String dataSourceName = "mdbTEST";
         String dbURL = "jdbc:odbc:" + dataSourceName;
         Connection con = DriverManager.getConnection(dbURL, "","");
         // try and create a java.sql.Statement so we can run queries
         Statement s = con.createStatement();
         s.execute("create table TEST1234567 ( column_1 char(27), column_2 char(150), column_3 char(150), column_4 char(150), column_5 char(150), column_6 char(150))"); // create a table
         s.execute("insert into TEST1234567 values('"+date+"','"+a+"','"+b+"','"+c+"','"+d+"','"+e+"',)"); // insert some data into the table
         s.execute("select column_7 from TEST1234567"); // select the data from the table
         ResultSet rs = s.getResultSet(); // get any ResultSet that came from our query
         if (rs != null) // if rs == null, then there is no ResultSet to view
                    while ( rs.next() ) // this will step through our data row-by-row
              /* the next line will get the first column in our current row's ResultSet
              as a String ( getString( columnNumber) ) and output it to the screen */
                   System.out.println("Data from column_2: " + rs.getString(1) );
         s.execute("drop table TEST1234567");
         s.close(); // close the Statement to let the database know we're done with it
         con.close(); // close the Connection to let the database know we're done with it
    catch (Exception err)
         System.out.println("ERROR: " + err);
         err.printStackTrace();
    }there are more columns, but i cut this code down.
    my question is:
    I think I want a method with an if statement to see whether the table is created or not, if not create it, but how do I go about this? I have searched the API and google, but my brain is fried.
    Also do I always have to do the try/catch and have the code of Class.forname to Statement s in all methods that want to deal with the table?
    davy

  • Best way to provision users in LDAP on a schedule?

    Hi,
    I am trying to work out the best way to automatically create users in an LDAP resource. the sceanrio is as follows:
    I have an authorititive directory from which I wish to pull users into IDM which is under my control. I have another directory which I want to provision users to. It does not have a changelog - I'm not sure that active synch will work? This directory is not under my control so I can't simply add one.
    I want to update the list of IDM users nightly from the authorititive directory then push the changes to the other directory.
    I read on here about per-account workflows, I have 10k accounts at present, but this is likely to grow quickly, so I guess that has to be ruled out on performance grounds?
    Can anyone suggest a way to create users in the remote directory. could I have a workflow which iterates through all the IDM users and provisions an account if it doesn't exist? how would I configure and schedule this?
    Thanks for your help,
    Toby.
    Edited by: Toby.ORourke on Jan 7, 2008 1:48 PM

    You stated, "This directory is not under my control so I can't simply add one", can you expand on this? Do you not have an account to connect to this directory? Do you not have a resource adaptor for this directory? If you do not have a resource adaptor you will have difficulties connecting via sim, it is not impossible. You can connect to and ldap directory using the jndi api in java.
    Your questions are of a larger design question that I feel might be out of context for this forum based on business rules we cannot answer.

  • Best way of storing content for home network?

    I have a 3rd gen Apple TV and a family with numerous iPada, iPhones and Macs. We also have a finite limit on our internet data consumption. I'm looking for the best way of managing my kids' movie downloads so that they don't keep downloading the same movies to different devices, consuming our data allowance in the process.
    Ideally I'm looking for a way of connecting a hard disk to the wireless network so that we can download direct to that, using one of our macs or iPads, and then have the Apple TV stream from there. But that seems harder than it should be, if not impossible. At the moment we all have our individual libraries on our devices but often both kids want the same movies so that means the same movies getting downloaded twice.
    Using family sharing we can share each other's purchases but each family member has to end up with their own copy of the movie in their library on at least one of their devices if they want to watch it, which means downloading multiple times.
    Is there a way of achieving a home network with a core storage device shared amongst the family members which can be used both for streaming to iPads and appletv?
    Thanks
    James

    Thank you Rudegar that is helpful. I hadn't realised that you could get an iOS app to control a NAS, so that could fix it for me.
    Can multiple users with different libraries store their movies on the same NAS? And would any user then be able to play a movie stored on the NAS by using AirPlay to stream it to the AppleTV?
    What NAS would you recommend?
    Many thanks, James

  • What is the best way to create videos for my website?

    Hi,
    I'm a public speaking coach in Sydeny Australia.  I've started a blog and want to include videos to my newsletter subscribers.  I do not want to use YouTube, because I want to only share these videos to people on my list.
    What is the best way / program to create good videos for my customers?  I think I might need to upload these videos to my server and only share the links...?  Any suggestions welcome.
    Thank you
    Trevor Ambrose
    http://www.changingtools.com

    Trevor:
    This may be more information than you asked for, but here goes:
    Get a Samsung S10 Video camera (under $400) and a Zoom H4n Professional audio recorder.  Get Adobe Production Premium CS5. The camera shoots 1920 x 1080 square pixel in a better quality than a $6000 Panasonic P2 from 4 years ago. The downside, the audio from the Samsung is poor. That's why I recommend the Zoom H4n. On the Premiere timeline, you simply align the waveform of the video with the higher quality wave from the H4n. You can buy a medium sized fold up greenscreen and place any background behind your talent.  CS5 has Ultra built in, so you can easily key out the green right on the Premiere timeline revealing a nice background of your choice.
    I would design a web page based upon your current website's look and feel that will be a template for your videos. You export your finished video from the Premiere timeline as an f4v. I would recommend 16x9 widescreen and use the Flash preset of "Web Large Widescreen". You can also specify a "Fullscreen" button on the video's controller. The quality is so good that the video will look good even when your client watches it full screen. You import the video into Flash CS5 using the same document dimensions as your video size.  You create a Flash template and "Publish" your Flash movie TO your template. Then all that is necessary is to upload all of the associated Web ready files to your server via FTP or Dreamweaver. This workflow streamlines the process and saves hours of fiddling around.
    As far as the Web page goes that has your video, give the pages an HTML name like; vid0096hvc.html and use the Robots No Follow tag:
    <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
    This is the next best thing to having a client log-in and works in a setting where people aren't paying
    to see the video, but you still don't want them plastered all over the internet.

  • Best way to light photos for printing

    Hi All,
    I previously posted on the forum on what to do if my prints are too dark. After getting helpful feedback from other forum users and confirming with the pringint company, I made sure that my monitor is calibrated to 90 lumens. Now am wondering the best way to lighten the photos for export (as I can't see the impact of gamma like in the print dialog.)
    Backgound:
    I setup my macbook pro to get the correct color calibration to print correctly. (I am exporting to sRGB colorspace to send to the online printing company). After calibrating my laptop lcd, it is apparent (by sending a few test photos) that the prints still come out a little too dark. As I am working on a laptop, I am limited to how much the screen vs exported photos can be adjusted. Therefore, I am looking on the best way to retouch the photos for exporting. Also note that I am using apple aperture.
    Which is the best way to lighten up the photos (or a group of images that are taken under different lighting situations exposures, that would also keep my workflow streamlined?
    1. Adjust the images on export using a gamma adjustment. (easiest to implement but since aperture only shows gamma adjustments on printing and not exporting, setting this correctly will be a guess.)
    2. Use a curves adjustment to lighten the photo. (Might be the easiest to implement and see the results but need to create separate version for viewing on screen vs printing which isn't hard but adds a layer complexity).
    3. Use some of the exposure/brightness/showdow recovery sliders. (Unsure of the best sliders to use and each photo needs separate adjustments. In addition, like 2 above, separate versions would be need to display on screen vs printing).
    4. (Other ideas?).
    I'd appreciate everyone's thoughts.
    Thanks,
    Jeff

    Hi,
    The situation has changed a little, our original photos are in RAW format and some of them are slightly over saturated in the higher tones.
    I've read on other threads that it is a good idea to run the 'Enhance' tool on all photos before sending the iPhoto Book away.
    Since iPhoto's 'Enhance' tools seems to do a lot of helpful things like sharpen, adjust the levels, etc it also seems to notch the contrast up and this would prove destructive for the lighter and darker tones not captured by the camera's dynamic range.
    So as I've been advised it's best to use Apple's own tools before sending the iPhoto Book away, so I'm going to download the trial of Aperture.
    Does anyone have any more recommendations on which monitor colour profile setting to use etc. I've also read that iPhoto prints best from JPEGS so the RAW will obviously need changed. Will Aperture automatically save to Profile name: Camera RGB Profile after I've done some editing there?
    What would be the best way to prepare RAW images in aperture where some of them might need an Image Overlay in Photomatix then imported back to Aperture for printing an Apple/iPhoto style Book?
    Many thanks

Maybe you are looking for

  • Battery and charging issues

    I have a DROID X and have been having issues for the last few weeks with my phone staying charged and charging. I have had both my home and car chargers replaced. Everytime I charge my phone it says that it is charging bit the battery level does not

  • Final Cut Pro 6 - 'Out of Memory/Error Code'

    Hey All, I'm in the final stages of editing a documentary and I keep running into an 'Out of Memory' error code in Final Cut Pro 6.0 when trying to export a reference file. The finished film is 81 minutes long and contains 19 sequences. I have all 19

  • Backed up my photos and have lost them

    Ok so bit of a complicated one, i have got an iphone 4s and itunes on a mac Ok so came back off honeymoon about 6 weeks ago and proceeded to update my Apple account with my new surname (double-barrel) and edited email address, as far as I remember so

  • Iphone 4s doesn't vibrate after installing IOS 8.1

    My Iphone 4s, 32GB lately doesn't seem to vibrate and i suppose it is after the recent update of IOS 8.1 . It does vibrate when i do certain tasks like keying in a wrong password or when i go into Settings>Sound to ensure that vibrate is on for both

  • Charing Nokia N70 with usb data cable?

    Hello, I am interested if it is possible to charge my nokia n70 ME through usb data cable, and if it is, what is the required software for that? Doesn't seem like PC Suite is offering this kinda of feature.