Why does RI interfere with component id's ?

I am creating a page with a lot dhtml & javascript and am having problems getting
references to html elements because the RI keeps prefixing my component id's with
the id's of it's container(s).
For instance, from guessNumber:
The ID  "helloForm:userNo" is rendered for
this JSP-File:
<h:form id="helloForm" >
<h:inputText id="userNo"   ...
</h:form>I realize that to qualify userNo from this example is not rocket science, but in real life the nesting can become quite complex, many times dynamic.
Can someone explain to me why this approach has been taken ? Naively, I would have expected the
RI (and myfaces) to leave an ID alone if it was controlled by the application. After all, Mozilla and IE have
no problems retrieving an element via the getElementById function....without using any namespace, at least I think so.
In this case, all I want to do is swap one image for another when the user clicks on it, the drawback being my graphicImage is deeply nested inside the component tree.
Does anyone have any suggestion/approaches for addressing this issue with pages that use a lot of javascript or dhtml ?
Thanks in advance,
Mark

It's JSF, not the RI.
Some component has a thing called "named component" or something like that. For customized component, I am sure you can override this. However, it's not a quick thing to do a customized components. I am not sure if you can turn this off (such as an attribute on a named component).
Good luck.

Similar Messages

  • HELP - hi with apple Configurator why does it show with a yellow triangle on the right side of the screen what am i doing wrong for the ipads not syncing or whatever and how do i fix that?

    HELP -- hi with apple Configurator why does it show with a yellow triangle on the right side of the screen what am i doing wrong for the ipads not syncing or whatever and how do i fix that? although i have looked online to try and figure it out and here is the website i found is this the stuff i need to do to fix this? is this site what i need to do to fix this? http://edtechstandish.wordpress.com/what-ive-learned-about-apple-configurator-so -far/  Thanks

    Sorry but I don't know anything about this.  But you might have better luck posting this question over ing the iPad in Business and Education forum here: https://discussions.apple.com/community/ipad/ipad_in_business_and_education?view =discussions.

  • Why Does AppleScript Fail With Google Earth?

    This simple script:
         tell application "Google Earth"
                GetCurrentVersion
         end tell
    fails with the following error:
         error "Google Earth got an error: Can’t continue GetCurrentVersion." number -1708
    and with the following Console message:
         3/2/13 5:24:42.505 PM Google Earth[53575]: +[NSDictionary scriptingRecordWithDescriptor:]: unrecognized selector sent to class 0xacdb248c
    Anyone know why?
    The GE AppleScript dictionary has the following entry:
    GetCurrentVersion v : Get the current version of the Google Earth client
          GetCurrentVersion record : record of major, minor and build numbers
    → list of integer : version fields
    AppleScript and Google Earth work fine for other users on this machine. It only fails on my account.
    I have tried deleting all vestiges of GE from the machine and reinstalling, but this hasn't worked.
    Any other ideas?

    tell application "System Events" to get has scripting terminology of application process "Google Earth"
    Result=true
    AFAIK, AS works with all other applications. It only fails with GE and only on my account.
    softwater, I apologize if my original post was not specific enough.
    I thought that the title "Why Does AppleScript Fail With Google Earth?" made it clear that the AS failure was with GE. I guess not.
    Message was edited by: Buadhai

  • Why does my 4s with ios7 wifi keep disconnecting/reconnecting?

    why does my 4s with ios7 wifi keep disconnecting/reconnecting?

    Same problem here. It just keeps connecting/disconnecting indefinitely. This does not started immediately after IO7 upgrade and it does not happen all the time. Sometimes it does it, sometimes not. Very frustrating. So far no solution found.

  • Why does my iMac (with Mountain Lion) no longer recognize my external hard drive I have used as a back up via Time Machine after the hard drive was accidentally unplugged?

    Why does my iMac (with Mountain Lion) no longer recognize my external hard drive I have used as a back up via Time Machine after the hard drive was accidentally unplugged?

    Do you mean the external hard drive is not mounted on the iMac desktop?
    Check if Disk Utility sees the drive. Applications / Utilities / Disk Utility. If the external shows up in the left column, select it and click on Mount.
    If it does show up this way, I recommend using DU to Repair Disk.

  • Why does mac mini with snow leopard download skype for windows instead of mac

    why does mac mini with snow leopard download skype for windows instead of mac ?

    Are you using this link?
    http://www.skype.com/en/download-skype/skype-for-mac/

  • Why does PrintJob clears ComboBox component?

    I am building an on-line form with several text input
    component boxes and a couple combo boxes. I have an option at the
    bottom of the screen to print out a copy of the form. The problem
    is when the print button is pushed, it prints the content, but then
    empties form components completely. It even wipes out the content
    of the ComboBox so there's nothing displayed. I need to reuse the
    form without refreshing or reloading after every print. Why does it
    do this and how can I stop it?

    You need both a renderer and an editor. The renderer draws the cell when it's not being edited and the editor gets put in the table (by the table) when you go to edit the cell.

  • Why does firefox startup with previous history window

    Why does my Firefox (3.6.17) now always startup with a window on the left of screen displaying all the previous url's I have used grouped into 'Today', 'Yesterday', 'last 7 days', 'May', 'April'?
    I cannot remember changing any setting for this to happen and now I cannot find how to turn off this annoying window.

    That are probably JavaScript window.open() calls that specify window dimensions.
    You can divert those to a new tab.
    * http://kb.mozillazine.org/browser.link.open_newwindow.restriction (0)
    * http://kb.mozillazine.org/browser.link.open_newwindow (3)

  • IPod Touch (2nd gen) - Does not work with Component AV Cable

    I have a 2nd generation iPod Touch. Today I bought the component AV cable at the Apple store (along with a universal dock). Connected it correctly to the TV and:
    1. No picture (screen is blue, as though nothing connected); no sound (whether video or music)
    2. Whatever video is playing on the actual iPod gets stuck - as though it is on "pause", with the difference that you can push "play" and "pause" and the only thing that does is change the "play" or "pause" icon from one to the other or vice-versa--video will not actually play
    3. Setting Widescreen to "on" or "off" has no effect
    4. Tried connecting it to an old iPod Nano (2nd gen I think) - also no sound.
    Please advise!

    Alex_K
    Try changeing your TV out setting, found in the (Settings) of your ipod. Following Paragraph found in the iPod User manual (Page 98): http://support.apple.com/manuals/#ipodtouch
    "Use these settings to set up how iPod touch plays videos on your TV. For more
    information about using iPod touch to play videos on your TV, see “Watching Videos
    on a TV” on page 39.
    Turn widescreen on or off: Choose Video and turn Widescreen on or off.
    Set TV signal to NTSC or PAL: Choose Video > TV Signal and select NTSC or PAL.
    NTSC and PAL are TV broadcast standards. iPod touch displays NTSC 480p/PAL 576p
    when attached to a TV using a component cable, or NTSC 480i/PAL 576i using a
    composite cable. Your TV might use either of these, depending on where you bought
    it. If you’re not sure which to use, check the documentation that came with your TV. "
    Hope that helps,
    Weston

  • Why does Illustrator mess with my SVG item ID's when I save?

    For example, let's say I import a file with the following objects:
    <a id="1010_2_" xlink:href="#">
      <g>
        <path class="st1" d="M68.929,0.045v5.212c4.221,0,7.642,3.421,7.642,7.641h-7.642v0.832h6.611v103.806h-1.229h -0.253l-0.022-7.526 h-0.833v7.642c-3.032,0-5.545-1.662-6.78-4.224c-1.256,2.498-3.922,4.224-6.907,4.224v-7.642 h-0.924v7.525l-0.135,0.001H0V0 L68.929,0.045z"/>
      </g>
    </a>
    When I save in Illustrator, it does this:
    <a id="_x31_010_x5F_2_x5F_" xlink:href="#" >
      <g>
        <path class="st9" d="M68.929,0.045v5.212c4.221,0,7.642,3.421,7.642,7.641h-7.642v0.832h6.611v103.806h-1.229h -0.253 l-0.022-7.526h-0.833v7.642c-3.032,0-5.545-1.662-6.78-4.224c-1.256,2.498-3.922,4.224-6.907 ,4.224v-7.642h-0.924v7.525 l-0.135,0.001H0V0L68.929,0.045z"/>
      </g>
    </a>
    Any thoughts?

    Please disregard my confrontational tone if you meant "Not sure what you expect" in a way that isn't condescending, but, since it sounded that way:
    What kind of answer is "That's just the way it is"? That is, I don't expect every question to get answered, but if you're going to respond, I'd ask that it be with something useful, not just "Oh, well, that thing that doesn't make any sense? That's just the way it is." If you don't know/have something to add, not answering would be preferable to answering with "Not sure what you expect."
    I'm going to assume that you don't really know anything about using SVG's in web design (or you wouldn't have claimed that IDs are "completely arbitrary"), so I'll fill you in. When you're styling or scripting with SVGs, IDs are how you access objects (paths, groups, etc) in the SVG. If Illustrator is mangling them, that makes my life a bit tougher. I'll just have to run all of my SVGs through a script that does a find/replace for those strings, but still, I shouldn't really have to do that.
    I expect Illustrator to not recalculate/reassign them for no apparent reason, when they're rather important. If it's exporting an SVG for the first time, sure, it can make up whatever IDs it wants. When I've edited them elsewhere, though, and imported that (completely valid) SVG file into Illustrator, there's no reason it should be reassigning ID's arbitrarily.
    I kind of understand what it's doing with the underscores. x5F is the hexadecimal ascii code for "_", so it would seem that it's hex-encoding special characters. I'd rather there be an option to disable that, but it is what it is. What confuses me is the 1, though. Why would it need to hex-encode the number 1?    

  • Why does the "open with" function often not recognize valid file extensions

    Sample situation: I often need to open JPGs downloaded from the Internet in Photoshop, but I need to keep the default program as Preview.
    When I attempt to open the image in PS using the "Open With" function (in the Edit menu), there are often no choices - it's blank, so I need to open it in preview and then save it as a PSD file to quickly open in PS. Other times I will get a list of other installed programs like Excel, and need to scroll down to the "open with another program" button, where I need to manually find the PS application. Of course, I can always open the file from within PS, but why is the Apple option so seemingly arbitrary from one similar file to the next?
    There is often no rhyme or reason for the programs it offers me.
    This happens with other file extensions, too.
    Is this a known bug?

    It's up to the applications to declare what types of files they can open. They do so by storing the information in the CFBundleDocumentTypes section of the Info.plist file in the application's .app directory. If you know what you are doing, you can edit the plist file to add your own file types/extensions. Unfortunately, I don't know of a good application to do that for you (but it's not a bad idea for one, if I get the time).

  • Why does LPX come with less impulse response files than previous versions?

    Hello,
    I recently upgraded to Logic Pro X from version 8.  I installed Logic Pro X fresh as opposed to layering on more duplicate files that existed from previous Logic versions.  When I noticed that my Logic projects kept turning up a warning indicating that impulse response files were missing, I discovered that Logic Pro X comes with far fewer impulse response files than Logic Pro 8 did.  Is there a reason for omitting some of these files?  I'm wondering if they were determined to be inferior compared to the files they decided to include with version X.  Anyway, I can't shake this nagging curiosity.  Does anyone have a skilled enough ear, or a deeper knowledge of impulse response files to know why that choice might have been made?
    Thanks!

    Okay, now that's really strange.
    I'm in Canada and I'm using the newest version of iTunes.
    All I'm doing is putting "annie lennox bare" in the search field in the way upper right corner of the store and I get a row of four identical entries.
    I don't think it's a duplication error as the pictures are all different scans. The same cover but each one has a slightly different color or contrast, indicating a different scan source.
    The first in the row has a release date of 06/02/03 ... the second of 06/10/03 ... the third 06/28/03 ... and the fourth 08/19/03.
    Maybe one is a UK release, one is an Irish one, one is Canadian, and one American?? I'd have to dig up a history of the release dates in different countries to be sure. But surely only one is necessary on iTunes.
    It's just confusing.

  • Why does Calendar sync with Google on a new user, but not my original one?

    I have a late 2012 Macbook Pro that came running Mountain Lion out of the box. I have used Mail and Messages with my various Google accounts since I purchased it, but never Calendar. When I checked the Calendar option all I got was the header for where the calendars should be.
    I cannot see any calendars on that account, create/view/edit events, or anything. My sync settings on the Google side are just fine as it works on other devices. Last night I took it a step further and created a new user account on my laptop and first thing I did was connect my Google account. Everything worked.
    I have tried deleting the Calendar cache files, preferences, accounts, and pretty much anything short of the app itself. I even went ahead and cleared out my Keychain of anything relating to that account or Google in general. As a last ditch effort, I did a full clean up and reset of the SyncServices system.
    Short of painstakingly comparing the two accounts I have no idea what could be causing this problem. There are no user specific applications or extensions running on my machine, and I've performed no "under the hood" tweaks to Mountain Lion.
    Does anyone have any idea where I should be looking for a cause? I haven't found anything like this problem online yet, and I definitely don't want to migrate my stuff to a new account.
    Key points:
    Google Calendars do not sync at all to my primary user account.
    I've tried multiple Google accounts.
    Only a new user account in Mountain Lion is able to connect.
    All SyncServices files and all Calendar files have been wiped and recreated to no effect.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Why does GB screw with my recorded AIFFs?

    So, after all this time, I finally decide to see what that little guitar icon on my dock does. Because my mini has no audio input, I devise an elaborate way to record my guitar - I record it using a mic plugged into a handycam, hooked up to final cut via firewire. So far so good. I set GB up to give me a nice click track at the right tempo, through my headphones, then do my thang. I then export the resulting track as an AIFF file. It sounds good (well, as good as I ever sound, anyway)
    Here's the problem.
    Having set up a GB song with the correct tempo and key, I then import the AIFF file I just made. But what's this? My clip is now in a new key (I know this because I try to play along and can't), and the tempo has changed (ditto). And, of course, none of the loops work with it, becuase my clip is now in a different key, with a different tempo. How can I make GB accept my little file just as it is?

    http://www.thehangtime.com/gb/gbfaq2.html#toofast

  • Why does goolgeearth work with Safari & Chrome but not Firefox

    When in firefox using Google maps and click on "EARTH" I receive a window indicating that to use 3D I need to install 21.0 Google Earth Plug-in with a "Download" option to click on. Note: Firefox 21.0 and MAC OS 10.7.5 have all current software updates installed. Safari & Chrome do not request for any plug-ins and 3D Earth option works fine. ANY HELP?
    PS. my MAC does have an Intel HD Graphics 3000 installed but my MAC, Safari & Chrome work fine.

    JKELLETT, That initially happen to me also. When you go to dolinsky296's suggested website https://www.google.com/earth/explore/products/plugin.html I saw "Download plug-in" box in the middle of the globe. When I click it the download executed but the plug-in never got installed. Then I clicked on "Download Google Earth" in the ''upper right corner'' of the website and life was good. Google Earth now works in Firefox.

Maybe you are looking for

  • Create link to web page

    Hello, I have linked documents through Create external document (URL) and need to find where the URL actual address is stored - what table? or a function module that can retrieve it? Help required ASAP. Thanks.

  • Dbms_Sql in forms 9i

    We are migrating forms from forms6i to 9i In forms 6i they are using the below code. l_cursor := dbms_sql.open_cursor; dbms_sql.parse(l_cursor, l_stmt,2); l_result := dbms_sql.execute(l_cursor); dbms_sql.close_cursor(l_cursor); In forms9i this is giv

  • Help with controlling a flash video in director

    I have imported a flash file into my director movie and would like a replay button but can not find the correct lingo. The flash file is called equation. Any help appreciated!! thank you

  • Error on uploading EBS - Natwest UK

    Hi Gurus Need some help on EBS Electronic bank statement, we are banking with Natwest - UK, Now I've done all the config work when I try to import the file FF_5 (RFEBKA00), I got an error Termination in statement no 00000 of acct closing record 62F m

  • Flappy Bird Help

    Hello guys, I have been making a flappy bird game in Xcode 5 and I decided to add sounds and other stuff. The problem is that I have no idea where to add them and how to write the code, as I am a rookie in this thing and would really appreciate such