• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

OnRowEdit doesnt update the select drop down value correctly  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using PrimeFaces 5.1 , I have a field Cumulative indicator which is a select drop down wit Y/N/select, when I update the value to Y/N the edit/update is happening fine, but when I chose select as the drop down value it does not update it to null. I am able to set the value to null from the backend. When I chose select as the drop down value it should update to null instead it shows the previous value(Y/N) that is saved in the database. The below is my code xhtml, java bean and the update query. Please advice why its not updating the value to null value. Can you please assist.

Below if my xhtml:



Below is my java Bean:




Below is my update query:




Thanks,
Shilpa
 
Prasheel Mishra
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



OnRowEdit doesnt update the select drop down value correctly
 
Prasheel Mishra
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please assist
 
Prasheel Mishra
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please provide pointers. I tried setting the itemValue="#{null}" but it still doesn't set the value to null. Please help
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!