• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there any way to use ViewScoped with weld

 
Allan Zhang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I found that there is not any annotation like JSF2.0 annotation "@ViewScoped" in JSR299 or Weld,weld documentation told me to implement a custom scope to do this.But I cant't find any example for this.

Some one said that I must wait for seam 3.0.

Is that true?
 
Steven Verborgh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a small howto on how to port the jsf 2 ViewScoped annotation to weld using a custom Context and scope annotation, maybe it might help you.
 
Allan Zhang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much. I'll try it~~
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!