primefaces - While selecting values in selectOneMenu, values are not getting selected -


i use selectonemenu component. using primefaces 5.2. reduced body size zoom="95%". first time selected value , once again selecting other value-->value not getting selected, still older value getting displayed.

xhtml code:

<h:body style="zoom:95%;">     <p:selectonemenu id="id"  value="#{managebean.summarysearch.status}"  style="width:180px;">                                                      <f:selectitem itemlabel="pending" itemvalue="pending"/>          <f:selectitem itemlabel="approved" itemvalue="approved" />          <f:selectitem itemlabel="rejected" itemvalue="rejected" />          <f:selectitem itemlabel="all" itemvalue="all" />     </p:selectonemenu>      <p:commandbutton value="search" actionlistener="#{managebean.search}"                                          update=":listform:empdt" /> </h:body> 

bean:

public void search(){                  summarylist=managedao.finddetail(summarysearch,new utill().getid());                                      if(summarylist.size()==0)                 {                     facescontext.getcurrentinstance().addmessage("editmessage",new facesmessage(facesmessage.severity_error,no_record_found,""));                 }              } 


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -