After reading a bit of code it seems to me that the current validation only support "primitive" fields - Strings, Booleans, ... So this would be a bigger change. Do you have any idea where one should start or how this should be done?
Regards, Stefan Am Freitag, 20. Februar 2015 21:48:04 UTC+1 schrieb Jesse Glick: > > On Fri, Feb 20, 2015 at 3:51 AM, Stefan Wolf <[email protected] > <javascript:>> wrote: > > So seems like I need to implement something. > > Seems so. > > > Any ideas how to add default values for a field like that? > > I would suggest focusing your time on adding validation, which is more > broadly useful than default values. (Default values also tend to > interact poorly with other features.) > > You would have to dig around to see where and how this is implemented > for existing controls. Search for checkUrl attribute in taglibs, CSS > class ‘validated’, and hudson-behavior.js sections for > registerValidator and FormChecker and controlValue. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b44a0a32-2c15-4177-848c-d7e448221118%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
