Hi
I am trying to invoke a commandButton with an action (i.e. invoke a bound method on a backing bean) from javascript. I am doing this because the method binding will not work if I place the <h:commandButton> tag within a jQuery component.
So, within my jQuery component (a modal dialog) I have an anchor that initiates the JS method:
And outside the jQuery element, I define a hidden
JSF commandButton:
Now the important part - the javascript:
defaultForm is the id of my JSF <h:form>.
The alert method is invoked, and displays an object reference... BUT the click() on the object just NEVER manages to work... i.e. the bound backing bean method never ever gets reached.
Any suggestions? I've tried making the anchor a commandButton with onclick defined - but that has the same result. I am using JSF 1.2 (project conrestraint).
Any help would be very greatly appreciated.