java - Form<Void> in Wicket (or usage of the Void type in general) -
came across code in wicket so:
form<?> form = new form<void>("form") can explain usage of void type here? first time i've seen type being used actually. used t outside of wicket?
yes, it's used outside of wicket. example, when method takes callable<v> argument, , callable doesn't return anything, use callable<void>. void used indicate parameterized method doesn't return anything.
in particular case, according documentation, it's used indicate form doesn't have model object. valid value of void type null.
Comments
Post a Comment