Re: FormComponentPanel and Validators

2007-10-04 Thread Igor Vaynberg
what javadoc are you looking at? The one online is based on trunk -igor On 10/4/07, Michael Laccetti <[EMAIL PROTECTED]> wrote: > I am using 1.3.0-beta2 - I popped open FormComponent in Eclipse and it > doesn't seem to exist. Do I have a versioning issue? > > Igor Vaynberg wrote: > > setconvert

Re: FormComponentPanel and Validators

2007-10-04 Thread Gwyn Evans
Some form of issue - it's definitely in 1.3.0b3 (D:\Wicket\apache-wicket-1.3.0-beta3\src\jdk-1.4\wicket\src\main\java\org\apache\wicket\markup\html\form\FormComponent.java) On Thursday, October 4, 2007, 4:15:39 PM, Michael <[EMAIL PROTECTED]> wrote: > I am using 1.3.0-beta2 - I popped open FormC

Re: FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti
I am using 1.3.0-beta2 - I popped open FormComponent in Eclipse and it doesn't seem to exist. Do I have a versioning issue? Igor Vaynberg wrote: setconvertedinput() is still there. it is public final void on the formcomponent. -igor --

Re: FormComponentPanel and Validators

2007-10-04 Thread Igor Vaynberg
Input(), as expected. The > JavaDoc suggests that I call setConvertedInput() from within convertInput(), > except that setConvertedInput() does not exist. Has this been replaced with > setModelValue(), and just not reflected in the JavaDoc? > > Mike > > Michael Laccetti wrote: &

Re: FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti
been replaced with setModelValue(), and just not reflected in the JavaDoc? Mike Michael Laccetti wrote: I've created a FormComponentPanel that wraps three text fields, to mimic a phone number. I created a custom validator, which I have added to the panel. When I submit the form, the validato

Re: FormComponentPanel and Validators

2007-10-04 Thread Igor Vaynberg
did you properly override convertintput() on the formcomponentpanel to generate an object based on the 3 children? by default it returns null and validators do not run on null values... -igor On 10/4/07, Michael Laccetti <[EMAIL PROTECTED]> wrote: > > I've created a FormCo

FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti
I've created a FormComponentPanel that wraps three text fields, to mimic a phone number. I created a custom validator, which I have added to the panel. When I submit the form, the validator does not seem to be fired. If I attach the validator to another form component, it fires witho

Re: FormComponentPanel and CompoundPropertyModel

2007-09-14 Thread Igor Vaynberg
initialize them lazily then add(new DropDownChoice("id", new PropertyModel(this, "model")); <== will evaluate at runtime so if cmp is used it will work. -igor On 9/14/07, Joe Toth <[EMAIL PROTECTED]> wrote: > > I have a FormComponentPanel, I want it to get an

FormComponentPanel and CompoundPropertyModel

2007-09-14 Thread Joe Toth
I have a FormComponentPanel, I want it to get and set a property from the Form it belongs to who's model is a CompoundPropertyModel. When the FormComponentPanel is loaded, how can I get the backing model's object whether someone passes in a Model or it should get it from the pare

Re: warning: API break FormComponent#checkRequired and FormComponentPanel

2007-08-12 Thread Eelco Hillenius
> Please read https://issues.apache.org/jira/browse/WICKET-839 and > https://issues.apache.org/jira/browse/WICKET-840 and check whether > this effects you. I didn't have time to look at the wicket-stuff > projects, but if you are extending FormComponentPanel, you'

warning: API break FormComponent#checkRequired and FormComponentPanel

2007-08-12 Thread Eelco Hillenius
All, Please read https://issues.apache.org/jira/browse/WICKET-839 and https://issues.apache.org/jira/browse/WICKET-840 and check whether this effects you. I didn't have time to look at the wicket-stuff projects, but if you are extending FormComponentPanel, you'll have to implement che

Re: Troubles combining submodels in a FormComponentPanel

2007-07-27 Thread Igor Vaynberg
hrm, what version of wicket are you using? to me it looks like abstractsingleselectchoice.convertvalue() does convert id back to choice object. -igor On 7/27/07, Stephane Boisson <[EMAIL PROTECTED]> wrote: > > Igor said: > > at the time of convertinput() models are not yet updated. so you shold

Re: Troubles combining submodels in a FormComponentPanel

2007-07-27 Thread Stephane Boisson
Igor said: > at the time of convertinput() models are not yet updated. so you shold call > month.getconvertinput() to get the input. I tried this, but I get the option id not the value.. Ex: The generated HTML for the year dropdown looks like: 1995 1994 1993 (...) If '1993' is selected yearPick

Re: Troubles combining submodels in a FormComponentPanel

2007-07-27 Thread Igor Vaynberg
at the time of convertinput() models are not yet updated. so you shold call month.getconvertinput() to get the input. -igor On 7/27/07, Stephane Boisson <[EMAIL PROTECTED]> wrote: > > Well. I tried using a PropertyModel for each DropDownChoice, but same > results.. > Looks like the model doesn't

Re: Troubles combining submodels in a FormComponentPanel

2007-07-27 Thread Stephane Boisson
Well. I tried using a PropertyModel for each DropDownChoice, but same results.. Looks like the model doesn't get updated even if each DropDownChoice has a valid selection.. I looked at the source of Model (Wicket 1.3), and it simply store the value as a Serializable attribute.. So I should work wi

Re: Troubles combining submodels in a FormComponentPanel

2007-07-27 Thread James Law
missing something? Thank you! Stéphane public class ComboDatePicker extends FormComponentPanel { private Logger log = LoggerFactory.getLogger( ComboDatePicker.class ); private DropDownChoice dayPicker; private DropDownChoice monthPicker; private DropDownChoice yearPicker

Troubles combining submodels in a FormComponentPanel

2007-07-27 Thread Stephane Boisson
for converted input I got the option index instead of the real date.. I am missing something? Thank you! Stéphane public class ComboDatePicker extends FormComponentPanel { private Logger log = LoggerFactory.getLogger( ComboDatePicker.class ); private DropDownChoice dayPicker; private

<    1   2   3