That should work fine then. The field should in initModel find the compound and then get the stdid property of that. Debug it a bit better or make a quickstar
On 12/13/07, freak182 <[EMAIL PROTECTED]> wrote: > > Yes.i have a webpage and there is a form there the that access it. like the > following code snippet: > class TestPage extend Webpage { > public TestPage(){ > Form form = new StudentForm("std",new CompoundPropertyModel(new > Student())); > } > > class StudentForm extends Form { > public StudentForm(String id,IModel model){ > super(id,model); > add(new AtmKeypadField("stdid"); > } > } > ..stdid is a property of Student and it is assigned to parent > component..Cheers...Tnx a lot. > > Johan Compagner wrote: > > > > So stdid is a property of a compountmodel that is assigend to a parent > > of that component? > > > > On 12/13/07, freak182 <[EMAIL PROTECTED]> wrote: > >> > >> Hello, > >> I have a problem.I'm creating a custom component and it happens to be a > >> textfield.My problem start when i follow the DatePicker component > >> structure.The datepicker structures works well and so the component i > >> made > >> with some tweak of course.But when i bind it or implement to the pages it > >> gives me null.I have attached my code for clarity and better understand > >> my > >> problem. http://www.nabble.com/file/p14310802/AtmKeypad.txt > >> AtmKeypad.txt > >> http://www.nabble.com/file/p14310802/AtmKeypadField.html > >> AtmKeypadField.html > >> http://www.nabble.com/file/p14310802/AtmKeypadField.txt > >> AtmKeypadField.txt > >> > >> ...when i do this.. > >> add(new AtmKeypadField("stdid"); > >> > >> I get null value for that property..Cheers..Tnx a lot. > >> -- > >> View this message in context: > >> > http://www.nabble.com/Help-for-custom-textfield-component-w--javascript-tp14310802p14310802.html > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Help-for-custom-textfield-component-w--javascript-tp14310802p14312709.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]