Set focus to specific field when page is loaded

Hi
simple login page (jsp) with 2 fields. when the page is loaded, I want the focus directly in the first field, so that the user can immediately start typing his userid. How do I do this with Creator 2?
thanks, Peter

thanks, I was missing the proper search term ... :-)
here I found the answer: http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=63057
Peter

Similar Messages

  • How to Put Focus on any item when page gets loaded

    Hi,
    When i run OA Page, focus doesn't come up on the field where we need. So is there any way we can tell that focus must be on this if i take some action?
    Thanks,

    Try using this piece of code
    To set the initial focus for a web bean
    import oracle.apps.fnd.framework.webui.beans.OABodyBean;
    OABodyBean oabean = pageContext.getRootWebBean();
    OABodyBean.setInitialFocusId(“idofuielement”)
    Regards,
    Nagesh Manda.

  • Cursor in form field when page opens?

    Client wants cursor in first form text field when page opens,
    without the user clicking in that box. Must be possible, I just
    don't know how to do it.
    Thanks,
    Alan

    all you have to do is set an onload function for the page to
    set the focus of that text field
    <!-- this sets the focus of the text field when the page
    loads -->
    <body OnLoad="document.myform.txtfield.focus();">
    <!-- setting the names up on the form and fields makes the
    javascript work -->
    <form name="myform">
    <input name="txtfield" type="text">
    </form>

  • Prevent Queries When Page First Loads

    Hi,
    How to Prevent Queries When Page First Loads: in this case #{!adfFacesContext.initialRender}
    didn’t works. and Jdeveloper 11.1.1.2.0.
    Please help me ..
    Thanks
    Anup

    Hi Mohammad Jabr,
    I have also set refresh property but not working..
    i have follow the link refer https://blogs.oracle.com/shay/entry/preventing_queries_when_page_f
    I want to prevent user to search without selecting any criteria.
    but this is not working..
    Please give any other solution..
    Thanks
    Anup
    Edited by: 888679 on Mar 13, 2013 10:46 PM

  • How to set focus on a field

    Hi:
    I have a form in IDM and I need to set the focus on a specific field after an action, but i don&acute;t know how to do it.
    Can anyone help me?
    Thanks.

    You'll need to create a javascript snippet that uses the onload function for the page and sets the active field within the JS function that is called by onload. You can apply the JS into your form with:
    <Field>
    <Display class='Javascript'>
    <Property name='script'>
    <String>
    function setActiveField()
    document.FORMNAME.FIELDNAME.focus();
    window.onload = setActiveField;
    </String>
    </Property>
    </Display>
    </Field>

  • Need blank form fields when page spawned

    Hi all,
    I have a fillable form that has buttons at the top of every page to for the user to duplicate the page in case more information needs to be entered.  Here is the javascript I'm using, courtesy of George Johnson:
    // Get a template object from an existing template
    var t = getTemplate("myTemplate");
    // Spawn the template on the page following this one, and rename the fields
    t.spawn({nPage: pageNum + 1, bRename: true, bOverlay: false});
    This works great, except when the user has already filled out page 1, then clicks the button to duplicate the page, the new page contains the information already filled in by the user on page 1.  Is there a way to clear the fields when the page is duplicated? I am using Adobe X Pro.  Thank you!!!

    Please repost in the Acrobat Scripting forum.

  • I want to manuel set "bind varaiable" when page on load with ADF BC

    hi,
    I am opening a page from other page, opening page is query page that it must take its bind varaiable from main jspx page on ADF,
    how can I set bind varaiable for query when the page on load.
    or how can I qeury according to main page variable.

    Hi,
    you can write data to teh session and then reference this from teh bind variables on the opened page using EL
    e.g. #{sessionScope.departmentId}
    To set data to the session, you can use an ActionListener in ADF Faces
    from: #{row.departmentId.inputValue)
    to: #{sessionScope.deptId}
    The above copies the value of a selected table row to the session
    Frank

  • Placeholders display when page is loading

    Hi,
    I am using spry 1.6 and have made a page where data is loaded
    from XML and displayed using PagedView, when ever the page is being
    loaded for the first time I could see the dataset tags/placeholders
    being displayed like {ds_pageNumber}, {title}.
    Is there anyway to not show this when the page is loading.
    The URL
    http://demo.dci.in/galatta/v2/main2.html
    Demo Page
    This element is the images box's under the Trailers tab on
    top right side of the page.
    Any help would be appreciated.

    Hi,
    Check this sample:
    http://labs.adobe.com/technologies/spry/samples/data_region/HideDataReferencesSample.html

  • How to execute a method when page is loaded

    hi ,
    I have a custom method in backing bean of a .jspx page. I want to execute it by default when the .jspx page is loaded.can anyone say how to do it?

    Hi,
    depends on what this is doing: You can call it in a PhaseListener, or from the page using a EL reference (e.g. output textfield that shows empty) or by customizing the ADF pagelifecyce.
    You may want to have a look at
    http://thepeninsulasedge.com/frank_nimphius/2007/08/09/jsf-hook-into-the-javaserver-faces-page-load/
    Frank

  • Finding out when page is loaded

    Im using setPage wit editorpane, just wondering how I find out when the page is fully loaded. Should I use threads?

    Nobody has found a way yet, that I've seen posted on the forum. A PropertyChangeEvent is fired when the initial page is loaded, but if that page needs to load images and stuff its creates a bunch of separate Threads to load the images. So no event is fired when everything is completely read.

  • Disabling components when page is loaded

    Hi all,
    I have a web page where I want to disable some components (a selectmany_menu) depending on the data that other components on the page are displaying (a selectone_menu).
    I have got a value changed listener working fine that disables my selectmany_menu depending on what is selected in the selectone_menu. The event listener checks the data and then uses the setAttribute method to disable the selectmany_menu if necessary.
    However, what do I do when the page is first loaded. I there a way that I can invoke the event listener (or something else) when the page is loaded so that the correct components will be enabled and disabled.
    Thanks
    Patrick

    Maybe I can state my question above in another way...
    I using a standard command_button to navigate from one page to another page.
    <h:command_button actionRef="xyzBean.goToPage" label="Go" commandName="submit" />
    public Action getGoToPage() {
    return new Action() {
    public String invoke() {
    //MANIPULATE COMPONENTS ON NEW PAGE
    return "success";
    The question is, how do I access the components for the page that I am going to rather than the page that I am coming from. I tried this:
    FacesContext context = FacesContext.getCurrentInstance();
    UISelectMany myMenuComponent= (UISelectMany) context.getTree().getRoot().findComponent("myMenuComponent");
    myMenuComponent.setAttribute("disabled", "true");
    However, this fails because the tree that I get access to is the tree I am coming from, raher than the one I am going to.
    Is there a way to access the new tree?
    Patrick

  • How to set focus on specific search field in FPM's search guibb?

    Is there any way to set the input focus to a specifc search field in an FPM's search guibb? I found that there is a godd way for forms by using the IO_EXTENDED_CTRL object in the GET_DATA function. But it seems that there is no corresponding way to do for search forms. Any other idea?
    Best regards,
    Thomas

    Hello Venkatesh. Yes that code does work. First I tried it on a table cell that was already rendered and it did work. The next time I tried it on a table row that was being added and it did not work there. So I added an on after rendering function for the table and added that code there. That did not work until I added a delay (timeout) to do a context switch before calling the focus and that worked.
    Once last thing though sometimes when I call focus on an input field (actually in a table row cell) if the field has text in it already the flashing cursor is at the beginning of the text and other times it is at the end of the text (which is the desired way). It depends on where I click in the row. Is there anyway to make sure the flashing cursor is at the end of the text when the focus is applied to a field that contains text?

  • Adding saved form fields when page count changes

    It appears that there isn't a way inside of EchoSign to apply a set of forms fields that has been saved to the templates if the new version of the form has a page added or deleted.
    It seems like it would either require the form fields to be edited outside of EchoSign or be recreated from scratch if the form adds or removes a page when it is updated.
    I would appreciate any insight or confirmation.

    The situation would be thus:
    The document for Form Z is created in a program such as Word and has several pages. The Word document is uploaded to EchoSign. This converts the Word Doc to a pdf, and then the form fields added in EchoSign. Then that EchoSign form is saved as a template (both document and form fields) in the Library.
    Now, the client who created the Word document comes back a year later with a revised version of the Word Doc that has one fewer page. If that new Doc is uploaded to EchoSign, the form fields from the first version of the form cannot be imported and applied to the new version because the number of pages in the new document doesn't match the number of pages in the old document.
    This appears to be similar to LiveCycle, where you cannot replace the background pdf unless the new file has the same number of pages as the old pdf.
    Unfortunately, it is quite common for these larger and more complex forms to add or delete pages when they are revised, and those are exactly the forms that one would want to avoid rebuilding from scratch.

  • Is there a way to set up a form field in pages?

    I would like to add a form field to document similar to Microsoft Word, (the little gray box that you put the cursor in and add text later).  I am templating a medical report and would typically use form field boxes, (in MS WOrd), for the areas where I will dictate text into at the time the reports are dictated.
    Any assistance appreciated.
    Thanks,
    Dr. S.

    I think this is an unfortunate miscommunication of the term ”form," and I believe it has prematurely obstructed a proper answer to your problem.
    Pages can place and define text (or other media) in a template as a placeholder block. Unlike MS Word, it does not incorporate form controls or macros to achieve this functionality.
    You would position these placeholder blocks where they are needed within your document template. When you create a new document from this template, your boilerplate would have these embedded placeholder blocks, with their inherent instructions for content completion.
    Try the following in your Pages > Help:

  • Text Area steals Focus from Text Field when selected with mouse

    I have created a very simple form with 4 spry validation elements here :: http://octopusdesign.net/contactus.html
    When I attempt to select the 'Your Email' text field using the mouse, focus is grabbed by the text area above it.
    It is only possible to get focus on the 'Your Email' text field by using tab.
    My best guess is that this is a bug in the framework.
    In addition to updating my spry libraries to 1.6 from 1.4 I've tried the following things::
    Reordering the elements in the form.
    Creating the elements in a different order.
    Replacing the validation elements with ordinary elements.
    None of these fixed the problem.
    Strangely, if I remove the validation text area there is no problem.
    If anyone can shed some light on this I would really appreciate it.
    Wisdom gratefully received.
    Chris

    Furthermore ::
    I've tried to reconstruct the form from scratch and discovered that if you have a validation text field and a validation text area in any order on the form, selecting the 2nd element with the mouse always results in the first element stealing the focus.

Maybe you are looking for

  • Tried literally everything, and can't connect to ITunes store.

    I've done everything that the forums have suggested, even uninstalling and reinstalling Itunes completely. My diagnostics are below. Any ideas? Microsoft Windows XP Home Edition Service Pack 2 (Build 2600) Hewlett-Packard HP Pavilion dv5000 (EE801AV)

  • How to allow users to mount a Samba shares on a WXP

    Through lots of reading I've managed to get an understanding of how to mount SMB shares at bootup by placing the proper edits in /etc/fstab. While having the shares of the server, running Contribs.org SME Server 6.01 (recently known as Mitel SME Serv

  • Bad Quality Macbook !

    I've had my Macbook since August 2006, and it's "falling Apart". The DVD/CD drive isn't working anymore, the screen is flickering, and plastic is peeling off the very bottom of the computer along the edge ! It's already had a logic board replaced und

  • Need a urgent reply

    Can we install Windows Server 2008 Standard R2 in I7 Desktop system (Processor speed 3.3 Ghz with 40 GB DDR3 RAM & 1TB HDD). Will this work without any problem ??? Pls help.

  • Recounting My Successful Experience Upgrading My Solid State Hard Drive

    I just successfully upgraded my solid state hard drive from 60 gigabytes to 256 ; the machine is a Lenovo T400s - while the upgrade is still fairly fresh, I thought I’d share my experience – maybe someone else will benefit – most of what I’m about to