How can we contrrol the focus of an form Object  from the Managed bean??

I am getting the following script error...
Can't move the focus to the control because it is invisible or not enabled or of the type that does not accept the focus...
I have a button whose action is mapped to a function in the Managed bean.
In the managed bean
I am making the button Invisible along with some other components.
Can any one help me out....

@BalusC
You were proposing the following solution in other thread..
<html>
<head>
</head>
<body>
<f:verbatim>
<script>
setFocus('</f:verbatim><h:outputText value="#{myBean.focusId}" /><f:verbatim>');
</script>
</f:verbatim>
</body>
</html>
But it is giving the following error
javax.faces.FacesException: org.apache.jasper.JasperException: /EducationDetails.jsp(97,29) The element type "script" must be terminated by the matching end-tag "</script>".

Similar Messages

  • How can you tell what type of Iphone I have from the model number or serial number from the settings menu

    how can you tell what type of Iphone I have from the model number or serial number from the settings menu?

    Type Serial Number from Settings App here https://selfsolve.apple.com/agreementWarrantyDynamic.do it will tell you the type of iPhone.

  • How can i arrange my Top Rated Playlist to be from the new song till the old i added... (also to be in the iphone) ??

    how can i arrange my Top Rated Playlist to be from the new song till the old i added... (also to be in the iphone) ??
    i want the every sone the i mark as FULL STARTs (full rate) will be shown in the top of the list.. and each time i add a song that way it will be the first..
    i need it to be *** same in my iphone..  hope to find the help here
    thanks !

    there is no way to make a list that every song that i mark full star will be in the list as i added them ?
    i mean i want to add all song i like with FULL stars but i want them to be arrenged as i added them to the list..
    i think i had it once and it was working perfectly with the iphone but now for some reason nothing seems to work..

  • How can I instantiate and load a new CachedRowSet object from a non-JDBC so

    How can I instantiate and load a new CachedRowSet object from a non-JDBC source?
    cheers

    webrowset reads whole data;
    I would rather need to get data line by line

  • How can I add file attachment to my form and get the attachment by email?

    I'm using this code and it works fine, but I don't get the attachment file in the email. How can I add this to my code?
    HTML
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
    <script src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js" type="text/javascript"></script>
    <script type="text/javascript">// <![CDATA[
                  $(document).ready(function() {
                    $("#form1").validate({
                      rules: {
                        first: "required",// simple rule, converted to {required:true}
                        email: {// compound rule
                        required: true,
                        email: true
                      last: {
                        last: true
                      comment: {
                        required: true
                      messages: {
                        comment: "Please enter a comment."
    // ]]></script>
    <script type="text/javascript">// <![CDATA[
    function validate ()
              if (document.form1.first.value == "")
              alert("Please enter your First Name");
              document.form1.first.focus();
              document.form1.first.style.border="1px solid red";
              return false;
              else if (document.form1.last.value == "")
              alert("Please enter your Last Name");
              document.form1.last.focus();
              document.form1.last.style.border="1px solid red";
              return false;
              else if (document.form1.emailaddress.value == "")
              alert("Please enter your Email Address");
              document.form1.emailaddress.focus();
              document.form1.emailaddress.style.border="1px solid red";
              return false;
    function has_focus() {
        if(document.form1.first.value == "")
                                  document.form1.first.focus();
                                  document.form1.style.first.border="1px solid green";
    function set_focus(x)
              document.getElementById(x).style.border="1px solid #80CA75";
    function clear_focus(x)
              document.getElementById(x).style.border="1px solid #DBDFE6";
    // ]]></script>
    </head>
    <body>
    <p><span style="color: #666666; text-align: center; font-size: 13px;">Please complete this form if you have any technical issue.</span></p>
    <form id="form1" action="http://www.southsun.com/php/tech_issue.php" enctype="multipart/form-data" method="post">
    <table style="width: 850px; font-size: 15px; padding-left: 20px; text-align: center;" border="0">
    <tbody>
    <tr>
    <td style="text-align: left; padding-bottom: 20px;" colspan="2">
    <h2><span style="color: #666666;">Please complete this form if you have any technical issue.</span></h2>
    </td>
    </tr>
    <tr style="padding-top: 40px;">
    <td style="text-align: left;"><span style="color: #abaf6f;"><strong>First Name</strong>:*</span><input id="first1" name="first" type="text" />  <br /><br /> <span style="color: #abaf6f;"><strong>Last Name</strong>:*</span><input id="last1" name="last" type="text" /><br /><br /> <span style="color: #abaf6f; padding-right: 33px;"><strong>Email</strong>:</span><span style="color: #abaf6f;">*</span><input id="email1" name="email" type="text" /><br /><br /> <span style="color: #abaf6f;"><strong>Shipping Method:</strong><br /></span> <input name="shippingmethod" type="radio" value="prioritymail" /> Priority Mail                                                                 <input name="shippingmethod" type="radio" value="store" /> In Store Pick up <br /> <input name="shippingmethod" type="radio" value="ground" />  Ground                                                                       <input name="shippingmethod" type="radio" value="3day" /> 3 Day Select<br /><br /> <span style="color: #abaf6f;"><strong>Payment Method:</strong><br /></span> <input name="paymentmethod" type="radio" value="paypal" /> Paypal Method                                                       <input name="paymentmethod" type="radio" value="creditcard" /> Credit Card<br /> <strong><br /> <span style="color: #abaf6f;">If getting an error message, please explain the error:</span></strong><span style="color: #abaf6f;"> <br /></span> <textarea id="errormessage" cols="20" rows="2" name="errormessage"></textarea><br /><br /></td>
    <td style="border-left: 1px solid grey; padding-left: 40px; text-align: left;"><span style="color: #abaf6f;"><strong>If using Paypal, Were you redirected successfully?</strong><br /></span> <input name="paypalredirect" type="radio" value="yes" /> Yes                                                                 <input name="paypalredirect" type="radio" value="no" /> No<br /><br /> <span style="color: #abaf6f;"><strong>If using Credit Card, Did you get an error?</strong><br /></span> <input name="carderror" type="radio" value="yes" /> Yes                                                                  <input name="carderror" type="radio" value="no" /> No<br /><br /> <span style="color: #abaf6f;"><strong>What happened after clicking place order? </strong><br /></span> <textarea id="placeorder1" cols="20" rows="2" name="placeorder"></textarea><br /><br /> <span style="color: #abaf6f;"><strong>Comments</strong>: <br /></span> <textarea id="comments1" cols="20" rows="2" name="strcomments"></textarea><br /><br /> <span style="color: #abaf6f;"><strong>Attach PrintScreen</strong>: <br /></span> <input name="strresume" type="file" />
    <div style="height: 50px;"> </div>
    </td>
    </tr>
    <tr>
    <td style="padding-top: 20px;" colspan="2">( * ) indicates required fields</td>
    </tr>
    <tr>
    <td style="text-align: center; padding-top: 20px;" colspan="2"><input class="button" name="submit" type="submit" value="Submit" />                        <input class="button" name="reset" type="reset" value="Reset" /></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body></html>
    PHP
    <?php
    echo $savestring;
    //--------------------------paramaters--------------------------
    // Subject of email sent to you.
    $subject = 'prueba con uploads';
    // Your email address. This is where the form information will be sent.
    $emailadd = '[email protected]';
    // Where to redirect after form is processed.
    $url = 'http://www.pch-graphicdesign.com';
    // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
    $req = '0';
    $target_path = "http://www.pch-graphicdesign.com/php/uploads/";
    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
    $text = "Results from form:\n\n";
    $space = ' ';
    $line = '
    foreach ($_POST as $key => $value)
    if ($req == '1')
    if ($value == '')
    {echo "$key is empty";die;}
    $j = strlen($key);
    if ($j >= 20)
    {echo "Name of form element $key cannot be longer than 20 characters";die;}
    $j = 20 - $j;
    for ($i = 1; $i <= $j; $i++)
    {$space .= ' ';}
    $value = str_replace('\n', "$line", $value);
    $conc = "{$key}:$space{$value}$line";
    $text .= $conc;
    $space = ' ';
    mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
    echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
    ?>

    Sending a file as an attachment to an email involves setting the correct MIME type and headers. There's a brief tutorial here: http://webcheatsheet.com/php/send_email_text_html_attachment.php.
    Also, you need to use the same name as in your form. In the script you have shown here, the name of the file field is strresume, but your processing script uses this: $_FILES['uploadedfile']['name']. It should be this: $_FILES['strresume']['name']

  • How can i do a RMAN backup of my database from the network ?

    i'm using oracle 8i.1.7.3 with win server 2003
    i want to know how can i do a RMAN backup of my database (sever machine A) from the network.
    i'd like to save the backup in another machine (the same LAN, the same OS ).
    to do that i've mapped a logical device in my comptur (z):
    when i run rman command i got this error:
    channel ORA_DISK_1: starting piece 1 at .......
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command ON ORA_DISK_1 channel at .......
    00
    ORA-19504: failed TO CREATE file "\\remote\save\"
    ORA-27040: skgfrcre: create error, unable to create file
    OSD-04002: unable to open file
    O/S-Error: (OS 123) The filename, directory name, or volume label syntax is inco
    rrect.

    Hi,
    ORA-19504: failed TO CREATE file "\\remote\save\"make sure you have created this directory and change it's ownership (chown command)to oracle.
    also make sure that oracle user has permission to write to this direcotry (chmod command)
    hope this helps
    cheers, walrus

  • How can I print more than one slide per page from the iPad????

    Im having problems printing from the iPad. I want to print more than one slide in one peace of paper. 3, 6, 9 ...
    Can any one help?

    Start the print process and click on the Custom layout.  At the bottom you can set the size of the image desired and see how many photos can be placed on the page size selected.
    OT

  • How can I get an item and it's attachments from the current list using SP's JavaScript Client Object Model on newform.aspx?

    I only recently learned/read about SharePoint's JavaScript Client Object Model. I'm reading online trying to figure this out but not having much luck.
    On newform.aspx (and dispform.aspx) I want to get the
    current list,
    the last item created, and it's attachments. I now the CAML query I need to get the last item created, but first I have to get the current list and I am not sure how to do that.
    I tried this but it returns null:
    SP.ListOperation.Selection.getSelectedList()

    Hi,
    For your issue, you can get the list name from the new form url and retrieve the list last created item :
    https://social.msdn.microsoft.com/Forums/office/en-US/b90a64f8-2255-41b0-9d91-78335dd4a4cf/get-list-name-from-list-url-through-javascript?forum=sharepointdevelopmentprevious
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • HT1689 How can I get a refund on a purchased app from the App Store?

    I purchased an app from the App Store and did not get an email receipt.  After opening the app, I found it didn't do what I thought it was designed to do.  I can't seem to find out how to get a refund from my recent purchase.  Any help would be appreciated.

    Try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via the Store > View Account menu option and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that app and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
    If the 'report a problem' link doesn't work (it's been taking some people to this site on a browser instead of showing a form in iTunes) then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page.

  • How can I transfer my old iTunes (playlists and all) from the hard drive of my old dead computer to the iTunes of my new one?

    So my old PC died before I managed to back up my iTunes library onto DVDs. I do however have the hard drive from the old PC with all the program files, files and folders on. I also have the iPhone 4, which has my top rated playlist on but that only holds about 20% of my entire music collection on.
    Is it possible to somehow find all my old iTunes music, videos, playlists, podcasts etc and transfer it into the iTunes on the new PC without losing anything?
    Thanks for reading :-)

    im trying to do the same. how do you
    Copy the entire iTunes folder from <User's Music> on the old machine into <User's Music> on the new one?
    im sorry i am totally inept when it comes to this stuff. can you walk me thru the steps to copy? please

  • My daughter has a new ipod touch and when synced it had all of my iphone contacts. she deleted the ones she didn't want and they were removed from my phone as well. How can I get them back if they were deleted from the cloud? I also had them on my pc

    My daughter bought a new ipod touch and when synced received the contacts from my iphone. She deleted the ones she didn't want on her ipod and now they are gone from my iphone. I have the cloud and i thought back up on itunes. I have tried to re-sync and no luck. How can I get my contacts back?

    Your problem is that she used your icloud ID to connect to icloud and thus had all your data synced to her device.  Contacts are not saved in a backup to icloud, since they are stored independently in the Contacts section of icloud.  If someone deletes them, they are gone.  If you had them on the PC would they be available in some backup you frequently make of the PC?

  • How can I get my music back onto my iPhone from the the cloud

    I have a new primary PC.  My music Library is on an old dying laptop.  I have found all my music has disappeared from my phone.  Some is on the cloud, but it appears to only be the music purchased on iTunes, only about 1/3 of my collection.  Now I find all the songs on my iPhone are ONLY iTunes songs and I have to download them each time I want to play them.  Since I'm in a regional area with poor coverage, having to download my own songs every time through cellular is ridiculous! How can I copy my entire collection back onto my iPhone?  And then where's the rest of my collection?  Will I have to rip all my cd's again? If so NOT HAPPY AT ALL. Have also lost all my ringtones which were a Podcast that WAS purchased through iTunes - now gone.

    I did this last night, and copied all the music from old laptop onto new one.  But there was still a lot of stuff missing, mainly from my own CDs that I'd ripped.  Also I'm still getting the icon on my iPhone that the music is on the iCloud. This doesn't suit me because it will cost me a fortune to download each song by cellular when I'm out driving.  I need all my stuff on my iphone.  Do you know how I can get it to download everything i need apart from clicking on every album and selecting "download" from cloud one at a time?

  • How can I errase email address that i already erase from the address book

    How can I erase old email addresses that I already erase them from my contacts, and keep appearing on the "TO:" line, when I want to send an email?

    Go to Mail menu > window > Previous recipients > where you can delete previous contacts to your heart's delight.
    Then, in the same menu > window > Address panel will allow you to remove others by their places in particular groups.
    PS  Please do not post the same message more than once.   It can cause confusion.   I have mentioned your previous message to the hosts, who may remove it.

  • How can I install Oracle Database 10g for Solaries (SPARC) from the console

    Dear Forum Members,
    In my office, I have to installed Oracle Database 10g for Solaries (SPARC). But I have to do it without DISPLAY Monitor.Is it possible install it by remote login to this server using response file (silent mode) or something like that?
    If yes. Then How?
    If anyone have the exact solution, then I need your feedback. I shall wait for your reply.
    Thanks
    Aungshuman Paul

    There are 2 possible ways to accomplish this.
    First,
    Silent installation
    http://www.informit.com/articles/article.asp?p=174771&rl=1
    Second, (cut/paste from other site)
    How to install Oracle software remotely?
    Remote Software Installation Steps: (For Solaris only)
    If you want to install Oracle Software remotely, you should perform the following steps. These steps are applicable only if your source and target machine are running Unix.
    For example, you can install Oracle Software from your home from Washington, DC to a target source in California.
    1. Pick your source server or machine for remote installation.
    2. Check that your CD is in your source CD-ROM drive.
    3. On the target machine, find your target machine name with the output of the /usr/bin/hostname
    4. On the source machine, login as a user.
    5. On the source machine, enable client access: % /usr/openwin/bin/xhost + target-machine-name
    6. Become root user by typing: su (don’t use -)
    7. Check that Volume Manger is running. # ps –ef |grep vold (if you see an entry that contains /usr/sbin/vold, Volume Manager is running. Then skip to Step 10.
    8. If not then do the following: # mkdir –p /cdrom/your-cd-file-name
    9. # mount –F hsfs –r cdrom-device /cdrom/your-cd-file-name
    10. Add the following line to your /etc/dfs/dfstab file: # share –F nfs –o ro /cdrom/your-cd-file-name
    11. Verify whether your source machine is an NFS server: # ps –ef | grep nfsd
    12. If you see an entry that contains /use/lib/nfs/nfsd –a 16, then nfsd is running and skip to Step 16.
    13. If nfsd is running, then type: # /usr/sbin/shareall
    14. If nfsd is not running, then start nfsd by typing: # /etc/init.d/nfs.server start
    15. Verify whether your source machine is an NFS server again by typing: # ps –ef | grep nfsd
    16. Make sure your source machine is exporting your product directory by typing: # /usr/sbin/dfshares
    17. Now, log in to the target machine by type: # rlogin target-machine-name –l user (not root)
    18. Then log in as the root user by typing: # su
    19. Go to the source machine by typing: # cd /net/source-machine/cdrom/your-cd-file-name ,then Skip to 24.
    20. If you cannot change to that directory in Step 19 and you do not have an auto-mounter on your network, then create amount point by typing the following commands.
    21. # mkdir /remote_products
    22. # /usr/sbin/mount –F nfs –r source-machine:/cdrom/your-cd-file-name /remote_products
    23. # cd /remote_products
    24. Redirect the target machine display to source machine by typing: # DISPLAY=source-machine:0; export DISPLAY (if you use a Bourne or Korn shell).
    25. Start the Web Start Installer by typing: # ./installer (or whatever the installer name program is).

  • How can I discover which icon I have accidentally removed from the toolbar?

    Twice now, I have accidentally dragged an icon from the toolbar by mistake and cannot for the life of me remember which!!! (I've only know i've done it by the tell-tale 'poof' noise as it disappears into thin air!
    Can anyone help with a suggestion on how I can work out the missing icon, please?!!!

    It's a little like a logic puzzle.
    Just about everything except Finder and Trash are optional items as far as Dock presence goes.
    You'll know which is missing when you want to run an app and it's not shown on the Dock. You can then add it back in. If you never need to run an app that's not on the Dock, you don't need it on the Dock.

Maybe you are looking for

  • Why do Karaoke CD's change tempo when uploaded?

    I am new to Garageband. When I uploaded karaoke songs into iTunes they sounded fine, but when I transferred them to Garageband they sound slower and flat. When I noticed this I tried changing the tempo within Garageband but it wouldn't change, only t

  • Replicating CRM org number ranges to ECC issue

    Hi, After saving the sales order in CRM system, I'm getting an error message that the number range of the CRM org unit is not defined in ECC. Can I get customization help with this replication issue please . Points will be given Many Thanks Deepak

  • Mifi4510L, Windows XP and a Dell Inspiron 8600

    Good evening everybody. My sisters co-worker has a Mifi4510L and a Dell  Inspiron 8600, he has been using this unit for a while without issue until recently. The computer seems to lose connection to his hotpoint and he has to repair the laptops wirel

  • Help!  Toast keeps stopping when burning dvd

    Hi, I have a Macbook 2ghz with 1gb memory 667mhz ddr sdram using mac osx version 10.4.11 and am having problems with Roxio Toast Titanium version 9. Basically, I am burning say 4 .avi movie files some with subtitles onto a dvd as a divx disc and toas

  • Impdp / SQLfile and parallel mode ?

    Hi, On 10g database we have a dump generated in parallel mode (parallel=8) and DUMPFILE=expdp_file%u.dat Files are expdp_file01.dat, expdp_file02.dat, ... , expdp_file08.dat I would like to retrieve all the grants in a sql file with this command : im