JSF refresh Page
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   venkata_somagatta
Posted On:   Friday, September 7, 2007 06:39 PM

Hi , I am trying to accomplish clearing the input fields in jsf page.I have a method to be called on clicking the reset button. Here is my code value="Search" id="btnSubmit1" action="#{searchSubscriberBean.searchSubscriberID}" styleClass="primary"> action="#{searchSubscriberBean.resetme}" styleClass="primary" immediate="true"> in my backing bean i have a method resetme().But it looks this method is not being called at all,Since i haven't seen the sys out message aftre clicking the button. System.out.println(&   More>>

Hi ,

I am trying to accomplish clearing the input fields in jsf page.I have a method to be called on clicking the reset button. Here is my code





value="Search" id="btnSubmit1"
action="#{searchSubscriberBean.searchSubscriberID}"
styleClass="primary">

action="#{searchSubscriberBean.resetme}" styleClass="primary"
immediate="true">




in my backing bean i have a method resetme().But it looks this method is not being called at all,Since i haven't seen the sys out message aftre clicking the button.



System.out.println("reset>>>>>>>>>>>. ");
FacesContext context = FacesContext.getCurrentInstance();
Application application = context.getApplication();
ViewHandler viewHandler = application.getViewHandler();
UIViewRoot viewRoot = viewHandler.createView(context, context
.getViewRoot().getViewId());
context.setViewRoot(viewRoot);
context.renderResponse();




Any ideas , where iam doing wrong?

Thanks
   <<Less
About | Sitemap | Contact