This content has been marked as final. 
    
Show                 3 replies
    
- 
        1. Re: How to reset input value for rich:calendarjpapouse May 25, 2012 11:25 AM (in response to vadivelcit)You can obtain calendar object on the client side via the following code: #{rich:component('calendarId')}This object has a few usefel methods like: .setValue() To reset the calendar value you can just call: #{rich:component('calendarId')}.setValue('')
- 
        2. Re: How to reset input value for rich:calendarvi_mahe_ka1 May 28, 2012 7:44 AM (in response to vadivelcit)1 of 1 people found this helpfulUse following code <a4j:commandButton value="reset" 
 action="#{bean.resetFormFields}"
 oncomplete="#{rich:component('popup')}.show()">
 </a4j:commandButton>public static void setValuesToUIInput(String id, String value) { UIInput component=(UIInput) FacesContext.getCurrentInstance().getViewRoot().findComponent(id); 
 if (null != component) {
 component.setValue(value);
 component.setSubmittedValue(value);
 }} setValuesToUIInput("popup:calndar", null); 
- 
        3. Re: How to reset input value for rich:calendarvadivelcit May 28, 2012 7:49 AM (in response to vi_mahe_ka1)Thanks guys 
 
     
    