Javascript issue for fragment in jspx page cannot find regionId

I am using Jdev 11.1.1.4.0
When i am calling the javascript function its not able to find the region thus my component is not found in the jsff page.
Please help !!!
Below is my jspx page :-
<f:view>
    <af:document id="d1" title="Home Page" partialTriggers="pt1">
         <af:resource type="css" source="/com/ge/vacancy/css/GECustomStyle.css"/>
      <af:form id="f1">
        <af:pageTemplate viewId="/com/ge/vacancy/pageTemplate/GEVacancyPageTemplate.jspx"
                         value="#{bindings.pageTemplateBinding}" id="pt1">
          <f:facet name="Content">
            <af:region value="#{bindings.defaultflow1.regionModel}" id="r1" clientComponent="true"/>
          </f:facet>
</af:form>
       <af:group id="g1">
<![CDATA[
        <script>
    function charChecker(evt){
region=AdfPage.PAGE.findComponentByAbsoluteId("r1");
                    if(region!=null)
                counter             = region.findComponent("ot17");
                counter_value       = counter.getValue();
                  }else {
alert('Region not found')
  </script>]]>
      </af:group>
    </af:document>
</f:view>
In my frgment jsff page i have the following :
<af:inputText id="it2" rows="08" maximumLength="500"
                                  value="#{bindings.Role.inputValue}"
                                  autoSubmit="true" immediate="true"
                                  partialTriggers="::gli11:soc15" columns="175"
                                  clientComponent="true"
                                  valueChangeListener="#{pageFlowScope.JobDescriptionBean.roleVC}"
                                  binding="#{pageFlowScope.JobDescriptionBean.roleInputText}">
                                  <af:clientListener method="charChecker" type="keyDown"/>
</af:inputText>
<af:spacer id="sp22" width="2"/>
                      <af:outputText id="ot17" clientComponent="true"
                                                                          value="500"/>

Hi,
Why not use findComponent as in below.
findComp=function(event){
var source=event.getSource();
var component=source.findComponent("componentId");
For this to work the component ot19 which i am assuming is a outputtext has to have value of clientComponent set to true.  Here event will automatically be passed if invoking the component via a clientlistener.
Use findComponentByAbsoluteId only if you know the absolute id of the component. To be sure of the absolute id bind the component to a managed bean and then invoke the javascript as in the example shown below.
public String someAction() {
      FacesContext context = FacesContext.getCurrentInstance();
      ExtendedRenderKitService erks =
      Service.getRenderKitService(context, ExtendedRenderKitService.class);
      erks.addScript(context,"someJSAction('"+textBinding.getClientId(context) +"')");
      return null;
ADF JS
someJSAction=function(clientId){
var component= AdfPage.PAGE.findComponentByAbsoluteId(clientId);

Similar Messages

  • I have to unistall my adobe cs5 [s/n removed by moderator], and a trial for Photoshop cc and I cannot find the download for those. Can you help me?

    I have to unistall my adobe cs5 serial number [], and a trial for Photoshop cc and I cannot find the download for those. Can you help me?

    CS5 product downloads are available thru the following page:
    CS5 - http://helpx.adobe.com/creative-suite/kb/cs5-product-downloads.html
    Photoshop CC trial download is available thru its product page:
    Download Photoshop CC by joining Creative Cloud today | Adobe Photoshop CC

  • While adding localization for appstore meta data, I cannot find the language Polish (Polski)

    While adding localization for appstore meta data, I cannot find the language Polish (Polski) under the option Choose another language: in iTunes connect.
    I am updating the app to a newer version. I need to show the App description etc in Polish too. But I can't fnd the Polish in the list of languages that can be
    added. Screen shot of languages is attached.
    Thanks.

    Hi,
    According to your post, my understanding is that you have an issue about adding attachments to list items in app.
    To add attachment to list item in the host web, we should first get the list and the list items from the host web, then add the attachments to the list items.
    There are two articles about retrieve the list and list items in the host web, you can refer to them.
    http://www.dotnetcurry.com/showarticle.aspx?ID=1028
    http://www.c-sharpcorner.com/UploadFile/93cb27/retrieve-sharepoint-app-host-web-list-items-in-sharepoint-ho/
    What’s more, we can also use the REST API to achieve the same scenario.
    http://www.c-sharpcorner.com/UploadFile/472cc1/add-attachments-to-list-items-in-sharepoint-2013-using-rest/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • I have purchased a ringtone in the iTunes Store for my iPad, and I cannot find the download together with my music. I have received the invoice but I have no product. I am working with iOS6, if that helps. Can anybody help me?

    I have purchased a ringtone in the iTunes Store for my iPad, and I cannot find the download together with my music. I have received the invoice but I have no product. I am working with iOS6, if that helps. Can anybody help me?

    I am confused. Do you mean you found the music, not the tones, or you can't find either?
    If the former, then this is normal. You can't redownload tones from the Cloud.

  • I get a message that itunes  has stopped working. When I check out why it is because of the dep security on my computer. When I try to find the program for itunes for the .exe file i cannot find it to turn off the dep for  that file

    I get a message that itunes  has stopped working. When I check out why it is because of the dep security on my computer. When I try to find the program for itunes for the .exe file i cannot find it to turn off the dep for  that file

    I found the file but when I added it to the  list for the Data  Execution Program to ignore , I received a message that the Program.x86/itunes file must have the DEP on in order to run. Anyone else having this problem ?

  • I bought PhotoShop 12.0 for Windows 8.  I cannot find the Curves function in the program.  Is Curves excluded from this version? If so, how can I upgrade to get Curves?  Thank you!

    I bought PhotoShop 12.0 for Windows 8.  I cannot find the Curves function in the program.  Is Curves excluded from this version? If so, how can I upgrade to get Curves?  Thank you!

    teddy27 a écrit:
    Thank you, Michel, for your helpful answer.  I have downloaded SmartCurve and saved the files in C:\program files\adobe\Photoshop elements\plug-ins.  I re-started PhotoShop.  Do I access SmartCurve to adjust curves from within PhotoShop? 
    You can acces it from the menu 'Filters', there is a line called 'Easy.Filter', click it and it shows 'Smartcurve'.
    Separately, can I upgrade my PhotoShop Elements to Photoshop without signing up to the CC 'rental' system of monthly payments?  Sincere thanks,  Ted
    I know that you don't need the CC 'rental' subscription to have Photoshop, but as far as I know, there is no upgrade path from Elements except periodical special offers.

  • Re-installing the app for a CQ521B gives a "cannot find E:setup\..\setup\hpzpnp01.exe" error.

    Hi,
    It takes a matter of seconds before getting a pop up window saying "The system cannot find the path specified" .  At the top of the Piop-Up the full error is
    "E:\Setup\..\Setup\hpzpnp01.exe" "-wStub" "1837708" -l ENU -f "C:\Windows\hp...
    After pressing the various continue buttons, the tidyup crashes, with the details
    Problem signature:
    Problem Event Name: BEX
    Application Name: hpzscr01.EXE
    Application Version: 14.0.301.0
    Application Timestamp: 4b6150fc
    Fault Module Name: hpzscr01.EXE
    Fault Module Version: 14.0.301.0
    Fault Module Timestamp: 4b6150fc
    Exception Offset: 000a61d9
    Exception Code: c0000417
    Exception Data: 00000000
    OS Version: 6.0.6002.2.2.0.256.4
    Locale ID: 2057
    Additional Information 1: 18eb
    Additional Information 2: 701adf65b2f7b5913002bd88930dae75
    Additional Information 3: f7dd
    Additional Information 4: 26825aa856c9de7a6004ef5bd510590b
    Read our privacy statement:
    http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409
    Any ideas?
    Steve.
    This question was solved.
    View Solution.

    I had the same issue and researched for some time will little result.  I finally was able to reinstall by doing the folllowing:
    (note try to install and when you have your error copy it down noting the subdirectory or other location.)
    1) Load the software (full feature in my case) but do not start the install.  This process copies data onto your hard drive prior to installation.
    2) Search for "hpzpnp01.exe" and then go to the file location.  Note where it is found (subdirectory).
    3) In your system search area enter %temp% and return.  This will take you to the area on your system where the data was copied.
    4) Look for the subdirectory where the hpzpnp01.exe was found (may be in several subdirectories).  Choose a subdirectory containing the hpzpnp01.exe and rename that subdirectory to the one called for in the error statement.
    5) Now erun the install.  It worked for me, so this or a variation of this method should work for most people.

  • I need Apple's Mission Statement for a paper and I cannot find it anywhere...

    I need to find Apple's mission statement for a paper for school and I cannot find it anywhere.  This is too bad because I am doing research on the top companies and their mission and value statements and I figured that Apple's would be the top pick...   Does anyone know where I could find their mission statement?
    Any help would be GREATLY appreciated!

    Justine
    It seems apple has never officially issue a formal Mission Statement, but...
    Two posts at this link are pretty good in lieu of one:
    Re: What is Apple's mission and vision statement? Where can I find it?
    CCC

  • AnyConnect installation issues - Network Adapter is not created - cannot find any error?

    I am a contractor with a Federal Agency that just swithed to using Cisco AnyConnect for VPN access.  I am about the only person with this installation issue, that I know of.  When installing the AnyConnect client on a Windows 7 machine running a 3.X msi install - the expected Cisco NewWork Adapter is not created in Network connections as I would expect.  I have turned off Firewall services, I've turned off SQL services, Citrix, etc.  But nothing I have tried allows this to install correctly.
    When I attempt to use the AnyConnect VPN client and login the the remote service - I receive the
    The VPN client driver has encountered an problem. Please restart your computer or device, then try again.
    I have attempted the driver database fix suggested online - BUT it didn't correct the problem because I think my problem is in the initial setup, although I cannot find and error in the Windows/inf/setupapi.app.log and setupapi.dev.log that would suggest there is an driver problem.
    The DART logs are a bit cryptic, but nothing stands out that would give me any idea as to what might be blocking the creating of the Network adapter the VPN Client would use to connect to the remote network.
    Can anyone here point me in the right direction  - I am not receiving help from configuration management - their solution is to format my entire computer and rebuild it which will cost me weeks of time and I have a deadline looming in Feburary.
    Thank you!
    Michael

    Hi Jacob,
    Let's try this & report the outcome...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    Is that Interface dragged to the top of Network>Show:>Network Port Configurations and checked ON?
    The Interface that connects to the Internet, needs to be drug to the top of System Preferences>Network>Show:>Network Port Configurations and checked ON.
    10.5.x/10.6.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    The interface that connects to the Internet should be dragged to the top of the list.
    Then highlight the interface you connect with, click Advanced, is it set to Using DHCP, what IP does it Show & Router IP, then click on Proxies tab & make sure none are set, click on the DNS tab and enter these numbers...
    208.67.222.222
    208.67.220.220

  • AnyConnect installation issue - Network Adapter is not created - cannot find any error?

    I am a contractor with a Federal Agency that just swithed to using Cisco AnyConnect for VPN access.  I am about the only person with this installation issue, that I know of.  When installing the AnyConnect client on a Windows 7 machine running a 3.X msi install - the expected Cisco NewWork Adapter is not created in Network connections as I would expect.  I have turned off Firewall services, I've turned off SQL services, Citrix, etc.  But nothing I have tried allows this to install correctly.
    When I attempt to use the AnyConnect VPN client and login the the remote service - I receive the
    The VPN client driver has encountered an problem. Please restart your computer or device, then try again.
    I have attempted the driver database fix suggested online - BUT it didn't correct the problem because I think my problem is in the initial setup, although I cannot find and error in the Windows/inf/setupapi.app.log and setupapi.dev.log that would suggest there is an driver problem.
    The DART logs are a bit cryptic, but nothing stands out that would give me any idea as to what might be blocking the creating of the Network adapter the VPN Client would use to connect to the remote network.
    Can anyone here point me in the right direction  - I am not receiving help from configuration management - their solution is to format my entire computer and rebuild it which will cost me weeks of time and I have a deadline looming in Feburary.
    Thank you!
    Michael

    Hi Jacob,
    Let's try this & report the outcome...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    Is that Interface dragged to the top of Network>Show:>Network Port Configurations and checked ON?
    The Interface that connects to the Internet, needs to be drug to the top of System Preferences>Network>Show:>Network Port Configurations and checked ON.
    10.5.x/10.6.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    The interface that connects to the Internet should be dragged to the top of the list.
    Then highlight the interface you connect with, click Advanced, is it set to Using DHCP, what IP does it Show & Router IP, then click on Proxies tab & make sure none are set, click on the DNS tab and enter these numbers...
    208.67.222.222
    208.67.220.220

  • Win2kr2 IIS7 customize gw login page cannot find index.html

    Successfully installed GW802hp2 on Win2kr2 IIs7 and redirected to /gw/webacc.
    I want to customize GW Webacc login page with company logo but cannot find the index.html file
    Where is it located? I have copied the logo and splash files already.

    I have found the answer - at least to meet my needs. I hope this helps someone else.
    After enabling HTTP-Redirect to /gw/webacc
    the file to edit is: c:\novell\groupwise\tomcat5.5\webapps\gw\WEB-INF\classes\templates\webacc\css\login.htt
    under DOCTYPE HTML PUBLIC . . . . at approx. line 144, enter the name of your logo.ico file (replacing /favicon.ico)
    the image files need to be place in the following folder:
    c:\novell\groupwise\tomcat5.5\webapps\gw\webaccess \201012110348\images\
    1) your logo.ico; 2) replace the install_top_n.png with your install_top_n.png file (this is at the top of the GW login screen - you may have iused a splash.gif or splash.png n IIs6). 3) If you want to remove the watermark, or have a different watermark on the GW login screen, replace install_watermark_n.png with your watermark.png file.
    NOTE: If you use the same file names and copy them to this directory, you won't have to modify the login.htt file with the name of your custom .png files.
    The above will work for IE and Firefox, although there may be some modifications necessary for Firefox.

  • Ask your question.PPC Mini running 10.4.11 unable to access urls based on Javascript.  Software up to date.  Cannot find where to verify if JavaScript turned off.

    PPC Mini running 10.4.11 unable to access urls based on Javascript, get "Javascript void" at bottom of window..  Software up to date.  Cannot find where to verify if JavaScript turned off.

    I guess I verified this in following earlier IIIasss recommendations (whom I will respond to in detail after this).
    I have used Firefox (cookies deleted after each session) successfully with this site (Zinni Optical), but something has changed over the last year and a half and, to my knowledge it isn't on my end.  When I get response at all, and try to navigate to "My Favorites, etc., and nothing happens for a while, I try to refresh, only to get a "stopped" message with a blank screen.
    Tried Safari and Internet Explorer browsers (all I presently have installed) without succerss.  May go back to TenFourFox (which had it's own wierdness over time, which is why I uninstalled it.  Don't know latest versions compatible with 10.4.11 of Safari (but Software update is satisfied I'm up to date) or Internet Explorer.
    I'm out in the sticks using a Verizon (Novatel) MiFi in a metal building, and so require a Wilson external antenna, liightening arrestor, signal amplifier and inside rebroadcast antenna to boost cell phone  signal from one to four bars.  Hope I get similar boost for  wireless-Airport connection, understand that is different frequency, but also boosted.
    The site for the bank I do WebBillpay with has had a minor change...no longer do I get the option to sign off (six months to a year ago), otherwise, fine.

  • What are the hours of operation for phone support? I cannot find them and the phone system just says between regular hours?

    My patience has been pushed to its  limit with this iPod and I cannot find hours of operation for customer service and tech support and the phone system just tells you no one is available and call back during regular hours, but nothing saying what those hours are. Does anyone know?

    Looking at the Apple's website and previous posts, Apple does not publish the hours.  Did you can in the USA during the times that corresponsd to about 9AM to 4PM Pacific time?

  • HT1338 For some reason I simply cannot find a button anywhere to purchase Mountain Lion upgrade software.

    I have been looking for the click button to purchase Mac OS X Mountain Lion upgrade.
    I have been going round and round and cannot find that place.  Please help.

    From what I've read on these forums over the past few months, it hasn't gotten any better. An electronic order from any company shouldn't take more than 12 hours for a system to respond to, but people have been waiting up to a week for their redemption code email to arrive. It makes no sense to me why it would take that long.

  • I am trying to obtain an App for a 4s and I cannot find the correct store.

    I cannot find the app store for a Iphone 4S. I also do not know how to determine the difference.
    I keep getting an error that the I cannot check for OS update.
    My IPhone model is: MC608LL/A
    My IPhone SN is 80*****A4S
    I use ATT
    <Personal Information Edited by Host>

    What do you mean you can't find the app store for an iPhone 4S? There are not separate app stores for different models of iPhones. There is only one app store (well... one per country, anyway). Open the "App Store" app on your phone or go to the app store in iTunes from your computer.

Maybe you are looking for

  • HTML markup in email

    Starting some time late last night (Eastern time), it appears that email notifications started getting sent with HTML markup (i.e. carriage returns are being replaced with < br />). The MIME type of the message, though, still indicates that the messa

  • Cd/DVD drive not listed anywhere.

    I do not have the dvd/cd drive listed in the device manager. the drive spools up and acts like it is reading.

  • Alert component

    Hello, I have a table where the user can choose items to it and add them for later viewing. The last column of the table is linked to an action which adds the row to a java bean. I also have two different alert (which use the Alert component) to noti

  • New Hard Drive not seen in Bios F23, hp g42 281la

    My old hard drive stopped working (couldnt even restore). I bought a new hard drive (the same) and bios F23 doesnt see it. Please help to resolve the issue. Thanks. This question was solved. View Solution.

  • Page fault error in installation

    I'm trying to upgrade my D2K software but when I run the setup process I get a page fault error in module KERNEL32.DLL at 0137:bff9a485 when it reaches OIIMPL32.DLL. This appens only with Win95 (users), I installed succesfully ver 6.0 on NT (my pc of