webtier@glassfish.java.net

Re: How to avoid _at_PostConstruct on page Faces beans during postback?

From: <webtier_at_javadesktop.org>
Date: Thu, 23 Apr 2009 12:23:02 PDT

>My question was: is it really necessary in my use case for rendered attributes to be evaluated >since there's no inputs and the action is on a different bean.
>In other words, is this a valid RFE to optimize this use case?

Per the spec, *all* components will have processDecodes() called upon them. The default implementation of processDecodes() will evaluate the rendered attribute.

Keep in mind that other components aside from UIInput need to take action during this phase.
UIForm and UIData are examples of this.

The processing shouldn't make any assumptions about what a particular component type may or may not need to do.

That said, you could create a custom UIViewRoot that overrides processDecodes() to call or not call processDecodes() as you see fit.
[Message sent by forum member 'rlubke' (rlubke)]

http://forums.java.net/jive/thread.jspa?messageID=343426