ActionListener doesn't work with image command_button

Hi,
with EA4, if I set an ActionListener on a command_button without specifying the image attribute, everything just works fine.
If I now replace the label attribute with an image attribute, the action listener is no longer triggered.
It seems that nobody reported this problem before, so maybe I've missed something.
I tried several ways to make it work, but without success.
Any clue ?
Here is the code of my test :
** index.jsp :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
<title>
Action listener and image command button
</title>
</head>
<body>
<f:use_faces>
<h:form id="form" formName="form">
<h:command_button id="clickButton" commandName="click" image="foo.gif">
<f:action_listener type="foo.MyBeanActionListener" />
</h:command_button>
<h:output_text id="text" valueRef="MyBeanActionListener.text" />
</h:form>
</f:use_faces>
</body>
</html>
** faces-config.xml :
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>MyBeanActionListener</managed-bean-name>
<managed-bean-class>
foo.MyBeanActionListener
</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
** MyBeanActionListener :
package foo;
import javax.faces.event.*;
import javax.faces.application.*;
import javax.faces.FactoryFinder;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
public class MyBeanActionListener implements ActionListener {
private String text;
public void processAction(ActionEvent event) throws AbortProcessingException {
FacesContext context = FacesContext.getCurrentInstance();
ApplicationFactory factory = (ApplicationFactory)
FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
Application application = factory.getApplication();
ValueBinding binding = application.getValueBinding("MyBeanActionListener.text");
binding.setValue(context, "Button was Clicked");
public PhaseId getPhaseId() {
return PhaseId.ANY_PHASE;
public void setText(String text) {
this.text = text;
public String getText() {
return text;
Thanks in advance.
Michael

but with EA4 the TLD doesn't
define any src attribute for tag command_button.
Do you (or anybody) have another idea ?oh - sorry about that ... i was looking at some other tag on my JSP and wrote this ...
yeah, but an absolute URL does solve the problem ... or if u want it to work with a relative URL - use the HTML <base href=".." /> tag to establish the base

Similar Messages

  • Onclick doesn't work with images

    why would you not encorporate the onclick event for images, images are after all such a big part of webpages, it severly messes up so many websites, can you please make the next version work onclick for images?
    == URL of affected sites ==
    http://
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)

    If you can't click on images then there is either a problem with that website code like another element is covering the link or you have a problem with an extension.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • I have lightroom 4 and it doesn't work with d4s raw images? what can I do?

    i have lightroom 4 and it doesn't work with d4s raw images? what can I do?

    That model begin to be supported only in the very latest version of Lightroom, version 5.4. You will either need to upgrade Lightroom, or else use the latest version of the free Adobe DNG converter (version 8.4) to create digital negative copies of your raw images. Then you can import those DNG files into the Lightroom that you have now. The choice is yours.

  • WebScan doesn´t work with iPhone browser

    The C4780 web interface for scanning is very practical because no driver installation on computer is required for scanning. Just point any web browser to its internal web server, start the scanning process and download the scaned image as a regular element on a web page, all using web standards, right?
    Well, wrong for the iPhone browser.
    For some reason, the C4780 (and probably other HP multifunction firmware) has incomaptible/untested Javascript/HTML that doesn´t work with the iPhone browser.
    On preview action I´m getting a question mark box.
    On scan action - where a new browser window would open on a desktop - I get nothing.
    Please fix that. It could be very useful for me since I can simply scan stuff directly to my iPhone without having to open a computer.
    I also posted this message under Scanning Faxing and copying.
    Thank you,
    Avi

    On the iPhone, go to Settings...Safari...Turn Blocked PopUps off.
    Worked for me with a PhotoSmart C4700.
    It would be even nicer to have a simple iPhone app instead of using Safari.
    (Anyone want to write it?)
    -Wayne

  • IPhone original doesn't work with Belkin TuneBase FM after 2.0.1 update

    iPhone original doesn't work with Belkin TuneBase FM after 2.0.1 update

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • Epson 1640xl does't work with image capture.

    I have an epson 1640XL scanner. I know the epson scan utiliy doesn't work with Snow Leopard. I have been instructed to use Image Capture.
    I see the scanner on the left, and when it "overview" scan's the image the scanner makes noise but doesn't produce anything on the screen.
    Any thoughts on how to get it working?
    seth

    I had all the problems stated above, while trying to scan with Image Capture. I got nothing but the "the scan operation is cancelled", after multiple tries. I called Epson. They said there was no driver that would work with OS X 10.8.4 for this scanner, and suggested that I call Apple. Apple said there was nothing they could do, and that I should call Epson. I followed the advise someone gave above, and downloaded EPSON Scan 3.8.0. The Epson software didn't work. It didn't seem to be able to pick up the 1640 XL. But, suddenly, I could preview with Image Capture. It was progress, but wouldn't work past the Overview step. The Scan button was "greyed out", not allowing me to proceed. I then tried importing through Photoshop. It works! Go to File/Import/Images from Device and you will get beautiful scans. Good luck, everyone.

  • Lexmark scanner doesn't work with mac os x

    I have a problem with my scanner lexmark p4330. For two weeks now it doesn't work with my imac. I have the imac os x 10.7.5.
    When I try to scan, my printer displays "the all in one driver did not respond" and in Image Capture it displays "lexmark language error".
    I updated my softwares, there's one for lexmark but I can't install it and I don't know why!
    Can someone help me please?

    Mmm. Not sure what's going on. Has scanning ever worked with the OS you are currently running?
    A couple of suggestions (my last two I think as I'm running out of ideas ). I realise that your problems are only with scanning, but sometimes resetting the printing system resloves printing problems. I wonder whether it will help with the scanning issue given that Print & Scan are lumped together in System Preferences. To do it go to:
    System Preferences>Print & Scan, Control+Click or Right Click on the printer on the left and select 'reset printing system'. All printers will be deleted and need to be added again using the '+' button.
    If that doesn't help my last suggestion is to download the paid for app VueScan (which you can run in demo mode for free) to see whether it works or not. VueScan is very good and driving numerous types of scanners:
    http://www.hamrick.com

  • MSI K7N2-L usb 2.0 doesn't work with scanjet 4570c

    I have a MSI K7N2-L motherboard with WINXP and SP1 that doesn't work with Scanjet 4570C if I set USB in BIOS to 1.1+2.2.  Sometimes it locked up the PC or it showed streaks on the image.  It worked just fine if I set to USB 1.1.  Does anyone knows this is the problem with the MSI motherboard?  I'm sure it was not the Scanjet since it is USB 2.0 supported, and I'd tried another Scanjet and the problem was still the same.

    Quote from: Wonkanoby on 21-March-05, 21:14:07
    If you are having problems with USB ports, read this topic.
    besure you have only 8 wires connected no usboc
    Nice topic! 
    But usb 2.0 DOES work with 1.3, 1.4 and 1.52 BIOSes. Only after updating to 1.5 official one of the front panel ports (not all 2) start works as 1.1   

  • HT3325 Keynote Remote doesn't work with hyperlinks?

    Remote sync well with iPad .. Impressive
    However, it doesn't work with any hyperlinks!
    It's simply an image and swiping the pages ... Ignoring all hyperlinks ... It does work with media but u would have to put them in sequence in your slides. If you work with many hyperlinks within a slide, you can't get any to work with the remote!
    Quite disappointed that Apple actually charges for an app so simple with no value added services!
    There are many free apps doing the same simple tasks.
    Thumbs DOWN.
    Do something about it Apple!

    Any remote that actually works?

  • Trying to load illustrator 6cs onto new mac and the old activation code for my ill cs doesn't work with it

    Trying to load a downloaded version of illustrator 6cs onto new mac and the old activation code for my illustrator cs doesn't work with it.  Do I need a new code or am I missing something?  Same goes for my Photoshop cs.

    you need your serial number.
    if you purchased from or registered with adobe check your account, https://www.adobe.com/account.html

  • Cinema Display (clear) with DVI/ADC box doesn't work with MacBook Pro

    Cinema Display (clear) with DVI/ADC box doesn't work with MacBook Pro when plugged in with a dvi to mini dvi cable. Any ideas what to do to make it work? I lugged the 23" 2500 miles into the wilderness and I need help

    Okay, here's an update: the DVI to ADC adapter does work with the Apple displays that I have tried, but it won't work with the Formac. I have tried multiple time to contact them, but to no avail... they don't even respond to threats of posting my opinion of them, which is this:
    DON'T BUY ANYTHING FROM FORMAC! They make quality products, but their customer service is a big time joke! They won't take care of you.

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • TS1253 I have a printer epson TX210, but it doesn't work with my time-capsule. What need to do?

    I have a printer epson TX210, but it doesn't work with my time-capsule. What need to do?

    What have you tried?
    You are going to get nowhere quick with the 6.1 utility in Mountain Lion if this is the only OS you have available.
    Look up how to install 5.6 utility under ML. At least then you can see printers. That is assuming you are trying to use USB.
    Has this worked ever on Mountain Lion? Did you download the drivers for that printer for ML?
    Plug it into a computer directly.. does it work? If it doesn't work locally it sure will not work via the network.

  • My i pod nano first generation doesn't work with windows 8

    My i pod nano first generation doesn't work with windows 8

    Howdy yvesmd,
    Thanks for using the Apple Support Communities.
    If your iPod nano is not being recognized in iTunes on your Windows computer, then I'd like you to please follow the directions in the link below.
    Apple - Support - iPod - iPod nano Troubleshooting
    Cheers,
    Alex H.

  • Quicklook doesn't work with .avi files

    Hello, i've got a little problem right here on my mac. The thing is that I used to have Snow Leopard as a OS and quicklook used to work great, it opened all the extensions I used to work with. The thing change when I format my HDD and installed a clean copy of Lion OS. Now quicklook works fine as it used to but not any more with .avi files. I remember that this feature was working great on my previous OS, and it's really important for me to find a solution because quicklook is an absolutely amazing feature of our Macs.
    I've tryed to download plugins, restoring permissions or even trying it with a guest user, but no success.
    Please help me. If you need more info about specs or something i'll be glad to give them to you.
    Thank you!!!

    Also doesn't work with Grapher (.gcx) documents (an Apple format).

Maybe you are looking for

  • Why does internet slow or stop when bluetooth is on?

    I've recently started using a bluetooth headset so have been leaving bluethooth on.  But I noticed 3G (AT&T) Internet is sometimes VERY slow, almost unusable.  I never had this problem before.  If I turn off bluetooth and restart the phone, internet

  • ALV Editable

    HI all, i am working on ALV Editable display where i need to save the edited data.i have a pblm while saving the data.when i am changing one cell the remaining cells data is getting as blank.please help here is my code in the perform of the evernt da

  • Tax condtions are missing in service order

    HI all, when I am creating a service order in PCUI  all the tax conditions for the service material are getting determined in the document.But after changing the userstatus to technically complete and after maintaining the MOP  in the service orderan

  • DNG/XMP AppendProperties/ApplyTemplate

    I downloaded the latest DNG SDK (1.3) and XMP Toolkit SDK (CS6).  The DNG SDK expects "AppendProperties", while the XMP has replaced that with "ApplyTemplate". I then tried an earlier version of the XMP Toolkit (4.4.2), but then multple Quicktime SDK

  • Help - updating ipod software

    I have been trying since Christmas to update my ipod classic's software. But itunes takes ages in trying to connect to the ipod software update server, and then won't connect. My internet connection is working fine for everything else. Is itunes the