Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

jsf edit rows  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i have a problem, When I modify the cells and i click update button, then the cells return to original state:( How can i modify and update the rows?

JSF page:




Teszt.java:






TesztBean.java:





TesztSetGet.java:





Thank you very much,
 
Bartender
Posts: 20770
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You provided too much information in one respect but not enough in another respect. Specifically, I cannot tell what the JSF scope of "tesztBean" is.

You probably did what most JSF newbies do and declared it as Request scope.

Request scope is almost totally useless in JSF, since a request scope object is destroyed at the end of the current HTTP processing request and a new request scope object is created for the next HTTP processing request. That means that the updates that were done to the previous instance of tesztBean would be lost.
 
Zsolt Fugedi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I resolved my problem,

The problem was:







I modifed jsf page:








thank you everybody
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!