dev@javaserverfaces.java.net

Re: JSR-252 Issue 21 - Provided an additional "binding" attribute for the core Converter, Listener and Validator tags does not fit as spec doc says

From: Leonardo Uribe <lu4242_at_gmail.com>
Date: Mon, 29 Oct 2007 14:43:24 -0500

Hi

Ok, I understand the reasons.

But I feel that this change is equivalent to have no lazy loading on binding
attribute. If you have something
like this:

<f:converter converterId="javax.faces.BigDecimal" binding="#{
bindingCLVBean.converterBigdecimal}"/>

binding are set only on render response phase (not available on invoke
application phase), but if you have this:

<f:converter converterId="#{bindingCLVBean.converterBigdecimalString}"
binding="#{bindingCLVBean.converterBigdecimal}"/>

binding works with lazy loading (so available on invoke application phase).

I think (it's just my humble opinion, I'm not an expert of this) that this
behaviour is very complex for something that should
be very simple. Or maybe the solution on jsf ri to this issue is not
correct.

żIs this behaviour the way to set bindings on Validators, Converters and
ActionListeners? I need this answer to make the changes to
remain myfaces compatible with this behaviour if is true.

regards

Leonardo Uribe