- Varun
Originally posted by Varun Khanna:
Best Solution :
- Add action attibute and it's implementation in your customized and extended h:graphicImgae tag.
Another workaround,
- Invoke javascript method on image "onclick" and call button.click() on an JSF hidden button and button can invoke backing bean method.
To hide the JSF command button use DHTML.
- Varun
Originally posted by Varun Khanna:
Put a hidden variable in your page too, and prior to button.click() set your value in it and in the backing bean you can get the hidden variable's value.
Originally posted by Darrin Smith:
I thought you might say that shortly after I replied!
OK, I'll poke around and try to find out how to do this.
Thanks!
Originally posted by Darrin Smith:
Yup, that works just fine,
although I need to hide my button and input fields now.
- Varun
Darrin Smith wrote:
Note that I can't just use a button to hold the image as my images get loaded dynamically from a servlet, and the button's image attribute does not take a URL but only a String that holds the image name.
[ June 06, 2005: Message edited by: Darrin Smith ]
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Klaus Schuster wrote:Hi,
I have the same problem
Klaus Schuster wrote:With this reaction I get very often the answer: "take the search function for that kind of problem" in some other forums.
I child proofed my house but they still get in. Distract them with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|