How to modify rendered HTML dynamically

Hi, I'm looking for a method to modify rendered HTML appearance at runtime. I.e. enabling/disabling a button according to some other condition. I can do it within the same page, by means of a valueChangeListener, then searching for the componennt id to enable/disable. But I cannot when coming from another page, since the involved lifecycle refers to this one. The target page is rendered at the end, and I would like to modify its button then. I guess I should influence the render response phase to enable/disable that button, but how ?

[547 byte] By [Tomarenza] at [2007-10-3 4:52:27]
# 1

You can use EL in the rendered or disabled attributes:

<h:commandButton value="..." action="..." rendered="#{MyBean.shouldButtonBeRendered}" />

<h:commandButton value="..." action="..." disabled="#{MyBean.shouldButtonBeDisabled}" />

etc

guy.colemana at 2007-7-14 22:57:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...