Jan 14, 2009, 1:08 PM
Spring.NET validation integration
Hi,
I do realize this is a bit of a big subject but here goes:
My current project requires me to work with the Spring.NET framework. This framework provides validation including a control. Since this control does not subclass Coolite.Ext.Web.Component I cannot use it inside an AnchorLayout. Instead Spring.NET comes with a ValidationError control that subclasses AbstractValidationControl that subclasses System.Web.UI.Control.
Requirements are:
- Must participate in ext layouts
- Must be able to display/hide and change message after an asynchronous callback
Unfortunately this seems tricky since both these requirements seem to depend on subclassing a concrete class rather than implementing an interface. At the moment it seems easiest to write sort of an adaptor control that subclasses Coolite.Ext.Web.Component and references a Spring.Web.UI.Controls.AbstractValidationControl that defers rendering of validation errors to the Coolite.Ext.Web.Component.
Any thoughts or pointers on this?
Regards,
Dirk Louwers
I do realize this is a bit of a big subject but here goes:
My current project requires me to work with the Spring.NET framework. This framework provides validation including a control. Since this control does not subclass Coolite.Ext.Web.Component I cannot use it inside an AnchorLayout. Instead Spring.NET comes with a ValidationError control that subclasses AbstractValidationControl that subclasses System.Web.UI.Control.
Requirements are:
- Must participate in ext layouts
- Must be able to display/hide and change message after an asynchronous callback
Unfortunately this seems tricky since both these requirements seem to depend on subclassing a concrete class rather than implementing an interface. At the moment it seems easiest to write sort of an adaptor control that subclasses Coolite.Ext.Web.Component and references a Spring.Web.UI.Controls.AbstractValidationControl that defers rendering of validation errors to the Coolite.Ext.Web.Component.
Any thoughts or pointers on this?
Regards,
Dirk Louwers