java - JSF 2 - Where does a @ViewScoped bean live between requests? -
java - JSF 2 - Where does a @ViewScoped bean live between requests? -
i'm trying improve understand low-level workings of @viewscoped bean in jsf 2. server maintain view-scoped bean between requests? i've noticed view-scoped beans need implement serializable, must serialized location.
can explain or provide link documentation explains it?
i'm asking question because may have introduced scope-related defect webapp. understanding how @viewscoped works help me rule out of potential causes.
@viewscoped beans stored in viewmap of uiviewroot:
uiviewroot uicomponent represents root of uicomponent tree. component renders markup response ajax requests. serves root of component tree...
in fact, can access viewmap yourself, , stuff values in there using:
facescontext.getviewroot().getviewmap()... for more information, see jsf api doc: http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/component/uiviewroot.html
java serialization jsf-2 scope managed-bean
Comments
Post a Comment