The following seems not to work:

<h:form onsubmit="return someJScriptFunction();">
  <h:commandLink action="#{bean.method}"
    <h:graphicImage url="/images/image.gif" />
  </h:commandLink>
</h:form>

The "someJScriptFunction()" is in general a simple "confirm(...)" function which
asks the user for submission of the form data (and should cancel submission if
the user presses the Cancel button).

If I use a commandButton (without the image) instead this works like expected!

1) Is there something wrong with my code above?

2) As a workaround I could live with a commandButton _if_ I could use a 
   graphicImage instead of the standard button. Unfortunately I couldn't find
   a way to do this.

Michael
-- 

Reply via email to