Richard Wallace wrote:
Ok, but how should I "tinker" with the element tree? I'm guessing AJAX
will need to come into play. But how do I get access to the element
tree? And exactly how should I manipulate it? I'm guessing there's no
ready to go methods already in the JSF APIs to accomplish this, are there?
I think you have a small misunderstanding here what JSF is and what you
can do.
You cannot alter the backend element tree without any refresh, so you
have to force a refresh to do that in the backend.
If you want to alter the displayed form controls without refresh you
only can do it with javascript (and ajax if it is dependend on data)
JSF is a plain and pure server side UI api, while javascript a pure
client side one is. Thus you cannot really change the form rendering
from pure JSF without any refresh or going the javascript route.