This content has been marked as final.
Show 5 replies
-
1. Re: Action method never called
ilya_shaikovsky Jun 12, 2007 6:38 AM (in response to balteo)Paste plsease the steps you perform.. Did you just point your button to true value but in your bean. Or your button get rendered after some actions and doesn't work then..?
-
2. Re: Action method never called
balteo Jun 12, 2007 7:38 AM (in response to balteo)Yes, my button gets rendered after some action and doesn' t work then.
What do you means by the steps?
Julien. -
3. Re: Action method never called
ilya_shaikovsky Jun 12, 2007 7:41 AM (in response to balteo)make sure that you do not reRender your button directly. In this case you should have some wrapper like a4j:outputPanel around button and render it where needed.
-
4. Re: Action method never called
balteo Jun 12, 2007 7:47 AM (in response to balteo)By the way I tried with a h:commandButton and it does not work either. So should I try this?
begin output panel rendered="#{ContractManagedBean.contractForUpdate}" <a4j:commandButton action="#{ContractManagedBean.updateContractAction}" image="images/update.png" /> end output panel
Note that my button does get rendered only it does not work.
Is this a bug in my jsf implementation?
Have a look here:
http://forum.java.sun.com/thread.jspa?threadID=779299&messageID=4438000
I suspect it has nothing to do with a4j. Can you confirm?
Julien. -
5. Re: Action method never called
ilya_shaikovsky Jun 12, 2007 7:53 AM (in response to balteo)about link - Yes you need to have the bean session scoped.
About outputPanel<a4j:outputPanel ajaxRendered="true" id="somepanel"> <h:command* rendered="#{qwe.qwe}"> </>
And reRender the panel not the element.