This content has been marked as final.
Show 5 replies
-
1. Re: Remove variable from page context via Contexts.removeFro
jbuechel Oct 15, 2007 3:55 PM (in response to jbuechel)I still didn't figure it out.
So i do it using a redirect to the same view id depending on the called action:<navigation from-action="#{personAction.deletePerson}"> <redirect view-id="/modules/manageCatalogs/persons/main.xhtml" /> </navigation>
-
2. Re: Remove variable from page context via Contexts.removeFro
pmuir Oct 23, 2007 7:18 AM (in response to jbuechel)The page context is split over both the previous and the next request when you are in the INVOKE APPLICATION phase. You read from the previous page context and write (i.e. remove) from the next page context. So the above is totally expected.
-
3. Re: Remove variable from page context via Contexts.removeFro
jbuechel Oct 23, 2007 9:24 AM (in response to jbuechel)Thanks for explanation, Pete.
It seems i'm quite not understanding it completely yet..
Does that mean, during the next request it won't be present anymore? -
4. Re: Remove variable from page context via Contexts.removeFro
pmuir Oct 23, 2007 9:54 AM (in response to jbuechel)Yes.
-
5. Re: Remove variable from page context via Contexts.removeFro
pmuir Oct 23, 2007 9:55 AM (in response to jbuechel)n.b.
pageContext.set("foo", "bar"); assert !pageContext.contains("foo");
passes when you are in the INVOKE APPLICATION phase.