so just write a method which will reset component value bindings, then call the method from some a4j:control and just reRender the panel with components, or just some concrete components set by id/ids
Thanks for your reply. I got your point to reset all value binding method to default value explicitly in a method, make an Ajax call to this method and re-render related component. This solution is straight forward.
But is there and way we can have it without writing an explicit method?
What I meant to say is when a JSF view is initially constructed we don't have
to set default value explicitly to any component they just go through a JSF cycle and we get our default values to all components in a page.
Is there any way I can have partial update for a set of component in a page
which goes to same initial levels on click of a button.
Just remove them from view in the action method - view handler will create new ones then with the default values.
Thanks. Can you give a sample code to achive the same ( remove a component from the view handler) or just tell me method to be called from facescontext ?
UIComponent parent, child; parent.getChildren().remove(child);