Join GitHub today
Feature request: Components: reset input(s in form) #305
I've created the code below to my project. Maybe something to add to
I only did a tree visit instead of findComponentsInChildren() because the latter doesn't take into account all different states of the very same UIInput component when it's enclosed in a repeating component such as h:dataTable.
added a commit
Aug 24, 2016
Clear. Thank you for the prompt responses.
One other thing that came to mind though: for me getting the form and resetting its inputs is what I was going for. In other cases you might just want to reset a panel, subview, etc. Wouldn't it be better to simply reset the child inputs of the given component? If you need to reset a form you can simply get it yourself and use it when calling