I need to pass any value (null or not null) to a model without validation. So I cannot call validate() but only convertInput() (as you can see for example in DropDownChoice). To do this inside a behavior class convertInput() method must be public (or I need to hack this using a reflection, but this is ugly solution).
-- Daniel On Fri, Feb 18, 2011 at 10:50 PM, Pedro Santos <[email protected]> wrote: > Do your use case needs to convert a null input? If the input is differs from > null FormComponent#validate will be just fine. > > > On Fri, Feb 18, 2011 at 5:20 PM, Daniel Stoch <[email protected]>wrote: > >> On Fri, Feb 18, 2011 at 10:09 AM, Daniel Stoch <[email protected]> >> wrote: >> >> > >> > My post was only a proposal, because it is not possible to easy extend >> > AjaxFormComponentUpdatingBehavior because onEvent() is final. I want >> > to avoid copy/paste code with only a little change. And I think this >> > change is very useful. But ok, I understand you, so I'll implement it >> > by myself. >> >> I've tried to implement my own behavior (with an option to bypass >> validation step). But unfortunately I cannot call >> formComponent.convertInput() which is necessary to get value from >> input. This is a protected method. Can you make it a public method? >> >> -- >> Daniel >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Pedro Henrique Oliveira dos Santos > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
