Re: FormComponentPanel and setConvertedInput()

2008-01-11 Thread Igor Vaynberg
first you should implement convertintput() not setconvertedinput(). inside your impl of convertinput() you should call setconvertedinput() with the right value. this is indeed important as the converted input is what is passed into validators. so if you need your panel to support validators you

FormComponentPanel and setConvertedInput()

2008-01-11 Thread smallufo
Hi , I am evaluating FormComponentPanel . I looked into the document , it seems setConvertedInput() is the proper way . I use another method , which skips the setConvertedInput() , I don't know if it is suggested : Here is the code : public class TimePanel extends FormComponentPanel { private

Re: FormComponentPanel and setConvertedInput()

2008-01-11 Thread Michael Sparer
PropertyModel(time , year)).add( NumberValidator.POSITIVE)); And it still works (including the validator) - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/FormComponentPanel-and-setConvertedInput%28%29-tp14760809p14762773.html Sent