Hi Adriano,


using forms in a border is problematic:


You're adding the input fields to the border instead of the form. This works 
fine for resolving of components (as Border offers some special handling) but 
fails for form submits.


Because these components are not contained in the form, they will not be 
notified of new values thus not updating their values on incoming requests.



Regretfully add() is final, so I'm using a special add...() method in my 
borders that adds the given component to the containing form instead.



Sven







----- Ursprüngliche Nachricht -----
Von: Adriano dos Santos Fernandes
Gesendet: 13.01.09 00:44 Uhr
An: wicket-users
Betreff: DateField inside Border - model does not update



Hi!



Attached a quickstart demonstrating something bad happening with 

DateField inside a Border. The TextField updates, but the DateField doesn't.



Am I doing something wrong or is it a bug? If it's a bug, is there a 

workaround?



I'm using version 1.4-rc1.





Adriano





Reply via email to