aspose file tools
The moose likes JSF and the fly likes Is there any way to use ViewScoped with weld Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Is there any way to use ViewScoped with weld" Watch "Is there any way to use ViewScoped with weld" New topic
Author

Is there any way to use ViewScoped with weld

Allan Zhang
Greenhorn

Joined: Dec 23, 2009
Posts: 2
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

Joined: Jan 07, 2010
Posts: 1
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

Joined: Dec 23, 2009
Posts: 2
Thank you very much. I'll try it~~
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Is there any way to use ViewScoped with weld
 
Similar Threads
Problem with EJB lookup on JBoss 7.1
problem jsf2 in glassfish 3.1.1
@PreDestroy annotation
Weld 1.1.0-Final : Cannot inherit from final class
Value doesnt return when I use @Named annotation in JSF2 but @ManagedBean working fine.