Trying to focus in on a DateField component

Has anyone ever had trouble sending keyboard focus to the
DateField component? Try this: create a new Flash document and
insert a TextInput component named textItem, a DateField component
named dateItem and a ComboBox component named ComboItem. Then
insert the following code:
textItem.tabIndex=1;
dateItem.tabIndex=2;
comboItem.tabIndex=3;
stop();
Test the movie and try to tab over to the DateField component
from the TextInput component. Why does the focus skip over the
DateField? Is this something easy to fix, or are we going to have
to wait and spend more $$$ for a new release from
Adobe/Macromedia?

Same here....
Haven't seen a response from Adobe either. "Mum is the word"
apparently.
Also, finding the documentation to set a default value to be
non-existant as well.
What should be as easy as setting "instance.date = xxxx;"
appears to have been obfuscated to the point of making this little
component nigh unusable.
Bah...not happy

Similar Messages

  • How to customize a datefield component to visible only 40 days from today?

    In my project, I came into a situation like, I had a datefield component for which everyday it must show only 40 days from the current day and the remaining days should be unselectable. it can be in any SDK 3/4.
    Please somebody help me in logic.
    Thanks in advance

    read this.
    http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-co ntrol/

  • DateField Component Wont Work

    Can someone please explain to me what I am doing wrong? I
    have a Flash file which has a datefield component in it that will
    not work. It is in a movieclip that is embedded in the main
    timeline.
    When I first put in in the movie clip and test it, it works.
    Then after a few uses of the movie it does not work. When I click
    on it the date chooser that pops up doesn;t work.
    What am I doing wrong?

    Hi,
    this is something I just learned myself: Put a combox in the
    library of your Movie A (it is not necessary to put it onto the
    stage). Usually it should work after that.

  • Error while trying to focus radio component trough JS in IE8

    Hi !. I am running my project under ADF 10 and I have the following problem...
    I have to implement a focus stream in with all the components of my page so as to, when the user presses ENTER, the focus is gained by CERTAIN components...
    While running my project in local mode, this javascript line works fine...
    document._id61.rdoSeguroVida[0].focus()
    But I realized that, when one of my partners deploy de project, in the same IE version, that line didn't work and the focus stream get broked...
    Is there any other way to make a radio component get the focus ?...
    Thankx...

    Hi,
    in 10g ADF Faces does not have a JavaScript component API. So there is nothing else you can do here. However, f it is an IE only problem, worth researching using Google if the JavaScript can be improved
    Frank

  • Losing Focus in an ItemRendered custom component

    I have a custom component that is composed of multiple TextAreas and displayed on the screen with other identical components via itemRenderer where useVirtualLayout="true".
    After I have clicked on a TextArea to give it focus, I want to be able to Tab to the next TextArea. But instead of focussing there, the focus is set to the parent of the itemRenderer, requiring me to click in the TextArea in my component to give it focus.
    I have tried to use focusManager.setFocus(parm) - where parm is the TextArea id that I want to assume focus,  but if I follow that up with focusManager.getFocus(), I find the parent now has focus.
    I have also attempted providing each TextArea with a tabIndex (instead of using focusManager.setFocus). But this seems to be ignored.
    Any ideas?

    You may have to get the keyFocusChange event and cancel it.

  • Trying to modify the code in a component

    Hi,
    I made a flash website with photo galleries using a component
    that I bought online.
    The component is loading the image in a thumbnail scroll bar
    via a XML file and the full size image display in a UILoader.
    So far nothing special.
    But when I reach a certain amount of pictures in the gallery,
    the scroll panel get stuck while loading and doesn't display the
    full size image. Then the thumbnails don't react at all.
    Here is the address where you can see the problem:
    Liquit.dk
    The gallery that has the problem is: "Commercials".
    If you navigate in the rest of the website and come back,
    then the gallery is working!???
    The problem appears only the first time you visit the
    website, or after you empty the cache.
    But the first time you visit a website is the most important
    one, isn't it?
    So of course I tried to get support where I bought the
    component. They pretend that they don't see any problem when
    checking the website online. That answer is just not acceptable
    when every single person who visited the site reported the exact
    same problem. So it seems like they are just not willing to help
    their customers once they sold their stuff.
    My theory is that the component is loading all the elements
    at the same time and I would like to be able to access the code of
    the component to change the method, so that the component will load
    the elements one by one.
    Is there a way to access the code when one buy a component?
    If you think I totally got it wrong and you found the reason
    why it's not working properly, please tell me ;-)
    I also provide all the files used to make that site at the
    following address:
    mmarauder/liquit_files
    Thanks in advance,
    Sebastien

    Hi,
    I'm back with the same problem. It's still not solved and
    I've been asking some questions to the team that is hosting the
    website.
    In order to verify if the issue could come from their server.
    They first thought about "packet loss". I ran some "ping" tests to
    verify and it is not a packet loss problem.
    Which leads to only few solutions:
    First - there is something wrong with my flash application
    that I haven't been able to see. When I check with the debuger in
    flash everything looks fine, but maybe I don't read the info
    correctly.
    I don't know if any of you guys actually used the files I
    provide at the end of my first email. As I provide everything
    includind the .fla file. So anybody with the flash application can
    open it and check if there are problems with what I've done.
    I've been very carefull, but I'm a real beginner since this
    website is my first flash experience.
    Somebody who has been a flash develloper for 6 years
    suggested that it could be a bug in flash.
    If that happens to be true, I'll have to rewrite the entire
    application in a different way, which will be a problem since I
    don't know how I can make this work in another way.
    So if somebody can help me or send me tips or tutorials on
    how to make that website that would work the same way. I'm ready to
    give it a try.
    Thanks in advance
    Sebastien

  • DateField Component question

    Hello.
    I have a problem using the DateField trying to send it´s
    value to a php form in order to send an email.
    The problem is simple....to get the value of the DateField
    into a text i used a code like this:
    this.Data.DateField=DateField.text;
    The result of this is: 14 Dec 2006....
    What I need to do is to get the month data but not
    abbreviated. I need to date text would be 14 December 2006.
    How can I do this?
    Thanks

    heres some good stuff about datefields and the functions
    http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=Flash_MX_2004&file=00002381.html
    my guess would be that the format doesn`t corespond with
    whatever you are sending from php
    you'll find the dateFormat function there

  • DateField component in UIX  is rendering wrong date

    Hi,
    After the DST has ended, our bc4j:uix component is rendering wrong date values for alle the dates prior to 25.10.2009.
    We have following configuration
    UIX version: 2.2.24.2
    Jdev: 10.1.2.2.0 (build 1929)
    Our UIX application is deployed to a Linux server with the uix libraries comes with 2.2.24.2
    We have tried to upgrade to Uix version 2.2.24.5 as mentioned in the Bug 7631416 but it didn't solve the problem.
    Any help appreciated.
    Regards
    Mayu

    Okay, I think I have found a work around. Thanks anyways guys!
    Regards,
    John

  • How to make the scroll bar in flex automate to focus on the new ui component added in the canvas?

    Hi all ,
    There is a canvas container where am adding charts in separate windows.
    So whenever a new chart is added the scroll bar needs to set the focus on the present chart window.
    For this i made the functionality for the canvas container to scroll whenever a new chart is added using the below code
    canvasContainer.verticalScrollPosition = canvasContainer.maxVerticalScrollPosition;
    But the calculations for the vertical position are not precise...
    Is there anything else I should do to make the scroll happen automatically as the chart windows get added in the container ??
    Any suggestions pls
    Regards,
    Ajantha

    Many many thanks to Frank,
    In the css,use the follwing style settings to hide the scroll bar
    af|carousel::spin-bar{    
    visibility: hidden;
    af|carousel::spin-h-previous-icon-style{
    visibility: hidden;
    af|carousel::spin-h-next-icon-style{
    visibility: hidden;
    af|carousel::spin-info{
    visibility: hidden;
    }

  • Disable / remove time stamp in datefield component

    i am using a datefield in flash but i only want the date to
    come over. I am currently getting the following in the output box
    and i dont want all of this!!
    (Thu Jun 15 00:00:00 GMT-0700 2006)
    Please help

    It seems that time_stamping the changes is a logical feature.
    As far as I know, we can't disable it.
    Yvan KOENIG (from FRANCE mardi 21 avril 2009 19:54:53)

  • Moving the Focus with the TAB key in a JTextArea Component

    Dear Friends,
    I have exhausted all options of moving focus from JTextArea to next component. I have also tried all suggestions available in this forum. But i'm not able to solve my problem. Can any one help me.
    Thanx in advance.

    I had the same problem before. Here is what i did.
    JTextArea txtArea = new JTextArea(2,15);
    Set forwardTraversalKeys = new HashSet();     
    forwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));          
    txtArea.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,forwardTraversalKeys);          
    Set backwardTraversalKeys = new HashSet();          
    backwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_MASK));          
    txtArea.setFocusTraversalKeys( KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, backwardTraversalKeys);
    JScrollPane scrollPane = new JScrollPane(
         txtArea,
            JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
            JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    // the scrollbar of the JScrollPane is focusable that's why it requires
    // another TAB key to transfer the focus.
    scrollPane.getVerticalScrollBar().setFocusable(false);

  • Customize "Tab" key for JTextArea to focus next component.

    Hi,
    I am trying to change the "TAB" key behaviour for JTextArea, by using CustomAction configured via InputMap() and ActionMap(). When the user presses the Tab key, the focus should go the next component instead of tabbing in the same JTextArea component. Here is the code for the CustomAction().
        public static class CustomTabAction extends AbstractAction {
            private JComponent comp;
            public CustomTabAction (JComponent comp) {
                this.comp = comp;
                this.comp.getInputMap().put(KeyStroke.getKeyStroke("TAB"), "TABPressed");
                this.comp.getActionMap().put("TABPressed", this);
            public void actionPerformed(ActionEvent evt) {
                Object source = evt.getSource();
                if (source instanceof Component) {
                    FocusManager.getCurrentKeyboardFocusManager().
                            focusNextComponent((Component) source);
        }This works for most of the cases in my applicaiton. The problem is that it doesn't work with JTable which has a custom cell editor (JTextArea). In JTextArea field of JTable, if the Tab is pressed, nothing happens and the cursor remains in the custom JTextArea exactly at the same place, without even tabbing spaces. Here is the CustomCellEditor code.
        public class DescColCellEditor extends AbstractCellEditor implements TableCellEditor {
    //prepare the component.
            JComponent comp = new JTextArea();
            public Component getTableCellEditorComponent(JTable table, Object value,
                    boolean isSelected, int rowIndex, int vColIndex) {
                // Configure Tab key to focus to next component
                CustomActions.setCustomAction("CustomTabAction", comp);
                // Configure the component with the specified value
                ((JTextArea)comp).setText((String)value);
                // Return the configured component
                return comp;
            // This method is called when editing is completed.
            // It must return the new value to be stored in the cell.
            public Object getCellEditorValue() {
                return ((JTextArea)comp).getText();
        }regards,
    nirvan

    >
    textArea.getInputMap().remove(....);but that won't work because the binding is actually defined in the parent InputMap. So I think you need to use code like:
    textArea.getInputMap().getParent().remove(...);But I'm not sure about this as I've never tried it.I tried removing the VK_TAB key from both the input map and parent input map as shown below. But I still have to press "TAB" twice in order to get out of the JTextArea column in JTable.
                comp.getInputMap().getParent().remove(
                            KeyStroke.getKeyStroke(KeyEvent.VK_TAB,0));
                comp.getInputMap().remove(
                            KeyStroke.getKeyStroke(KeyEvent.VK_TAB,0));after coding this, I am using the setFocusTraversalKeys for adding only "TAB" key as ForwardTraversalKey as given below.
            Set newForwardKeys = new HashSet();
            newForwardKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));
            comp.setFocusTraversalKeys(
                        KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,newForwardKeys);
            Set newBackwardKeys = new HashSet();
            newBackwardKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, KeyEvent.SHIFT_DOWN_MASK));
            comp.setFocusTraversalKeys(
                        KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,newBackwardKeys);The only problem that remains now is that I have to press the "TAB" twice in order to get out of the JTextArea column
    regards,
    nirvan.

  • Can someone explain how to set the focus to a component

    Hello,
    What is the best way to ensure that a component gets the focus with code. I have tried requestFocus and requestFocusInWindow and none of them seems to do there work. The frame containing the components that should get the focus is displayed, the component is focusable so that is not the problem. What I found out is that if the component is deep in a nesting of panes (where the top pane is in the frame) is that calling requestFocus or requestFocusInWindow does not give the component where this focus is called on the focus but either the pane that contains it, one of the parent panes of this pane or one of the components in these panes, in almost all cases the component requesting the focus does not get the focus at all. I always have to write a work around in defining a focus listener for all these panes that transfer the focus back to the component that requested the focus originally, I can't believe that this is the way to ensure that a component has the focus via code. I have searched for documentation but found nothing on what requestFocus(inWindow) is actually dooing (a lot about focus traversibility but I don't want to control this, just make sure that a component gets the focus).
    Again I'm pretty sure that the toplevel window is activated and that the component that requested the focus is focusable (I had created a derived version of the DefaultFocusManager that showed who has focus). Personally I think (and I'm not alone if you do a search in this forum on focus management) that there is either a big problem in the documentation of focus management or that it is still not possible to even try to set the focus on a component in a easy way.
    Marc

    Hello,
    thanks for your reply, here is some example code that illustrates the problem I have (the actual code is to big to show here, which is the raison why I did not posted it here). The code wil create a frame with a JPanel with a JTextField, a 'New' Jbutton and a 'Delete' Jbutton, a tabbed pane in the center ('New' will create a new JPanel, add it to the tabbed pane and set the focus on it, either by calling RequestFocusInWindow() directly or by calling it via InvokeLater (someone on this forum suggested to use this). I changed also the focusmanager to show the component that has the focus when you type something. To test compile and run the program (either with a call to requesteFocusInWindow directly or indirectly (by changing the comments), on my system I get the following behaviour:
    1. requestFocusInWindow called directly
    Start program en type, the tabbed pane has the focus
    Press New and type something, a button has the focus not the created panel
    Press New again and type something, a button has the focus not the created panel
    2. requestFocusInWindow be called indirectly
    Start program and type, the tabbed pane has the focus
    Press New and type, the created panel has the focus (I thought at one moment that I had found the solution there, but alas ...)
    Press New again and type something, a button has again the focus.
    Note that with my real program it is not always a button that will have the focus, sometimes it is a combobox or a TextField (I tried to get this with the example code (the JTextField) but did not succeed.
    Hopes this clarify the problem a little bid, what I want is when the window is visible to set focus on newly created panes (or in the real program on the panel that is selected via the tabbed pane or via a key combination to shift the focus between the panels) but requestFocusInWindow seems to behave unpredicatable. I can't imagine that what I see is a bug so I must make some assumptions which are not valid but I don't see them, btw listening on the WindowListener is I think not the solution because the frame is already displayed when I want to set the focus and I do not use a modal dialog box.
    The example code follows here
    Marc
    * Main.java
    * Created on December 21, 2004, 8:58 AM
    package testfocus;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    * @author marc
    public class Main
    static int counter;
    /** Creates a new instance of Main */
    public Main()
    * @param args the command line arguments
    public static void main(String[] args)
    JFrame frm=new JFrame();
    JPanel content=new JPanel();
    frm.setContentPane(content);
    final JTabbedPane paneContainer=new JTabbedPane();
    JPanel bar=new JPanel();
    JButton create=new JButton(new AbstractAction("New")
    public void actionPerformed(ActionEvent ev)
    counter++;
    final JPanel pnl=new JPanel();
    pnl.setName("test"+counter);
    paneContainer.add(pnl);
    pnl.setFocusable(true);
    pnl.requestFocusInWindow();
    /* Either use this or the previous line
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    pnl.requestFocusInWindow();
    JButton delete=new JButton(new AbstractAction("Delete")
    public void actionPerformed(ActionEvent ev)
    int i=paneContainer.getComponentCount()-1;
    if (i>=0)
    paneContainer.remove(i);
    JTextField dummy=new JTextField("Test");
    bar.add(dummy);
    bar.add(create);
    bar.add(delete);
    content.setLayout(new BorderLayout());
    content.add(bar,BorderLayout.SOUTH);
    content.add(paneContainer,BorderLayout.CENTER);
    frm.setSize(300,400);
    FocusManager.setCurrentManager(new DefaultFocusManager()
    public void processKeyEvent(Component component,KeyEvent ev)
    System.out.println("Focus owner"+getFocusOwner());
    super.processKeyEvent(component,ev);
    frm.setVisible(true);
    }

  • How to set focus on a specific component in an ADFT application

    Hello all,
    We are developing ADFT applications for telnet devices using ITS. Is there any way to set the focus on a specific
    gui component (input text for example) for telnet devices.
    Thanks

    You can use the initialFocusId attribute in the af:document tag. Set this to the id of the component which you want to gain focus.
    It can be a bit tricky if the component is in a table or some other "naming container" because then the actual id for the rendered component is generated (e.g. it may be mytable:0:myinputtext).

  • Focus cell editor component of JTable when starting editing by typing

    Hello, everybody.
    We all know that the JTable component doesn't actually focus the actual cell editor component when editing is started by typing. But I need this functionality in an application of mine. So, I ask: is there a way to transfer focus to the editor component when editing is started by typing?
    Thank you.
    Marcos

    Well, I think that I've found it: JTable#setSurrendersFocusOnKeystroke.
    Marcos

Maybe you are looking for

  • Time server 1:55:50 wrong!! how could this be??

    Hello everybody, I am develloping an application where I get the time from a time sever and update the (embedded) system time. But I am getting from the server 1h55min minutes earlier than it should be. Most of it I think come from my GMT+0200 locati

  • Running Jar vs. command line with libraries

    Hi everybody, I have an application that works well from the command line, which relies on 3 libraries, all of which are in the same directory. My current directory structure is like this: Main Folder -> Library 1 -> Library 2 -> Library 3 -> Run scr

  • How can I change "date created" exif on multiple images in bridge cs6?

    I want to sort images from two different cameras, but the time was set wrong on one of the cameras. I need to match the time. In order to do that I need to change the exif "date created" on all of the images from that camera by 1 hour. Is this possib

  • Using reposcan to remove files

    Hi All, I'd like to remove files wich are no more referenced in BO repository (no corresponding infoobjects) So, I thought reposcan coul'd help me to do this but when I use the "scan" option, I have the following message for that kind of files : "Fil

  • Why after updating to iOS 5 does my application functions start up slower than before updating?

    Why does my iPhone 3 seem to have slower reaction time ( starting up applications i.e. receiving and sending of sms , games apps etc) after updating to iSO 5?? Is there a update soon to correct this issue?? Friends also experience the same issue.