Render outcome of "action" attribute?

92 views Asked by At

i want to completely rewrite a <h:commandButton> renderer. Now i'm stuck at rendering the "action" attribute of the button. Is there a possibility to render this attribute the same way it gets rendered by the standard renderer ? Is there a possibility to retrieve the generated script from somewhere ? Furthermore i don't want to use third party libs, if possible.

Thanks in advance !

1

There are 1 answers

0
sofarsoghood On BEST ANSWER

As always, BalusC was right. There is no generated Javascript.

But there was another thing i forgot about. One needs to add the following code: button.queueEvent(new ActionEvent(button)); in the decode method of the according component renderer, where "button" is the UIComponent parameter of the "decode" method.

Thanks a lot BalusC !