Hi,
Can anyone please explain why reset() is used in form bean?
Thanks
Vivek Alampally
Kristof Camelbeke
Ranch Hand
Joined: Nov 28, 2001
Posts: 97
posted
0
As the name suggests this method allows you to reset your form properties....
the api says it all:
Reset bean properties to their default state, as needed. This method is called before the properties are repopulated by the controller.
The default implementation does nothing. In practice, the only properties that need to be reset are those which represent checkboxes on a session-scoped form. Otherwise, properties can be given initial values where the field is declared.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.