• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsf edit rows  RSS feed

 
Zsolt Fugedi
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,
 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!