setDefaultValue() and setDefaults() methods

Notice: This thread is very old.
MartyIX
Member | 217
+
0
-

Hi,

I'm a little confused with the code in these two methods:

Why is not the method setDefaultValue() called from setDefaults()?

Thanks!

Last edited by MartyIX (2011-11-13 13:17)

HosipLan
Moderator | 4668
+
0
-

There is no reason for that. It would just duplicate the execution of the “is submitted” condition.

MartyIX
Member | 217
+
0
-

Well, I wanted to override the setDefaultValue() method for my own control but it seems that I can just override setValue() method and it works as expected.

The problem solved :)