I could make converter works by replacing selectOneMenu.setSubmittedValue(value) to selectOneMenu.setValue(value), now my entityConverter works with any persistence layer and any entity as i wish.

2006/7/21, Rogerio Pereira <[EMAIL PROTECTED]>:
Oh man sorry, it was a mistake with GMail :)

Well i use submitted value because this is the way that i prefer to work with some forms that do intensive use of ValueChangeEvents.


2006/7/21, Mike Kienenberger <[EMAIL PROTECTED]>:
Rog, keep it on the mailing list, please. :-)

I do something similar for my Cayenne entities without problems.   I'm
not sure why you'd need the submitted value.   getAsObject passes the
submitted value as an argument, and the return value for getAsString
will be used as the submitted value on rendering.

On 7/21/06, Rogerio Pereira <[EMAIL PROTECTED] > wrote:
> In my case i'm creating a generic entity converter that returns an hibernate
> entity to use on my bean by calling (MyEntity)
> selectOneMenu.getSubmittedValue(). I would like to do this:
> selectOneMenu.setSubmittedValue(myEntity) and when the converter is called
> the option value is set to entity id, but after your response i think this
> is impossible.
>
> 2006/7/21, Mike Kienenberger <[EMAIL PROTECTED]>:
> > The submitted value for a UIInput component is the unconverted value, yes.
> > Converters get called from processValidations, renderResponse, and
> > possibly other phases as well (I think the submitted value is
> > converted to a local value in processValidations (applyValues for
> > immediate components) and the backing bean data is converted back to a
> > string during renderResponse).
> >
> > On 7/21/06, Rogerio Pereira < [EMAIL PROTECTED]> wrote:
> > > Hi guys,
> > >
> > > The converters only works for selectOneMenus when i send data from page
> to
> > > bean or works when i change the value from bean and then refresh the
> page?
> > >
> > > In my case when i call selectOneMenu.setSubmittedValue (someObject);
> from a
> > > ValueChangeEvent, no conversion is done, this is correct?
> > >
> > > --
> > > Yours truly (Atenciosamente),
> > >
> > > Rogério
> >
>
>
>
>
> --
> Yours truly (Atenciosamente),
>
> Rogério



--
Yours truly (Atenciosamente),

Rogério



--
Yours truly (Atenciosamente),

Rogério

Reply via email to