You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by fstof <fr...@fnb.co.za> on 2008/11/21 11:29:14 UTC

Composite input components not updating model

Hi
Thank you all for an incredibly helpful mailing list and a great framework

My problem is this
I have a form that gets submitted with an ajax button
On the form I have a couple of composite input components. I followed the
example in the book "Wicket in action" (sample chapter 8) to create the
components. But when I submit the form and theres no validation error, the
form submits fine, and all is well. But if there are errors (example: number
out of range) and I fix these and submit a second time my components'
convertInput() method is not called and onError() on my AjaxButton is called
every time, even if I fixed the input.
Also my FeedbackPanel does not go away when the error is fixed, I do
target.addComponent(feedback); on the buttons' onError() and onSubmit()  but
as I said onSubmit() never gets called, only onError()

Thanks in advance
Frans
-- 
View this message in context: http://www.nabble.com/Composite-input-components-not-updating-model-tp20618646p20618646.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Composite input components not updating model

Posted by fstof <fr...@fnb.co.za>.
Hahaa... Ive sorted it out... My stupid mistake...
I have my own implementation of Session and override the
cleanupFeedbackMessages() but did not implement anything in it, so my
messages remained in the session, and buggered everything up

Thanks



fstof wrote:
> 
> Hi
> Thank you all for an incredibly helpful mailing list and a great framework
> 
> My problem is this
> I have a form that gets submitted with an ajax button
> On the form I have a couple of composite input components. I followed the
> example in the book "Wicket in action" (sample chapter 8) to create the
> components. But when I submit the form and theres no validation error, the
> form submits fine, and all is well. But if there are errors (example:
> number out of range) and I fix these and submit a second time my
> components' convertInput() method is not called and onError() on my
> AjaxButton is called every time, even if I fixed the input.
> Also my FeedbackPanel does not go away when the error is fixed, I do
> target.addComponent(feedback); on the buttons' onError() and onSubmit() 
> but as I said onSubmit() never gets called, only onError()
> 
> Thanks in advance
> Frans
> 

-- 
View this message in context: http://www.nabble.com/Composite-input-components-not-updating-model-tp20618646p20620917.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org