This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Update the Primefaces Picklist dynamically on button events ?  RSS feed

 
prakash md
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I am new to JSF,trying to customize the primefaces picklist, I want to update the picklist Source List dynamically on certain events like onclick or change?
I tried to write an Listener and populate the dualModel, the call is going to the method and List is getting updated but in UI, the old list is only maintained .
I have also asked this question in stackoverflow ,
Please refer this link for further details
stackoverflow
stackoverflow.com/questions/21499070/how-to-update-primefaces-picklist-on-
certain-event-like-commandbutton-click-sel
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Prakash md",

Welcome to the JavaRanch! We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see
http://www.javaranch.com/name.jsp . In your particular case, we ask that you supply a more name-like display surname than simply "md". If your real surname is already being used by someone else, the JSF staff will be happy to help you setup something that meets our requirements without conflicting.

Also, thanks for letting us know that you've asked this question in other places. It will help reduce confusion.
 
prakash md
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim, for pointing out. I have raised the name change.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!