Re: How do I update my model?

2009-08-05 Thread David Leangen
Ok, thanks for the tip. Looks like all I needed was to call modelChanged() directly on the TextField. Cheers, =David On Aug 5, 2009, at 10:21 PM, Craig McIlwee wrote: If a FormComponent has raw input (FormComponent.hasRawInput() == true) then it will use that value when rendering inst

RE: How do I update my model?

2009-08-05 Thread Craig McIlwee
If a FormComponent has raw input (FormComponent.hasRawInput() == true) then it will use that value when rendering instead of its model object. I find that pretty often (or more likely always) have to call FormComponent.clearInput() when updating a component's model object during an ajax request

Re: How do I update my model?

2009-08-05 Thread nino martinez wael
an example where I replace panels instead of updating: dropDownExercise = new DropDownChoice("exercise", new Model(), new PropertyModel(selectedCategory, "exercises"), new HasNameRender()) { @Override

Re: How do I update my model?

2009-08-05 Thread nino martinez wael
hmm what I have is this: @Override protected void onSelectionChanged(Object newSelection) { // TODO Auto-generated method stub super.onSelectionChanged(newSelection);