I've been poking around all over the place looking for how one can invoke a servlet from within a backing bean and have come up empty. The most promising code I found was:
The problem is...it doesn't work! I don't know if it is an icefaces issue or what, but I get the following error:
java.io.IOException: Cannot dispatch on XMLHTTP request.
I'm hoping someone out there will have other ideas, and please...no suggestions on how to better design this thing. It's gotta stay a servlet! This isn't the only place this thing gets used. I am open, however to other suggestions on how to call the servlet. Originally, it was being invoked via an outputLink, but now it needs to perform some action as well. I realize that I could create a hidden input button and invoke it with some javascript, but that just seems awfully hokie to me. I would like to present my boss with a more elegant solution than that.
Thanks in advance, everyone. Lance.