Updated Branches: refs/heads/master 50b4955b0 -> 17fdf0ef9
DELTASPIKE-503 added postback / outcome samples Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/17fdf0ef Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/17fdf0ef Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/17fdf0ef Branch: refs/heads/master Commit: 17fdf0ef9c3726196585d1ce4b6068749b22e8ee Parents: 50b4955 Author: tandraschko <[email protected]> Authored: Sun Feb 2 22:44:55 2014 +0100 Committer: tandraschko <[email protected]> Committed: Sun Feb 2 22:44:55 2014 +0100 ---------------------------------------------------------------------- .../windowhandling/clientwindow/test.xhtml | 21 ++++++++++++++++- .../webapp/views/windowhandling/lazy/test.xhtml | 24 ++++++++++++++++++-- .../windowhandling/lazy/testWithoutJS.xhtml | 24 ++++++++++++++++++-- 3 files changed, 64 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/deltaspike/blob/17fdf0ef/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/clientwindow/test.xhtml ---------------------------------------------------------------------- diff --git a/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/clientwindow/test.xhtml b/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/clientwindow/test.xhtml index e6aca24..a5be025 100644 --- a/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/clientwindow/test.xhtml +++ b/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/clientwindow/test.xhtml @@ -34,7 +34,26 @@ DS WindowId: #{dsWindowContext.currentWindowId} <br /> - <h:link value="Simple Link" outcome="test.xhtml" /> <br/> + <br /> + <h:link value="GET Link" outcome="test.xhtml" /> + <br /> + <br /> + <h:commandLink value="Postback"> + </h:commandLink> + <br /> + <br /> + <h:commandLink value="Postback with outcome" action="test.xhtml?faces-redirect=true"> + </h:commandLink> + <br /> + <br /> + <h:commandLink value="AJAX Postback"> + <f:ajax render="@form" execute="@this" /> + </h:commandLink> + <br /> + <br /> + <h:commandLink value="AJAX Postback with outcome" action="test.xhtml?faces-redirect=true"> + <f:ajax render="@form" execute="@this" /> + </h:commandLink> </h:form> </h:body> http://git-wip-us.apache.org/repos/asf/deltaspike/blob/17fdf0ef/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/lazy/test.xhtml ---------------------------------------------------------------------- diff --git a/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/lazy/test.xhtml b/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/lazy/test.xhtml index f6033e1..e6f1569 100644 --- a/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/lazy/test.xhtml +++ b/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/lazy/test.xhtml @@ -34,10 +34,30 @@ DS WindowId: #{dsWindowContext.currentWindowId} <br /> - <h:link value="Simple Link" outcome="test.xhtml" /> <br/> + <br /> + <h:link value="GET Link" outcome="test.xhtml" /> + <br /> + <br /> + <h:commandLink value="Postback"> + </h:commandLink> + <br /> + <br /> + <h:commandLink value="Postback with outcome" action="test.xhtml?faces-redirect=true"> + </h:commandLink> + <br /> + <br /> + <h:commandLink value="AJAX Postback"> + <f:ajax render="@form" execute="@this" /> + </h:commandLink> + <br /> + <br /> + <h:commandLink value="AJAX Postback with outcome" action="test.xhtml?faces-redirect=true"> + <f:ajax render="@form" execute="@this" /> + </h:commandLink> + <br /> <br /> <ds:disableClientWindow> - <h:link value="Simple Link with surrounded ds:disableClientWindow" outcome="test.xhtml" /> + <h:link value="Simple Link - surrounded by ds:disableClientWindow" outcome="test.xhtml" /> </ds:disableClientWindow> </h:form> http://git-wip-us.apache.org/repos/asf/deltaspike/blob/17fdf0ef/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/lazy/testWithoutJS.xhtml ---------------------------------------------------------------------- diff --git a/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/lazy/testWithoutJS.xhtml b/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/lazy/testWithoutJS.xhtml index f885439..7254b33 100644 --- a/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/lazy/testWithoutJS.xhtml +++ b/deltaspike/examples/jsf-playground/src/main/webapp/views/windowhandling/lazy/testWithoutJS.xhtml @@ -32,10 +32,30 @@ <h:form> DS WindowId: #{dsWindowContext.currentWindowId} <br /> - <h:link value="Simple Link" outcome="testWithoutJS.xhtml" /> <br/> + <br /> + <h:link value="GET Link" outcome="test.xhtml" /> + <br /> + <br /> + <h:commandLink value="Postback"> + </h:commandLink> + <br /> + <br /> + <h:commandLink value="Postback with outcome" action="test.xhtml?faces-redirect=true"> + </h:commandLink> + <br /> + <br /> + <h:commandLink value="AJAX Postback"> + <f:ajax render="@form" execute="@this" /> + </h:commandLink> + <br /> + <br /> + <h:commandLink value="AJAX Postback with outcome" action="test.xhtml?faces-redirect=true"> + <f:ajax render="@form" execute="@this" /> + </h:commandLink> + <br /> <br /> <ds:disableClientWindow> - <h:link value="Simple Link" outcome="testWithoutJS.xhtml" /> + <h:link value="Simple Link - surrounded by ds:disableClientWindow" outcome="test.xhtml" /> </ds:disableClientWindow> </h:form>
