Af:convertDateTime doesn't convert the same date if entered twice

I have a jsf page that only contains an af:inputDate field. Nested in the af:inputDate tag, is a af:convertDateTime tag with two alternative patterns: "dd/MM/yy" is the main pattern, and "ddMMyy" is the secondary pattern.
The problem I'm having is that when I enter the same date more than once consecutively, the date doesn't get formatted.
example:
I enter: "111111" I get "11/11/11"
then I enter again: "111111" and it doesn't get converted to "11/11/11"
Has someone encountered this problem? Is there a solusion?
source:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx"
id="pt1">
<f:facet name="center">
*<af:inputDate label="Label 1" id="id1">*
*<af:convertDateTime pattern="dd/MM/yy" secondaryPattern="ddMMyy" dateStyle="long"/>*
*</af:inputDate>*
</f:facet>
<f:facet name="header"/>
<f:facet name="end"/>
<f:facet name="start"/>
<f:facet name="branding"/>
<f:facet name="copyright"/>
<f:facet name="status"/>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
</jsp:root>
Edited by: 825127 on Jan 3, 2011 10:39 AM

I also face the same issue. Any solutions
Test case 1:
Enter 101110 and it formats to 10/11/2010
Now delete(erase) 10/11/2010 and enter 101110 and tab out, now the formatting doesn't work.
Also I have another question. how to control the year to start with 19 rather than 20
for example if the user enters 101138, then i want it to be 10/11/1938 rather than 20/11/2038
Edited by: user10438627 on Feb 10, 2011 9:36 AM

Similar Messages

  • MY CONVERTED DOCUMENT DOESN'T LOOK THE SAME

    WHEN I CONVERTED THE DOCUMENT ..IT DOESN'T LOOK THE SAME.. MISSING LETTERS.. ODD CHARACTERS ETC

    Converted from what to what?  Using what software?
    P.S. please don't post in all-caps; it is very difficult to read!

  • How do I set all photos in a project to the same date (rather than simply time-shifting)?

    I have a bunch of old scanned photos in Aperture (current version - 3.5.1), and am trying to tidy up the metadata, especially the dates.
    This is turning out to be quite a task, as the date gaps between scans are all over the place. For example, in one project I might have photos scanned between 2004 and 2007 that all took place on one day in 1999.
    This means the native "adjust date and time" function in the metadata menu doesn't work, as it is a little too clever in its timeshifting. If I highliht the whole project and change it all to 1 June 1999, the 2004 shots get changed to that date but the 2007 scans are dated 2002, with Aperture "cleverly" preserving the inaccurate three year gap in the original scans' metadata.
    This is making the process of fixing my data far more arduous than it needs to be.
    I feel like my situation can't be that unusual, and their must be a way to override this behaviour. I'm not fussy about preserving logical time gaps between shots  but I'd like them to have the right year and month (so a "dumb" solution that gave them all idntical date and times would be fine).
    Can anayone help? Thanks in advance!

    What is your Aperture version?
    If it is compatible with iPhoto, open the Aperture library in iPhoto and use iPhoto's Batch Change to adjust the date of your scans:  (File > Open Library in iPhoto)
    In iPhoto select the photos in the event and go to the main menu bar:
    Photos  > Batch Change > Set Date:
    Select the initial date and time of your photos and a very small gap, e.g. 1 second. All photos will set to the same date, stepped by one second to preserve their time order.
    Afterwards switch back to Aperture using "File > Open Library in Aperture).
    this works very well with Aperture 3.5.1 and iPhoto 9.5.1.
    -- Léonie

  • All photos appear to have the same date since I purchased my MacBook

    All photos appear with the same date since I purchased my MacBook in2009

    Help us to help you: There are 9 different versions of iPhoto and they run on seven different versions of the Operating System. The tricks and tips for dealing with issues vary from version to version and OS to OS. So before anyone can help, they need information to work with. Basic stuff:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.
    With this kind of information somebody can develop a starting point for troubleshooting the issue.
    Posts that consist of "iPhoto doesn't work. Help" or "iPhoto won't print" or "Suddenly I have no photos!!!!!!!!!!" mean that any helper is simply guessing. More information means you get better assistance. (And no, more exclamation marks do not get help faster or make your issue seem urgent. They just make it seem like you have a stuck key )

  • The same selection doesn't return the same result in 2 identical systems

    Hi,
    After a copy we have 2 systems with same data.
    In a program the same selection doesn't returns the same result, it seems that the sort is different.
    I have checked indexes but they are ok in both systems.
    Here is the selection:
    SELECT but000~partner
    INTO TABLE lt_partner
    *UP TO 50 ROWS
    FROM but000
    JOIN but020
      ON but020partner = but000partner
    JOIN adrc
      ON adrcaddrnumber = but020addrnumber
    JOIN but100
      ON but100partner = but000partner
      WHERE but020~addr_valid_from LE '20100727000000'
      AND   but020~addr_valid_to   GE '20100727000000'.
    Is there a customizing point to define how the database must be sorted ?
    Thanks.
    Edited by: julien schneerberger on Jul 27, 2010 4:18 PM

    Hi,
    Thank you for your answer.
    Result is the same and I don't sort data after the selection.
    Do you think the system copy has "broke" the records order in database ?
    If it is the case it will be impossible to reproduce the same sort, is it right ?
    Edited by: julien schneerberger on Jul 27, 2010 5:19 PM
    Edited by: julien schneerberger on Jul 27, 2010 5:20 PM

  • Convert the current date format.

    Hi All,
    I am working on database 11g. My nls_data_format is 'DD/MM/YYYY'.
    SQL> SELECT SYSDATE FROM DUAL;
    SYSDATE
    21-04-2009
    I would like to get the data format as 'MM/DD/YYYY'. I am using the to_date function but getting the error.
    SELECT TO_DATE(SYSDATE,'MM-DD-YYYY') FROM DUAL; Also after adding the to_char I am not getting the correct data format. Could any one suggest how I can get the data in correct format.? Also I changed the nls_date_format, still getting the same date formt.
    Thanks
    SUN

    User SUN@ wrote:
    Thank you for your replay.
    I want in date mode, not in charector, because after that I am doing calculation on these dates.
    Thanks
    SUNSo, don't worry about the format!
    If you've got a date that's in DATE format, you don't need to worry about what that format is; it's purely internal to Oracle. Since we're not an Oracle database, any time we refer to a date, we do so as a string (eg. 20th April 2009, 20/04/2009, etc). Any time Oracle outputs a date to us, it must convert the date into a string so us humans can understand it - it does this either through the explicit to_char() function that we specify or implicitly according to the nls_date_format parameter.
    So, you only need to worry about formatting dates:
    a) when you convert a date-as-a-string to Oracle's DATE format (eg. to_date('01/01/2009', 'dd/mm/yyyy') )
    b) when you're displaying a date (eg. to_char(sysdate, 'dd/mm/yyyy') )
    If you're manipulating dates, you can leave them in the same format: eg, sysdate + 2, add_months(your_date_col, 3), trunc(your_date_col), etc

  • Error while adding a second template to the same data definition

    Hi,
    I am quite new to XML Publisher. I am developing a report using XML Publisher.
    I have added one template to the Data Definition. When I tried to add another Template(with different name as previous, to the same concurrent program and application) to the same Data Definition I am getting the following error.
    Error: You entered a duplicate template entry. Please change the Name, Code and/or Application and reapply.
    Can anyone help me out solving this problem. I am reaching my deadline. Please suggest me what can be done.
    Regards,
    Sita

    Hi
    Try to change the Template code name also and then check it.
    Thanks
    Sudheer

  • Need to convert the binary data in blob field to readable format

    Hi,
    We need to convert the Binary data in the BLOB field to readable format and need to display it in Oracle Apps Environment,does anybody come across the similar requirement.
    please advise, thanks in advance.
    Regards,
    Babu.

    You could use standard Attachments functionality here ... if the blob is not in FND_LOBS, insert into FND_LOBS, fnd_attached_documents etc to enable viewing via "Attachments" to the entity the blob is related to.
    Gareth

  • Multiple MM schedule lines for the same date

    Hello All Gurus,
    I am facing a problem where the MM schedule lines are divided into various quantites for the same date. For example on 02/11/2010 the total quantity is 120, it is appearing in the below form in ME38:
    02/11/2010 - 40
    02/11/2010 - 40
    02/11/2010 - 40
    Although this is not an error, but my client is not happy with this. Can someone tell me why I am getting this error? Is it because of the rounding value that we maintain in MRP 1 view of material master record? Or is there any other setting that I am missing?
    Please let me  know. I would be very much thankful to you.
    Thanks and Regards,
    Umakanth

    Hi,
    Before changing the setup, note that sometimes it is beneficial to split one demand into multiple delivery schedules. Especially if the demand is bigger than equipment type (container/truck etc.). If you want to manage inbound transportation for such delivery schedules, it is much simpler to do this when each delivery schedule is not bigger than one equipment.
    Regards,
    Dominik Modrzejewski

  • Multiple repeating SubForms binding to the same data node

    Having multiple repeating SubForms binding to the same data node : In our documents, many times we need to display information from same table in multiple locations. For example, if document displays information of Insureds on one page and information of drivers on another page, we need to create a LiveCycle document with two SubForms. Each SubForm needs to have a repeating binding to CommonInsured element in XSD.  LiveCycle Designer is not able to handle such case. We cannot have two subforms bound to the same node, ONLY in a case where repeating option is selected for data binding.
    The only way I have found out is the following Javascript
    //Get the data node from XML. You will find the code for this function in //JavaHelperFunctions library.
    // InsuredDataRepeatingSubForm is a second subform.
    //You need to manually add instances to this subform at the
    //runtime and Insured data to each instance.
    var insuArray = JavaHelperFunctions.getInsureds();
        var i=0;
        for( i=0; i<insuArray.length; i++)
           if (i>0)
    var thesubform = this.InsuredDataRepeatingSubForm.instanceManager.addInstance(i);
                  thesubform.InsuredName.rawValue = insuArray[i].fullName.value;
           else
                   this.InsuredDataRepeatingSubForm.InsuredName.rawValue = insuArray[i].fullName.value;
    Is there any way I can achieve directly using bindings since we are trying to minimize javascript that changes the layout of the form?
    Thanks in advance!

    Unfortunately not. I've spent countless hours/days trying to do the same thing. You have to use code. The form consumes all the data it can into the repeating elements until there is none left and it is not reused.
    Here's a function I wrote just for that purpose. Feel free to use it:
    function loadData(source,target){
    target.setInstances(source.count);//set the target's subform instances to match the source's
    for (var a=0;a<source.count;a++){//loop through each subform instance
      var sourceSubform=source.resolveNode(source.name.substr(1)).all.item(a);
      var targetSubform=target.resolveNode(target.name.substr(1)).all.item(a);
      for (var b=0;b<sourceSubform.nodes.length;b++){//loop through the children of each
       if (sourceSubform.nodes.item(b).className=="field" && targetSubform.resolveNode(sourceSubform.nodes.item(b).name)!=null)//check for matching fields
        if (typeof(targetSubform.resolveNode(sourceSubform.nodes.item(b).name).value.exData)=="undefined" ||
         typeof(targetSubform.resolveNode(sourceSubform.nodes.item(b).name).value.exData.body)=="undefined")
         targetSubform.resolveNode(sourceSubform.nodes.item(b).name).rawValue=sourceSubform.nodes.item(b).rawValue;
        else
         targetSubform.resolveNode(sourceSubform.nodes.item(b).name).value.exData.loadXML(sourceSubform.nodes.item(b).value.exData.saveXML(),1,1);
       if (sourceSubform.nodes.item(b).className=="instanceManager" && targetSubform.resolveNode(sourceSubform.nodes.item(b).name)!=null)//check for matching subforms
        loadData(sourceSubform.nodes.item(b),targetSubform.resolveNode(sourceSubform.nodes.item(b).name));
    Just make sure the source and target subform hierarchies are identifal, same name and all. It will recurse down the tree and transfer source fields (rich text and plain) to their sister targets.
    Kyle

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • Can we with ligthroom  have the sofware set up on multiples computer mac and mc and share the same dat base library?

    can we with ligthroom  have the sofware set up on multiples computer mac and mc and share the same dat base library?

    No, a Lightroom catalog cannot be on a networked drive, and can only be accessed by a single user at a time.

  • Sharing the same data on two macs

    Hello, I have two Macs and would like to keep the same data on each laptop. I don't think iSync is the tool for the job. Can anybody out there advise of an easy affordable method of ensuring both my machines are sharing the same data; itunes, photo's, files, etc.
    Many thanks.

    Get FoldersSynchronizer You can set up a selection of folders and sync them between two Macs.

  • Multiple reads of the same data from Multiprovider by Query (Bex)

    Hello, guys!
    We're having issue with performance of a query built on Multiprivider. During our investigation, we've found out that within one run of a Query, it several times refers to InfoProvider for the same data (see image attached).
    Do you have ideas what can be a reason for multiply reads of the same data from Multipvovider?

    Hello Nikita,
    By "copy of a query" i meant something like this as shown below :
    *Kindly click on the screenshot for a better view.
    1) See the highlighted portions below in the screenshot . See Query 2 highlighted and name of the BEx query highlighted.
    2) See the highlighted portions . See Query 3 highlighted and name of the BEx query highlighted.
    As you can see from the above screenshots i have used the same BEx query 2 times by the name of Query 2 & Query 3 . Infact i have not attached the complete screenhsot . In that i have used it 6 times.
    I have to analyze this a bit in detail but what i am guessing is that when this WEBi is called the single BEx is also called multiple times. And hence it hits the Info Provider multiple times resulting in a decreased performance.
    But this does not mean that this is wrong approach. There are various areas where you can improve for example :
    1) Either improve your BEx query if possible or use aggregates or something like that .
    2) Use the  Query stripping setting in WEBi so that unused dimensions and measures are not pulled resulting in an improved performance. It's switched on by default.
    Thanks!!
    Regards,
    Ashutosh Singh

  • I currently have one input but need to run two loops. I cannot get the two while loops to run so that they both pick up the same data, they are both picking up alternate samples. How can I get them to both pick up all of the values?

    The system I am trying to create calculates a number of values based on an input. I need to make the calculations and display the values for an entire production run and for each hour. The only way I know to do this is to create two while loops, one looking at all the values that are received and one looking only at the values for hour long periods.
    Any help would be great.
    Thanks
    RossH

    Why do you think that you have to have two loops to accomplish this task? Why not use one loop and accumulate the same data into two data sets based on the two sets of criteria?

Maybe you are looking for

  • FM to create and update SCD vi01

    Hi, I am trying to create Shipment cost document (vi01) using the standard function modules. I followed this forum and could able to create vi01 using below stepsin sequence.. SD_SCD_REFOBJ_READ SD_SCD_INITIALIZESD_SCD_ITEMS_CREATE SD_SCD_ITEM_PRICIN

  • Downloaded whatsapp but unable to open

    downloaded whatsapp but unable to open

  • Daily User Stats of users log on for the Day

    Im need stats of users log on for the previous days on the system. Ive been to transation suim but I get stats on the users last logon. I require stats on a day to day basis so that I can anaylze how many users log on every day. Thank you [email prot

  • Validation of a Region defined as type SQL QUERY (Updateable Report)

    Hi, I am trying to perform some validation on a Region defined as type SQL QUERY (Updateable Report). The report has two columns. One of the columns is a Select List and I would like to insure that a user cannot select the same value twice in the rep

  • Javascript confirm() popup freezes everytime

    Since the latest update to Firefox (3.6.4), 3 of our users have reported that Firefox crashes when calling a confirm() dialog. The dialog appears but no buttons work and the dialog cannot be moved or closed, and the process seems to have hung. We hav