users@jsf-extensions.java.net

Re: Custom converter problem using dynafaces

From: Roger Kitain <Roger.Kitain_at_Sun.COM>
Date: Tue, 22 Jan 2008 08:44:43 -0500

Any chance you can send the jsp or facelets page, faces-config.xml,
converter, etc?

castellano wrote:
> Hi, i'm new in dynafaces and ajax and i have the next problem.
> I have the next code
> <jsfExt:ajaxZone id="zone1" inspectElement="true">
> <h:inputText id="field1" value="#{someBean.field1}"
> onchange="DynaFaces.fireAjaxTransaction(this, { render:
> 'test:zone2, test:zone1:field1', execute: 'test:zone1:field1'}); return
> false;"
> >
> <f:validator validatorId="field1Validator"/>
> </h:inputText>
> <h:message id="mensaje-field1" for="field1"/>
> </jsfExt:ajaxZone>
> <jsfExt:ajaxZone id="zone2" inspectElement="true" >
> <h:inputText id="field2" value="#{someBean.zone2.field2}"
> class="field" readonly="true"/>
> </jsfExt:ajaxZone>
>
> This code works fine, but if i i define a custom converter for the field 2
> as follow
> <converter>
> <converter-for-class>classField2</converter-for-class>
> <converter-class> classConverterField2 </converter-class>
> </converter>
>
> Then the field2 is not refresh anymore when the field1 value is changed. If
> the page is refresh the values of the fields are ok and the converter works
> propertly.
>
> Anyone has any idea?
>
>
>