Af:chooseDate always shows wrong selection (today's date)

Hi,
I'm using 10.1.3.3. I think that the af:chooseDate component has a serious usability problem: it's always showing today's date as currently selected, although the related af:selectInputDate component is refreshed correctly. This is true even:
- after any number of clicks (selections),
- after changing the month back and forth,
- when using different types (Date, Calendar, String) of bound variables (e.g. in a session bean),
- when the bound variable has a default value,
- when triggering additional PPR refresh event for the component (just to be sure that it's refreshed).
Does anybody have any ideas how to make it work correctly? This behaviour is very confusing for the users and I really need to use this component instead of a popup window offered by af:selectInputDate.
Thanks in advance,
Patrik

Frank, I think that's just another description of the problem. Though it does not have a state, it knows about the input field - so the selection should be refreshed via PPR or JavaScript. In case anybody is interested, here is the JS i wrote to solve this.
// Mark clicked day as selected in an af:chooseDate component
function markClickedDayAsSelected(e) {
    var eventSourceElement;
    if(e==null) {
        eventSourceElement = event.srcElement; //IE
    else {
        eventSourceElement = e.target; //FF
    if (eventSourceElement.className != "x4r" && eventSourceElement.nodeName == "A") {
        var days = document.getElementById("formId:chooseDateId").getElementsByTagName("tbody")[0].getElementsByTagName("tr")[1].
getElementsByTagName("td")[0].getElementsByTagName("table")[0].getElementsByTagName("tbody")[0].getElementsByTagName("span");
        for (var i=0; i<days.length; i++) {
            var d = days;
if (d.className=="x4r") {
// Move innerHTML outside of SPAN.x4r (into A) and remove SPAN.x4r
var newInner = d.innerHTML;
var appendToNode = d.parentNode;
appendToNode.innerHTML=newInner;
break;
// Move innerHTML into a new SPAN.x4r inside A
var newSpan = document.createElement("span");
newSpan.className="x4r";
var inner = eventSourceElement.innerHTML;
newSpan.innerHTML=inner;
eventSourceElement.innerHTML="";
eventSourceElement.appendChild(newSpan);
Regards,
Patrik

Similar Messages

  • Why I can't connect to games center?it always shows wrong iPad I'd

    Well when I connect to games center I log in ok but when I try to Dow OAS something I need to write my pass of my iPad I'd but i can't because it always shows wrong I'd

    http://support.apple.com/kb/TS3297

  • Date query doesn't show results for today's date

    Hello everyone. I use Jdeveloper 11.1.1.3.0 with ADF and I have a view named query with just one field, Date. The operator it is using is equal to a value written in the field. The problem is that when I insert a row into the table (the date is automatically set to the current date on insertion) and I look for today's date it returns nothing. However if I leave the field empty it will find me the row. I tried doing this with the timestamp option but it's not very user friendly as the user would have to type in the time the row was inserted in order to find it, or use the between operator for two fields which is something I want to avoid if at all possible
    The requirement is one field query that lets the user choose a date from a calendar and shows all rows inserted on that date (even if the date is today and the row was inserted a few minutes before).
    Edited by: Dino2dy on Apr 6, 2011 2:50 AM

    Dino2dy,
    My guess is that the data being stored in the DB has a time component associated with it (as it would if you were using something like SYSDATE to populate it). When you are trying to look for data with today's date, you are checking just for the date - which in Oracle is the equivalent of midnight on the start of the date. The dates don't match because the time is different.
    Either store the date with no time component (use TRUNC to remove the time), use a BETWEEN comparison, or TRUNC the date when comparing.
    John

  • Prime shows wrong cli credentials but they are good

    Hey!
    Prime discovered both Nexus 7k Core Router. All fine...
    On the first one Prime is getting all informations with entered CLI credentials in the device work centre.
    On the second Nexus it always shows "wrong cli credentials" but they are 100% correct.
    Login into the second Nexus via putty and the same credentials is also fine.
    I can't convince Prime tocollect the Informations from the second Nexus.
    Even ssh from prime cli to this device ist ok...
    Any ideas?

    ok, tried all that was said here. Nothing worked ... I do have banners, but no # sign ... removed them anyways ... then thinking about the banners might be causing issues for what PI expects ... (i do have my prompts changed to mask the platform) ... so i defaulted back to regular prompts ... WORKED !!!!
    So here is what works for me ... no banners, no custom prompts AND device added through the 'classic theme'.
    I presume the expectation is that the device begins with minimal config ... the rest is pushed through the config templates deployment. But have the developers thought of existing devices ? is it IOS version related (target device) or simply a bug.
    BTW, PI v2.1
    Edit --- needing to clarify, for some models (namely UC520) ... removed banner, custom prompts and i could add it comfortably through the Lifecycle interface.
    Others (3550), could be inserted easily with banners and custom prompts ... rather inconsistent, though at least , i have working recipes.
    Thanks for the help all :)

  • Gps shows wrong position

    How can I get my 3GS to show correct GPS posotion again?
    It always shows wrong by 3 km in different directions..!!!

    sometimes moving your phone in 8 figure motion can help reset it

  • Always Show Selection

    I want my TOC to always highlight the topic that is currently
    displaying whether that topic was accessed directly from the TOC or
    not.
    I have checked the 'Always show selection ' box in Single
    Source Layouts/Properties/Advanced/TOC Styles but it isn't working.
    I do have a vague memory of needing to set something else as
    well but I can't remember what it is.
    Does anyone know?

    Hi Authorgirl
    Yes, you need to edit the Window properties and enable the
    feature labeled "Auto synchronize". I think it's located in the
    lower left area labeled "Tripane options". I don't have RoboHelp
    available at the moment and am drawing from pure memory.
    Cheers... Rick

  • Always show beginning of JTextField, while it stays selected

    Hello,
    I have an editable JComboBox, and when I select items from it, I highlight the selected item. If the item's length is longer than the textField's width, I have the cursor pointing to the end of the text by default. I was wondering if there's a way to always show the beginning of the text, regardless of the text length, while it stays selected. I have tried setCaretPosition(0) which works, but then unhighlights the text.
    Your help will be very much appreciated.
    Here's my SSCCE:
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class MyTextFieldTest {
         JComboBox myComboBox = new JComboBox();
         public MyTextFieldTest()
              JFrame frame = new JFrame("MyTextFieldTest");
              JPanel panel = new JPanel();
              myComboBox = getMyComboBox();
              panel.add(myComboBox);
              frame.getContentPane().add(panel);
              frame.setSize(new Dimension(200,100));
              frame.setVisible(true);
         public JComboBox getMyComboBox()
              myComboBox = new JComboBox();
              myComboBox.setEditable(true);
              myComboBox.setPreferredSize(new Dimension(100,20));
              myComboBox.setSelectedItem("Items...");
              for(int i=0;i<10;i++)
                   myComboBox.addItem("Item "+i);
              myComboBox.addItem("My very long Item");
              final JTextField editor = (JTextField)myComboBox.getEditor().getEditorComponent();
              myComboBox.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        editor.setSelectedTextColor(Color.white);
                        editor.setSelectionColor(Color.blue);
                        editor.selectAll();
              return myComboBox;
         public static void main(String[] args)
              MyTextFieldTest test = new MyTextFieldTest();
    }Edited by: programmer_girl on Sep 18, 2007 5:38 PM

          public void actionPerformed(ActionEvent e)
            editor.setSelectedTextColor(Color.white);
            editor.setSelectionColor(Color.blue);
            //editor.selectAll();
            editor.setCaretPosition(editor.getDocument().getLength());
            editor.moveCaretPosition(0);
          }

  • Content Query is always showing bullets in style even when selecting different style

    Hi,
    My content Query webpart is always showing bullet in front of a line. I have made custom xsl styles and it still does it. I have also deleted the bullet style template but they are still there.
    When the bullet style was chosen it bulleted the whole row so that the bullets would be on the text like this:
    I should be having SharePoint OOTB settings for content query and I'm trying to display new discussien entrys and replies around my site collection.
    BR,
    Noora

    Generally template should be like this
    <xsl:template name="ListingItem" match="Row[@Style='ListingItem']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
    <xsl:call-template name="OuterTemplate.GetSafeLink">
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
    <xsl:call-template name="OuterTemplate.GetTitle">
    <xsl:with-param name="Title" select="@Title"/>
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
    <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
    <xsl:with-param name="Title" select="''"/>
    <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="Location">
    <xsl:value-of select="@Location" disable-output-escaping="yes"/>
    </xsl:variable>
    <div class="newsItemContainer">
    <div class="txt">
    <div class="title">
    <h2>
    <a href="{$SafeLinkUrl}" Title="{$DisplayTitle}">
    <xsl:value-of select="substring($DisplayTitle, 0, 15)" disable-output-escaping="yes" />
    <xsl:if test="string-length($Title) &gt;= 15">...</xsl:if>
    </a>
    </h2>
    <span class="Location">
    <xsl:value-of select="$Location" disable-output-escaping="yes"/>
    </span>
    </div>
    </div>
    </div>
    </xsl:template>

  • Key Figures With Hide can be shown showing wrong values when displayed in a query

    Hi Experts,
    I have a qiery with two structures in the column(cell Definition) three key figures are displayed and the rest are all hide can be displayed. However whenever i display one of the hidden key figures along with one displayed key figures it initially shoes incorrect values. Once i add another key figure (which has status always show) the hidden jey figure value gets corrected. Is it a problem with the structure? Kindly assist.For example  when i display the actuals(always show) and actuals rate(hide can be shown) the values for actuals rate are wrong , however when i add the plan rate(always ahow) the values for actual rate gets corrected. Screenshots for structures below.

    Hi Sayanto,
    For this I would recommend you to check the Key figure definition in all 3 situations.
    1. original display
    2. display of hidden KF
    3. Display of existing KF
    I suspect that cell references may have some effect on the calculation as you are adding the hidden KF in analyzer directly. You can prove this only by checking  Key figure definition.
    Please let me know if you are facing any issue in getting the Key figure definition itself.
    Also, as Cornelia suggested check if you have any constant selection applied to any of your KFs.
    Hope this helps.
    -Swati.

  • Show not selected anchor points (and connect)

    Hello.
    Every now and then I have the problem in Illustrator that I want to connect two anchor points with the pen tool. The two anchor points belong to different objects. Is there any way to always show all anchor points. Today I have to select one of the object to see the first anchor point I want to connect. And then hovering the point over the plaece where I presume the second anchor point is located until the mouse icon indicates that I have the pointer at an anchor point.
    A second question: Is there any way to connect more than two “lines” to an anchor point? I.e intersect and connect an anchorpoint in the middle of a line with a third anchor point.

    Almost.
    My thought was that if I could see all anchorpoints of all objects, without selecting the objects. Ie. se all "white" anchor points,  when I select them they will become "filled/blue".

  • SSMS is showing wrong servername

    SSMS is howing wrong servername in  the status bar. I am getting a difference between the name shown on the status bar and when i use @@SERVERNAME. Is this a known bug?
    Thanks
    Avijit

    Erland,
    In this case; i connected to say server1\instance1 and then changed the connection to server2\instance1 then shouldn't the status bar as well as @@SERVERNAME show server2\instance1? @@SERVERNAME is showing server2\instance1  but the status bar is showing
    server1\instance1. This was pointed out by one of my colleagues soem days back and I had told him that the status bar will alway show the name of  the server the query editor is connected to. I could not believe it when he showed me this issue today.
    He says; he does not know the exact steps to replicate this but he showed me the issue.

  • I SET UP THE HOME SHARING ON MY COMPUTER, AND i CAN STREAM MY PHOTOS AND SEE ALL THE VIDEOS AND LISTEN SONGS IN MY ITUNES, BUT CAN NOT DO HOME SHARING, ON THE TV, ALWAYS SHOWS "TURN ON HOME SHARING ON YOUR OMPUTER WITH YOUR ID WHICH I DID BUT NOTHING HELP

    I just bought my apple tv yesterday and SET UP THE HOME SHARING ON MY COMPUTER, I CAN STREAM MY PHOTOS AND SEE ALL THE VIDEOS AND LISTEN SONGS IN MY ITUNES, BUT CAN NOT DO HOME SHARING, ON THE TV, ALWAYS SHOWS "TURN ON HOME SHARING ON YOUR OMPUTER WITH YOUR ID WHICH I DID BUT NOTHING HAPPEN. WHAT'S WRONG? WHAT SHALL I DO NOW?

    I have found with AppleTV that it is the IPV6 on the computer you want to access is the problem.  The issue is that Homegroup on Win 7 or Win 8 requires IPV6 to work, but AppleTV won't work with IPV6.  (So maybe double check you have IPV6 turned off)
    So you have to make a choice - Homegroup or AppleTV.... but you can't have both, until Apple brings ATV up to date. (crazy that it does not recognise IPV6 - c'mon Apple!)
    You can set up sharing individually in Win 7 or 8 and have the ATV access files that way.
    Having said that, there is always the exception.. I have an old HP home server running Win8 and it services ATV - but is part of the Homegroup... have no idea why it works on both, but no other machine on the home network will talk to both ATV and Homegroup at the same time!

  • Is there a way to default the monthly calendar display so that the current day always shows on top?

    Is there a way to default the monthly calendar display
    so that the current day always shows on top? ie, I want to always be able to see what's in the future 3-4 weeks, not what's in the past 3-4 weeks. The default monthly display is archaic--only allows you to see through the last day of the month. Suddenly today
    is Oct. 30th, and I have a ton of projects lined up in November, but because I haven't been scrolling down every day, I haven't been aware of them every day. I realize there are other tools in Microsoft to help me stay on task, such as reminders and such,
    but it would be helpful if I could always have the current day display on top of the monthly view so I can quickly scan what's coming up in the next few weeks. 

    Thank you!
    Right, I already have it in Month view. My question is a little more specific--I'd like for the current day to always display at the top. For example, today is Oct. 31st, so the current day is at the bottom of the calendar since it is the last day of the month.
    I can view everything in October that I've already completed. What I can't see are the future weeks because we haven't hit November yet. I'd like for the current day to always display at the top of my calendar so I can always see what's coming in the following
    three - four weeks (whether they're a part of that month or not). I've been to other forums trying to find the answer, and have come across the same exact question from frustrated users--but there seemed to be no solution. So I'm posing the question myself
    in this forum. Do you know if this is possible? What I found from other forums is that Outlook defaults to a physical 'desk' type calendar format--so just as I'd use a paper calendar at my desk, I wouldn't be able to see the following weeks unless I either
    flip the page to that month or I come to the first day of the next month, thereby tearing the the old month off and now only able to see the current month. That format is just so...paper...and archaic! Essentially I want the calendars to loop so it doesn't
    even really matter what month it is--I just always want to see what lies ahead without having to scroll down. With our being in the Technology Age, I'd assume this is a logical expectation, but we may be stuck with the replica version of the paper-desk-calendar
    format until Outlook programmers add this Technology Age feature in newer versions.  
    See, this month kind of messed me up because I have so many projects for November that start tomorrow and next week, but I haven't seen them until this week. I would have been better quipped--at least expecting them--had I been able to see all of those projects
    since last week or the week prior.  
    If there is no solution to this answer, would you know how I can contact Outlook to provide feedback? I'm guessing a newer version is on its way...
    Thanks again in advance!

  • FBL5N t code and BSEG table is showing wrong contract number

    Hi,
    The proces flow is contract number>sales order>DMR-->Invoice
    Now when I am checking the VBFA table it's showing correct contract number against invoices but FBL5N t code and BSEG table are showing wrong contract numbers.
    Why FBL5N and BSEG table is showing wrong contract number?
    Currently we are using one enhancement and user exit is used to incorporate one customized field as identifier for bill type.
    1. During the billing document release to accounting VFX3, The user exit triggering and it is update the customized fields and Net settlement indicator.
    2. Using the Invoice number, get the fields VGBEL(Document number of the reference document) and VGPOS (Item number of the reference item) from VBRP and read table VBAP with VBELN and POSNR, to get DMR number (Sales Document) that created for the Invoice.
    3. Use fields VGBEL and VGPOS on table VBAP to get the sale order number.
    4. By using the Sales order number, get the Distribution channel to update Net indicator field
    In accounting table BSEG-UZAWE = JF must be updated on the customer line.
    5. Retrieve the sale order number and item level to get customized field from table VBAP
    Any pointers.
    Thanks
    Ashu

    Hi Reazuddin,
    Thanks for your reply,
    I am concercerned about BSEG table and using user exit EXIT_SAPLV60B_008 to post the document in FI.
    Now in we have enhanced this user exit  for contracts and included in this way.
      SELECT SINGLE ZZ_CONTRACT FROM VBAK INTO (LC_CONTRACT) WHERE VBELN EQ cvbrp-vgbel.
    Endloop.
    *Moving the values to final accounting table
    loop at xaccit.
    xaccit-vertn = lc_contract.
    xaccit-VBEL2 = xaccit-AUBEL.
    xaccit-xref3 = lc_vbel2.
    MODIFY xaccit .
    ENDLOOP.
    Clear: lc_contract,lc_vgbel,lc_vgpos,lc_vbel2.
    But I am getting correct data when checked other clients( development and quality), this problem I am getting in production.
    Do I need to ask the ABAP'er to debug this enhancement in production?
    Thanks
    Ashutosh

  • Why does my iPad store show wrong id

    In my settings, it shows the right Id.  When I go into store to get items or updates, it shows wrong id.   How do I fix this?

    If you purchased apps with a different Apple ID, you will always have to use that ID in order to update the apps.
    If that's not what is happening to you, I don't know what the device would be showing an ID that does not belong to you, unless somebody else used their ID on your iPad. Try swiping to the bottom of the app store featured tab and tap on the Apple ID that is showing in there. Sign out of that ID and sign into yours.

Maybe you are looking for

  • Create complex custom component

    Hi everyone! I'm trying to create my own custom component in JSF. However I have several questions : - It is not mandatory to create a renderer class, right ? the component can draw itself ? - How can I create a custom component which would have seve

  • SSL termination

    Hello! Could ypu help me? I need to get data from other system (B) (used ssl) to my sap system A via abap webservice. Another http web service already exists (switching on to https is not planned...) in A. sap crypt. library is installed. Parameters

  • Mac OS 10.5 unable to connect to Mac OS 9 server

    Hi, I just recently updated some computers to Leopard (one had Tiger the other had 10.2.8) and I am having trouble connecting to a server that is on a Mac OS 9. I am able to find the server, but neither computer can connect. I get a -5019 AFP Parm er

  • Quantity remanid in a Qty Contract

    Hello Everyone, does anybody know how can I find the "Quantity" remained of a Contract Qty. I mean a "function" that can give me the Qty Remained (Like SD_READ_CALL_OFF_VALUE, but this is for VALUE Contract, and I need some for QTY Contract). When yo

  • Emailing photos for newspaper print - Need 300 dpi

    I have read so many different articles on this and am still confused. I have pictures in iPhoto '09 that, whatever way I export or email them, the Image dpi ends up at 72. The paper is insisting on 300 dpi.  Is it 72 because of how the camera was set