File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why not refresh jsf page

 
Minh Phuc
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I create a bean as

And my jsf page:

And my faces-config


I click on command link the random was called but the data on page was not change although i have been edited data on database. Another case, i navigate to other page after that i return but the data is old! Please help me!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17646
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helpful hint: I normally put my persistence code in a separate persistence service javabean that I inject into the backing bean using Spring. It makes things easier to maintain, since I don't have 2 complex products interacting within the same bean.

I think your primary problem is this:


The value attribute of the dataTable tag should not be a method call, it should be a reference to an object that's either a JSF DataModel class or to an array or Collection that JSF can wrap within a DataModel class.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic