Re: DynaView Error & Loop

Splash Forums PrettyFaces Users DynaView Error & Loop Re: DynaView Error & Loop

#21706

So the difference is that in the latter case of <view-id>#{bean.getPath}</view-id>, PrettyFaces actually does something different.

*Here is the flow:*

GET /new-homes/state/city/find/communities/4

FORWARD /com.ocpsoft.DynaView.jsf (or whatever your faces mapping is)

– Before RESTORE_VIEW (set a ViewRoot manually, then call facesContext.responseComplete())

– After RESTORE_VIEW

— Invoke #{bean.getPath} and Calculate new ViewID

— FORWARD to new ViewID “/faces/pages/community.jspx”

You can see the full Dynaview mechanism here: https://github.com/ocpsoft/prettyfaces/blob/master/core/src/main/java/com/ocpsoft/pretty/faces/event/PrettyPhaseListener.java