Datetime converter problem

hi all,
I have a prob with datetime converter
<h:inputText id="toTime" value="#{shiftMBean.shift.toTime}" styleClass="GeneralTxt" maxlength="15" >
<f:convertDateTime type="time" pattern="H:mm" timeStyle="short" />
</h:inputText>
i m gettin error when i enter time as 1:30 or 21:30 or 01:30 can any one pls help me with this??
toTime is of type time in database

Your bean must have a getShift() method that return an object that have a getToTime() method that return a Date object... is your bean right?

Similar Messages

  • Javascript - custom datetime converter problem

    Hi all,
    JDev version 11.1.2.4
    After migration from JDev 11.1.2.1 to new JDev 11.1.2.4 my custom datetime converter stop working.
    After debuging I found out that client javascript converter is problem.
    Here is javascript code:
    function DateToCalendarConverter(pattern, locale, exampleString, type) {
      this._class = "rmypackage.view.convert.DateToCalendarConverter";
      this._separator = '';
      this._pattern = pattern;
      this._locale = locale;
      this._exampleString = exampleString;
      this._type = type;
      this.old_getAsObject = TrDateTimeConverter.prototype.getAsObject;// TrDateTimeConverter is not defined
    DateToCalendarConverter.prototype = new TrDateTimeConverter();
    DateToCalendarConverter.prototype.getAsObject = function (stringValue, label) {
      //some transformation
      return this.old_getAsObject(stringValue, label);
    Line that breaks javascript is " this.old_getAsObject = TrDateTimeConverter.prototype.getAsObject; " and message is TrDateTimeConverter is not defined.
    This works fine in JDev 11.1.2.1.
    Does anyone know what is the problem and is there any workaround?
    Thanks in advance

    Frank, this is not trinidad issue. Which JavaScript libraries ADF loads is definitely changed.
    In JDev version 11.1.2.1 there was Common2_0_0_beta_2.js file, and in JDev version 11.1.2.4 it doesn't exist.
    Unfortunately that file contained TrDateTimeConverter and that is why it doesnt work.
    So, is there a way I can force adf to load javascript library that contain TrDateTimeConverter?
    Oracle?
    Thanks in advance.

  • Convert Problems/Solutions into Knowledge Articles

    Hi Experts,
    I am wroking on SAP CRM 7.0 SP06 and now we are planning to implement Knowledge Article functionality.
    I have done the all configuration settings and multilevel categorization, every thing working fine. Now I want to convert problems/solutions which already created in CRM and stored in SDB into knowledge article.
    Any one please guide me how can I convert existing problems/solutions into knowledge articles. Is there any report for this?
    Thanking you in anticipation.
    Regards,
    Babu.

    Hi Kevin,
    Well, I'm new on this and have only worked on CRM 6 & 7. I'll give you my advice regarding these CRM versions. I don't know if it is supported on CRM 5.
    IMG:
    CRM >> Enterprise Intelligence >> SAF >> Name and Configure KB
    You create and define you DB as you want: ACME INC
    CRM >> Enterprise Intelligence >> SAF >> Business Add-Ins >> BAdI: Knowledge Base
    Each knowledge base should have its own Add-In implementation. So you have to implement an Add-In based on Add-In definition CRM_SAF_KB_*: CRM_SAF_KB_ACME. You can follow IMG documentation.
    In my case, the add-in already existed, since Knowledge Article functionality is standard in 7.0. KB didn't exist, I don't know why. I just created it with the name assigned on the BAdI, compiled, and everything works fine now.
    Hope it helps.
    Regards.
    Pablo

  • Canon Powershot S120 Adobe Lightroom RAW converter problem

    Have a MacBook running Yosemite. I am an underwater photographer so rely on using White Balance to get colour into my photos. Since upgrading Lightroom from 5.3 or 5.6 to 5.7 all my Canon S120 RAW files change colour after import and become a wishy washy green.  As one moves along the filmstrip, the Histogram shows calculating and all the photos lose their colour, as if the White Balance is being removed. My previous catalogue, same camera, Lightroom 5.3 or 5.6 photos import as they look on the camera. Have discussed with Canon and they think an Adobe Codec RAW converter problem. Do you have additional Codecs for Canon S120? Canon happy to discuss problem.  Their reference: 1-3374995525. Please help.

    If you look at the Tint slider with As Shot WB set, you’ll see it is maxed out at 150 for all three of your sample images. 
    I think this means that LR’s DNG Profiles don’t have the range to entirely neutralize the WB so your images are left with the wrong WB and no way to fix it. 
    Adobe profiles don’t do a good job in extreme lighting situations, especially with an overabundance of blue light which underwater pictures typically have.
    You can mess with the Calibration sliders a bit and get some of the colors to be more like the camera-JPGs have, but some colors will still be different. 
    If you have an X-Rite color-checker, that you could photograph without getting it wet, then you could make a custom camera calibration profile for that specific lighting scenario and maybe it’d work, but maybe the profiles still can’t extend beyond a certain point.  I am also not sure how you’d keep the color-checker dry underwater.

  • EZ Vinyl Converter problem transferring to iTunes - window appears  "mixmeister programme has stopped working and will shut down". Then the data is lost, and I have to try to record/transfer again.  I have now tried many times.

    EZ Vinyl Converter problem transferring to iTunes - window appears  "mixmeister programme has stopped working and will shut down". Then the data is lost, and I have to try to record/transfer again.  I have now tried many times.
    The deck is ION TTUSB05XL   Laptop   Asus V550C with Windows 8.
    Strangely I did manage to successfully transfer two tracks to iTunes, but all further attempts have failed.
    JJR

    EZ Vinyl Converter problem transferring to iTunes - window appears  "mixmeister programme has stopped working and will shut down". Then the data is lost, and I have to try to record/transfer again.  I have now tried many times.
    The deck is ION TTUSB05XL   Laptop   Asus V550C with Windows 8.
    Strangely I did manage to successfully transfer two tracks to iTunes, but all further attempts have failed.
    JJR

  • Datetime converter

    Hi i have a datetime converter to a users local datetime, but
    i am getting this error
    "{ts '2007-10-07 04:20:21'}" is an invalid date or time
    string.
    i am not sure why this is?
    <cfset startday = #NOW()#>
    <cfscript>
    tz=createObject("component","timeZone");
    setLocale("English (Australian)");
    smsDate=lsParseDateTime(startday);
    hours=listFirst(SMS_Time,":")+listGetAt(SMS_Time,2,":")/60+listLast(SMS_Time,":")/360;
    smsDate=dateAdd("h",hours,smsDate);
    serverDate=tz.castToServer(smsDate,Australia/Sydney);
    </cfscript>

    KeithLaw999 wrote:
    > so if i change the datetime format will this code
    actually change the forms
    > date and time to the eqivilent sever datetime
    if you need to handle different locales' date formats to
    build selects,
    something like this will help:
    <cffunction access="private" name="buildLocale"
    output="false" hint="creates
    valid core java locale from java style locale ID">
    <cfargument name="thisLocale" required="yes"
    type="string">
    <cfscript>
    var locale=createObject("java","java.util.Locale");
    var tLocale=locale.getDefault(); // if we fail fallback on
    server default
    var l=listFirst(arguments.thisLocale,"_");
    var c="";
    var v="";
    switch (listLen(arguments.thisLocale,"_")) {
    case 1:
    tLocale=locale.init(l);
    break;
    case 2:
    c=listLast(arguments.thisLocale,"_");
    tLocale=locale.init(l,c);
    break;
    case 3:
    c=listGetAt(arguments.thisLocale,2,"_");
    v=listLast(arguments.thisLocale,"_");
    tLocale=locale.init(l,c,v);
    break;
    return tLocale;
    </cfscript>
    </cffunction>
    <cffunction access="private" name="getDateTimePattern"
    output="No"
    returntype="string" hint="returns locale date/time
    pattern">
    <cfargument name="thisLocale" required="yes"
    type="string">
    <cfargument name="thisDateFormat" required="no"
    type="numeric" default="1">
    <cfargument name="thisTimeFormat" required="no"
    type="numeric" default="3">
    <cfscript>
    var locale=buildLocale(arguments.thisLocale);
    var tDateFormat=javacast("int",arguments.thisDateFormat);
    var tTimeFormat=javacast("int",arguments.thisTimeFormat);
    var
    tDateFormatter=createObject("java","java.text.DateFormat").getDateTimeInstance(tDateForma t,tTimeFormat,locale);
    return tDateFormatter.toPattern();
    </cfscript>
    </cffunction>
    <cffunction access="public" name="getDatePartOrder"
    output="No"
    returntype="string" hint="returns date part order
    (day-month-year,
    month-day-year, etc.) for this calendar/locale">
    <cfargument name="thisLocale" required="yes"
    type="string">
    <cfset var datePartOrder="">
    <!--- another special case, hong kong mixes chinese chars
    --->
    <cfif arguments.thisLocale EQ "zh_HK">
    <cfset datePartOrder="year month day ampm time">
    <cfreturn datePartOrder>
    </cfif>
    <!--- every place else --->
    <cfset
    datePartOrder=getDateTimePattern(arguments.thisLocale,3,3)>
    <!--- short
    date/time formats --->
    <cfset datePartOrder=rereplace(datePartOrder,"a","ampm
    ","All")> <!--- change
    ampm --->
    <cfset
    datePartOrder=rereplace(datePartOrder,"HH:mm|H:mm|HH.mm|hh:mm|h:mm|h.m.","time","All")>
    <!--- change date bits --->
    <cfset
    datePartOrder=rereplace(datePartOrder,"yyyy|yy","year","All")>
    <!---
    change date bits --->
    <cfset
    datePartOrder=rereplace(datePartOrder,"MM|M","month","All")>
    <!---
    change date bits --->
    <cfset
    datePartOrder=rereplace(datePartOrder,"dd|d","day","All")>
    <!--- change
    date bits --->
    <cfset datePartOrder=rereplace(datePartOrder,"/|-|\.|,","
    ","All")> <!---
    change delimiters --->
    <cfset datePartOrder=rereplace(datePartOrder," ","
    ","All")> <!--- clean up --->
    <cfreturn datePartOrder>
    </cffunction>
    <cfscript>
    locales=listToArray("en_US,en_GB,fr_FR,fr_CA,en_CA,th_TH,ar_YE");
    for (i=1; i LTE arrayLen(locales);i=i+1) {
    writeoutput("#locales
    #: #getDatePartOrder(locales)#<br>");
    </cfscript>
    this mess (actually part of a larger CFC that handles i18n
    stuff) will return a
    date part order for whatever locales you feed it (has to be
    java style locale
    IDs, if you're on cf7 or later you can use those in place of
    the old,
    long-winded cf style locales). from that you can arrange your
    selects in the
    correct order for your users & correctly lsParseDateTime
    what they pick into a
    valid cf datetime.

  • Converting problem OracleDate to DateTime

    I defined[b] vrhibtar property as OracleDate in my class.I want use it in a Windows Form Application.Bu t if a write
    sek.vrhibtar=Convert.ToDateTime(textbox1.text) it cant convert ..to OracleDate to System.DateTime.
    Could someone help me?
    Thanks in advance...
    Message was edited by:
    sek.NET

    Not sure if you want to convert from OracleDate to DateTime. For that you may use OracleDate's Value property. Moreover, OracleDate provide constructors for both DateTime and String.

  • Datetime Conversion Problem

    Dear All,
                   I am using an add-on for Purchase Indent. In it I m using an EditText named Indent Date. I m to use current date in this EditText in exact this format (dd/MM/yy). I have tried all possibilities but the date is going into this format (2011-11-18) in database. I m to handle this. What can I do for this problem.? The date should be in database in (dd/MM/yy) format. Here is my code.
    DateTime d = DateTime.Now;
    ((SAPbouiCOM.EditText)this.FormItem(enControlName.txtIndentDate).Specific).Value = d.ToString("yyyyMMdd");
    Am i doing anything wrong ? Please Reply.

    Hi Ankit.......
    Please check this thread.
    how to convert date in ddmmyy format
    Hope this is helpful for you........
    Regards,
    Rahul

  • Sql Timestamp converter problem in Tomcat

    Hi all,
    I have a table that one of the columns is an Oracle date type. So, I use SQL Timestamp converter in static text that is bound to the column. Here I want to display only the time part of the field, so in the converter properties I changed the pattern to HH:mm (for 24 hours format), and the type property I changed to time only.
    Everything is perfect in development using sun app server. Problem is when I deploy that to Tomcat, the column displays 00:00 regardless of the real value. Tried to change the property of the converter, but has no effect.
    The differences between sun app and tomcat besides the application server is the jdbc driver. The Tomcat uses Oracle JDBC driver.
    Could someone give me some solution about that?
    Thanks in advance.

    You should try changing java.sql.Timestamp to java.util.Calendar.
    java.util.Calendar maps to the dateTime type in XML Schema, and TIMESTAMP as a JDBC type.
    Regards,
    Mike Wooten

  • Email PDF Convertion problem

    Hi,
    Thanks to the DIS, I'm able to check-in e-mail in my Content Server;
    As for Word, Excel and Powerpoint files, I would like to convert this incoming e-mail in PDF.
    As indicated in the PDF COnvertor documentation, it is possible to convert e-mail messages into PDF.
    To realize it, I defined a new file format in the Configuration Manager of the CS.
    The name is "application/outsidein". I chose "OutsideIn Technology" as "Conversion".
    In the file extension, I added "msg" and I mapped to the newly created format.
    Thanks to that, the email message is converted in PDF. Fine !
    The problem is the result of the conversion. It is just awful. The parts indicating the sender, the subject, ... is displayed in several pages.
    My email server is Microsoft Outlook 2007.
    Does anyone know how to improve the quality of the PDF conversion ?
    Thanks in advance
    Pierre

    the arabic font may not be supported by adobe with the version of adobe that you are using,
    Try another application that allows you to export to Adobe and see if the same issue occurs.
    You may need to get a full blown version of Adobe rather that just you the adobe provided by Crystal.

  • Process order convertion problem

    Hi All
    When I am converting the Planned Order to Process Order I am getting a error message Not able to determine the consumption account.
    Can anybody tell me how this problem can be solved.
    Is there anything I have to do in customizing
    Rregards
    Dhananjay

    Hi Dhananjay,
    check your material is been assigned to valution class in accounting view in MM02
    if it is assigned then check GL account is given properly to that valution class.
    take help of MM and FI consultant
    Thanks
    Bala
    IF useful reward

  • Zen Vision M video convertion problem: image upside d

    Tried to copy .avi videos to my ZVM, but after the required convertion?(via Creative converter to .wmv format) the video appeared upside down. Tried several times with different files -- same result. Any idea?

    trm989 wrote:
    I'm not sure what exactly is the problem with the video, but whenever I upload it, it will only play up 00:08 of 24:0. For some reason, it fails to recognize the other parts of the video, and only shows the video length as 8 seconds. The video works fine when played in Windows Media.
    The size of the video is 70 MB, and the data rate is 966 kbs.
    I would say maybe the data rate is the problem . I use this program to encode my videos & it has a preset for the Zen that also works well on the Zen VM. http://forums.creative.com/showthread.php?t=527380BTW just because a video plays on the computer does not mean it will play on your device.

  • Converting problems with QT file!

    I have a few Quicktime MOV files that I want to send a friend who owns a PC. The problem is - he gets audio but NO video (black screen) when he tries to play or convert these files with any of his software. I tried to convert the file on my Mac using Xilisoft Video Convertor, but I have the same results when I try to convert the files to Divx, AVI, MP4 or any other format. I can ONLY see the video when I play the original MOV file in Quicktime. Any suggestions?

    an H264 exported from QT is a safe way to go for windows play back-its a daily occurance here
    file >export >quicktime movie > H264

  • Adobe Media Converter problems...

    Problem #1 - seems when I'm trying to convert larger files, I instantly get the message in the timeline "Conforming file..." - this NEVER goes away.  However, 9 times out of 10, if I restart my machine and try again it will instantly start encoding without any issues - so obviously there was no need for any conforming in the first place.  What could be causing this and how do I fix it?
    Problem #2 - my file are 1920x1080.  If I convert them to f4v's without any resizing, and then play in a flash player at 640x360, the video is stretched and not as "high" as it should be, despite the 640x360 being a perfect aspect ratio to the 1920x1080.  If I do convert with resizing, then it looks fine, but I'd like to have a better quality when users switch to full screen if possible...
    What might I be doing wrong?  Thanks in advance...

    If the Audio is not in 32-bit, floating point form, with existing PEK files, then it DOES need to be conformed. I do not know of any camera that shoots 32-bit, floating point Audio, but might have missed one.
    In your Project's Scratch Disk folders do you have the CFA and PEK files already? If not, they need to be generated. If so, no Conforming should go on.
    Because of the size of the CFA's, I mentioned the free space on HDD's, as many have experienced Conforming issues, when they just did not have enough space. Cannot say that this is your issue, but is something to check.
    Also, the time to Conform the Audio will depend greatly on the Audio specs. and CODEC used, plus the Duration of the Clips, plus the speed of the computer.
    As a for instances, if one Imports a muxed MPEG w/ 12-bit 32KHz Audio (MPEG CODEC), it will take MUCH longer to Conform, than would a DV-AVI Type II with PCM/WAV 48KHz 16-bit Audio.
    With the former, one can expect to go to Starbucks, get a latte and then come back to find it completing, and with the latter, it will happen almost too quickly to even see the blue progress bar. Still, the Durations and the system will weigh heavily on those general timings.
    Good luck,
    Hunt

  • H:selectOneMenu and converter problem

    Hello
    I'm working on an application (Address Database) using JSF (Base JSF libs with IBM Faces). Apache Tomcat Server 5.5.
    Since days i'm trying to solve my problem with h:selectOneMenu and converter. I can save values correctly, but i cannot display the saved value again as a selected item.
    so here is my jsf code section:
         <h:selectOneMenu value="#{personBean.person.representative}"
                        styleClass="fldDefault fldcombo">
                        <f:selectItems value="#{partnerBean.representatives}" />
                        <f:converter converterId="keywordConvertor" />
                        <f:attribute name="SelectItemArrayList"
                             value="#{partnerBean.representatives}" />
         </h:selectOneMenu>
    representatives are keywords and in the selectOneMenu, a representative keyword object is stored.
    here is my partnerBean.jsp Code:
         private List<SelectItem> representatives = null;
         * populate keywords of type REPRESENTATIVE
         public void populateRepresentatives() {
              representatives = new ArrayList<SelectItem>();
              ArrayList<Keyword> representativeKeywords = kwHandler
                        .getKeywordsByType(KW_REPRESENTATIVE_TYPE);
              for (Keyword keyword : representativeKeywords) {
                   representatives.add(new SelectItem(keyword, keyword
                             .getKwDescription()));
    so the function gets the representative keyword objects, loop through them and add a newly created SelectItem Object to the representatives list.
    There is a converter in order to save and display (should!!) the values:
    public class KeywordConvertor implements Converter {
         public Object getAsObject(FacesContext context, UIComponent component,
                   String value) {
    ....code for saving...
         public String getAsString(FacesContext context, UIComponent component,
                   Object obj) {
    `          System.out.println(((Keyword) obj).getId()+"");
              return ((Keyword) obj).getId()+"";
    i did not provide the code for getAsObject, since the saving of the combo box works fine. If it has to do something with my problem, please ask me for this code..
    The System.out.prinln prints all ids correctly, but the generated HTML Code does not select the given value in the combobox.
    So whats wrong with the getAsString Method? or is the function completely somewhere else?
    I have to say that the function ((Keyword) obj).getId() returns a long !! is that the problem?
    Any help is very appreciated

    Hello
    i implemented the function in the Keyword Class:
    public class Keyword implements Serializable {
         public boolean equals(Keyword kw) {
              System.out.println("calling equals in:" + kw.getId());
              if (kw.getId() == this.getId()) {
                   return true;
              } else {
                   return false;
    but the System.out.print is not executed...
    i tried also:
         public boolean equals(Object o) {
              Keyword kw = (Keyword) o;
              System.out.println("calling equals in:" + kw.getId());
              if (kw.getId() == this.getId()) {
                   return true;
              } else {
                   return false;
    but then i get the following error message:
    org.apache.jasper.JasperException: javax.servlet.jsp.JspException: could not initialize proxy - no Session
    hmmm, could you show me how to implement the equals Function correctly?

Maybe you are looking for