jsf - passing string paramater using p:commandButton -


i want send 2 parameters using notificationupdate function. able pass p.email when trying send status string,its getting passed null.

<p:commandlink value="views"                                     action="#{statusbean.update(p.statusid)}" ajax="true"                                     style="text-decoration:none;color:white;" update=":statusblock" >                                     <f:actionlistener binding="#{notificationbean.notificationupdate(p.email,status)}" /> </p:commandlink> 

if meaning want send "status" string value, try send following:

<f:actionlistener binding="#{notificationbean.notificationupdate(p.email,'status')}" />  

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -