Using rendered= stops action method being called on commandButton
Help help help please.
I have a managed-bean defined at "request" scope. This bean contains an encodedId field which is a string. This string is present in the form as a hidden field. On submit of the form, this setEncodedId is called on my bean, which then decodes the string and does setup of the bean.
The problem I have is that if I use a commandButton with rendered="#{MyBean.renderNextButton}" and the result of isRenderNextButton() is dependent on encodedId from the submit, then the button IS correctly rendered, but the action tied to the button fails to be called and the same page reloads when the button is clicked.
However, if I hardcode 'true' as the return value of isRenderNextButton() then the button renders and the action is called correctly.
I've also noticed that isRenderNextButton() is called four or more times on each submit even through I've only got one button using this rendered expression.
Any ideas anyone?

