I have an @ApplicationScoped
bean which I create a bunch of instances of. I then use those instances to create a JSF page with the data contained in the instances. I want the user to be able to modify those data (for thier use only, not stored), but not have it affect the view for other users who share access to the same bean. I'm considering creating a @SessionScoped
version of the @ApplicationScoped
bean for each new session, but am not sure what the best way to go about it is. Should I:
Extend the
@ApplicationScoped
bean and give it@SessionScoped
, then in my constructor, grab all of the relvant data?Not create a
@SessionScoped
version, but rather create a "user" version for each piece of data that the user can modify in the@ApplicationScoped
bean?Other ideas?