Cannot get af:clientListener to work

Hi,
I'm trying to use a clientListener in order to change a value of an outputText. This is actually an example i found in the forum, but I'm trying to get it to work just to see how the clientListener works in action. I can't get it to work though. The page does not render at all. My belief is has something to do with the tag space? <af:document> etc belongs to http://xmlns.oracle.com/adf/faces, while <af:clientListener> belongs to http://xmlns.oracle.com/adf/faces/rich. Does that matter? The page renders when using http://xmlns.oracle.com/adf/faces (without the clientlistener of course). Sorry for such a n00b question!
jdev 10.1.3
Thanks!
Jonte
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:trh="http://myfaces.apache.org/trinidad/html"
xmlns:tr="http://myfaces.apache.org/trinidad"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<af:document>
<af:outputText id="test" value="Test"/>
<af:inputText label="Input some text" id="input" clientComponent="true"/>
<af:commandButton text="Say Hello">
<af:clientListener method="sayHello" type="action"/>
</af:commandButton>
<af:form>
<af:outputText id="greeting" value="" clientComponent="true"/>
</af:form>
<script type="text/javascript">
function sayHello(actionEvent) {
var component=actionEvent.getSource();
var greetingComponent=component.findComponent("greeting");
greetingComponent.setValue("Hello World !");
</script>
</af:document>
</f:view>
</jsp:root>

Hi,
Try this.
<?xml version='1.0' encoding='Cp1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=Cp1252"/>
  <f:view>
    <af:document>
<af:form>
<af:outputText id="test" value="Test"/>
<af:inputText label="Input some text" id="input" clientComponent="true"/>
<af:commandButton text="Say Hello">
<af:clientListener method="sayHello" type="action"/>
</af:commandButton>
<af:outputText id="greeting" value="" clientComponent="true"/>
</af:form>
<script type="text/javascript">
function sayHello(actionEvent) {
var component=actionEvent.getSource();
var greetingComponent=component.findComponent("greeting");
greetingComponent.setValue("Hello World !");
</script>
</af:document>
  </f:view>
</jsp:root>-Arun

Similar Messages

  • I have installed Mountain Lion 10.8.2 but still cannot get email from my work exchange account. I'd appreciate any help.  Thank you.

    I have installed Mountain Lion 10.8.2 but still cannot get email from my work exchange account. I'd appreciate any help.  Thank you.

    You can go to the Apple online store and purcahse a copy of Mountain Lion.  This will give you a redemption code, which you can use to download Mountain Lion from the App Store.  Unfortuantely, I'm not aware of any other way to legally purchase it.  I have never seen Apple release Muontain Lion on DVD.
    In terms of Apple Service, they just need the serial number of the machine to check the purcahse date.  It is usually correct, to within a few weeks.  A quick Google search should give you the correct number to dial.
    I hope this helps.

  • I have installed Mountain Lion 10.8.1 but still cannot get email from my work exchange account. I'd appreciate any help.  Thank you.

    I have installed Mountain Lion 10.8.1 but still cannot get email from my work exchange account. I'd appreciate any help.  Thank you.

    I would delete the account and try to re-enter it. Also, you have to let your firm's IT department know that you want to sync work email on your personal devices before they actually work.

  • I cannot get GPS Only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off).  Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX

    It seems like I cannot get GPS only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off).  Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX, garmin blueChart mobile, and a GPS monitoring tool. All show no signal. If I turn on cell and wifi,  it says I get gps signal, but can't tell if that is from the GPS chip, or just from cell and wifi only (maybe with some gps mixed in)?  Any ideas on how to get iPad working with GPS only??

    Roger that.  Thanks for your time.
    System:
    Windows 7 64bit
    Processor: AMD phenom IIX4 965
    RAM:  Gskill Ripsaw F3-12800CL7D-4GBRM (2-2GB sticks)
    GPU:EVGA Classified Nvidia GeForce GTX 560 Ti 448 core
    PSU: Kingwin 1000W laser gold (LZG-1000)
    Yes. tried the one ram stick, no go.  I have been trying to boot off/install the windows 7 disk but am unable to get to the point where windows starts installing after its gathering information portion of the install.  I can get to the disk selection screen of the install with the WD HD on SATA port 2 but then get the "cant install messages" when I try to select the Vertex 3.  Yes I can see the Vertex 3 Drive as well as the WD drive at this point.  some times I have to hit "scan" a couple of times.

  • HT2240 I cannot get my registration to work for QuickTime Pro for Mac OS X 10.6.8 using QT 7.6.6

    I cannot get my registration to work for QuickTime Pro for Mac OS X 10.6.8 using QT 7.6.6  I have copied and pasted exactly as require (I don't have an organization).  Any suggestions?  Thank you!

    There is no QuickTime System Preferences pane in 10.6.8 or later.
    You enter the registration under the player 7 menu.

  • I cannot get airport extreme to work. Can you help me?

    I have a G5 Power PC. I recently purchased a macbook and an Airport Extreme. I cannot get the airport to work. Can somebody help me please??
    G5 Power PC and macbook   Mac OS X (10.3.9)   new OS X on Macbook

    I plug the ethernet from the airport to the back of the modem (a Webstar unit) from my cable provider. Then I plug the other cable from the back of the airport into my G5. Then plug in the power cord. I get lots of flashing lights - "thinkin & blinkin", but then I get a message that it cannot locate the server. Even rebooted. I've been waiting for the IT guy to call/email me back me back but no response yet. I'm guessing I may just need a new location, but I'm not wired to think IT-like (I'm a very right brained graphic designer), I I don't want to screw anything up.
    Do I need to just go through a new internet setup?
    G5 Power PC and macbook   Mac OS X (10.3.9)   new OS X on Macbook

  • I cannot get wireless mouse to work in windows 7 using bootcamp

    I cannot get wireless mouse to work in windows 7 using bootcamp

    OK, that is a Bluetooth mouse so open Windows Devices and Printers>Add a Device Toggle the power (on the mouse) off and then on. he mouse should appear in the window, follow instructions to add it.

  • Cannot get exception-type to work

              WLS 60 SP1 (#101616)
              Cannot get <exception-type> to work. WLS shows standard &#8220;Internal error
              500&#8221; page instead of a custom error page. The custom error page is shown
              if <error-code> is used instead of <exception-type>.
              Any ideas? Thanks
              

    Hi @utopian,
    Welcome to the HP Forums!
    I understand that you cannot scan with your HP Officejet Pro 8500 on Windows 7 using a wireless network. I am happy to look into this issue for you!
    Please take a look through this scanning guide, A 'Connection Error' or 'No Computer Detected' Error Message Displays during Scanning for HP Officej....
    Hope this guide helps!  
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Cannot get iTunes DJ to work

    No doubt it is something really obvious that I'm missing, but I cannot get iTunes Dj to work. If I click on iTunes DJ in the left column, right section of the window says "iTunes DJ" and explains that I can make a continuous mix, but there is no list of music. The play button is greyed out.
    The help file says "To select a specific playlist (instead of your library) for the live mix, choose an option from the Source pop-up menu at the bottom of the iTunes window."
    but there is no Source pop-up menu at the bottom of the iTunes window.
    Any ideas?

    Do you see the grey bar at the bottom of the screen when you select iTunes DJ, the one with the Settings and Refresh button, as seen in the picture on this web page? If not, then the bottom of the window may just be off the screen on your system so you don't see the Source selector. If that does seem to be the problem, try changing the resolution of your Mac's screen (Displays system preference) to the highest resolution. If it already is, try changing it to a lower resolution, then back. That may get the iTunes window to reappear..
    If not, open the Script Editor application, paste in the following text (up to and including the line that says "end tell") and click the "Run" button:
    tell application "Finder"
    set {d1, d2, d3, d4} to (get bounds of window of desktop)
    end tell
    tell application "iTunes"
    set margins to {d1 + 10, d2 + 54, d3 - 10, d4 - 148}
    set bounds of window 1 to margins
    end tell
    If the iTunes window is running off the screen, that should restore it.
    Hope this helps.

  • Cannot get wireless scanner to work

    wireless printing to my HP Officejet Pro 8500 works fine but I cannot get the scanner to work - it fails to even communicate with the HP device. My operating system is Windows Vista. The error message I get when trying to use the scanner by clicking on the "HP Officejet Pro 8500 A910 Scan" icon is "Scanner communication cannot be established."
    Thank you for your help
    This question was solved.
    View Solution.

    Hi @utopian,
    Welcome to the HP Forums!
    I understand that you cannot scan with your HP Officejet Pro 8500 on Windows 7 using a wireless network. I am happy to look into this issue for you!
    Please take a look through this scanning guide, A 'Connection Error' or 'No Computer Detected' Error Message Displays during Scanning for HP Officej....
    Hope this guide helps!  
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • I have recently upgraded to mavericks and I cannot get my scanner to work.  I tried deleting the printer and reinstalled it but no luck

    I have recently upgraded to mavericks and I cannot get my scanner to work.  I tried deleting the printer and reinstalled it but no luck

    Canon does not support the MP530 on Mavericks, they have not produced drivers and apparently do not intend to,

  • Cannot get screen sharing to work long distance...

    I set up an AIM account for my mother-in-law so that I could remote screen-share her MacBook and help her with learning how to use it and trouble shoot it (it's a Late 2008 Aluminum MacBook hand-me-down from my wife).
    I've set up the account, but cannot get remote screen sharing working. Screen sharing works fine over bonjour, but no go over the internet using AIM. I can control my wife's MBA from my iMac and vice-versa, but neither of us can control her MacBook. When we choose "Ask to share users screen...", we get the pop up window stating "Waiting for response from user", along with the spinning gear icon. If she chooses "Share my screen with...", the pop up window appears on our Macs and we're able to choose accept. But then the pop up window switches to "User would like you to share his or her screen" and just sits there. Nothing happens. On her screen, she gets the message "waiting for response from user" and nothing else happens.
    After a long wait, my screen will say, "There was a communication error during your chat. Messages didn't receive a response from..." and gives me the option to report the details to Apple.
    What am I doing wrong?
    Her MacBook is running Mavericks, as are our machines.
    Message was edited by: pmpknetr21
    Message was edited by: pmpknetr21

    Hi,
    @mac.com and @me.com ID works as AIM Screen Names  (you add them like they are and existing name) but only if you are using Messages 7 or 8 plus later versions of iChat 6 in Lion.
    You should be able to use the Apple Issued IDs in Mavericks.
    If you using an AIM Registered name try using it without the @AIM.com or @AOL.com suffix (User Name only)
    As AIM can "read" the Apple Database it will think the Apple IDs exist already but may not tell you that is the reason you can't re-register them.
    Can you post the info being sent to Apple here ?
    However stop the log after about 10 lines of the Binary Images (I will not need it all).
    9:28 pm      Sunday; August 3, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • I just updated my iphone to IOS 7 and cannot get my imessage to work, it keeps saying "waiting for activation" nothing i have read online has helped me try to fix the problem. why is it doing this and how can i fix it?

    I just updated my iphone to IOS 7 and cannot get my imessage to work, it keeps saying "waiting for activation" nothing i have read online has helped me try to fix the problem. why is it doing this and how can i fix it?

    Here's a good troubleshooting article about imessage "waiting for activation".
    http://support.apple.com/kb/TS4268

  • I cannot get "home sharing" to work on my Apple TV device

    I cannot get "home sharing" to work on Apple TV.I
    I type in my apple id and password to no avail.
    Why isn't the apple tv device taking this info and activating home share?

    I am having the same problems with Home Sharing using the Apple TV.  The problems seemed to appears to have started within the last week or so.  Did updates and all.   Went to the Apple TV and it couldn't see either Home Share on either computers that Home Share is turned ON.  Reset the routers, reinstalled iTunes on the iMac and MacBookPro.  Created a second Wi-Fi Access point using a Airport Express.  Put the MacBookPro and TimeCapsule on the same network and still no love to see the Home Share contents.
    We have had both Mac's and Apple TV for several years and have never had any problems like this.

  • I cannot get Adobe ExportPDF to work. The screen is blank when I click on Select PDF files to Export.  I use windows 7.

    I cannot get Adobe ExportPDF to work. The screen is blank when I click on Select PDF files to Export.  I use windows 7. I also tried to export a document directly from Adobe Reader using the tool, but it gave me an error message. Any suggestions?

    Hi,
    Try to use different browser.
    Would it be possible for you to send me the document so that i can take a look at my end?
    You can email me at:[email protected]
    Regards,
    Florence

Maybe you are looking for

  • Screen Share, Audio Chat and Video Chat not working

    Hey everyone. I recently started having issues with using some of the iChat protocols over AIM with a friend of mine. I can send IMs and files perfectly, but I can't get Audio Chat, Video Chat or even Screen Sharing (both ways) to work. After a while

  • How to do pivoting on part of an SQL output row in 10g

    Hi, I'm using Oracle 10.1.0.5.0. I would like to know what the general decode is for pivoting in 10g. I need to display PAGE_DISPLAY_NAME, ITEM_DISPLAY_NAME, ITEM_TYPE_DISPLAY_NAME essentially once and then display ATTRIBUTE_DISPLAY_NAME and ITEM_ATT

  • Mode not supported when trying to connect mac to tv

    I'm trying to connect my Mac to the TV as I do nearly every day using my HDMI cable via the apple HDMI adaptor (don't know exactly what that cable is called). But when I try it cuts in and out in fuzziness for a bit then eventually comes up with the

  • Built-In Audio Devices disappeared

    Greetings everyone, I got a big audio problem. The Built-In Audio Out and Inputs of my iMac (2011) disappeared in system preferences and i noticed the coreaudio process has high CPU usage all the time. Even force quitting isnt helping, as it restarts

  • Message distribution problem

    Hi, I am doing a simple test. I have total 2 Queue's on 2 different machines(each has 1 queue). Say A and B. Queue's configs are identical. I want to distribute 2 messages to queues on A and B by turn. The first one to A and the last one to B. I wrot