You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2006/06/22 15:05:28 UTC
svn commit: r416359 - in /myfaces/tomahawk/trunk/sandbox:
core/src/main/resources-facesconfig/META-INF/
examples/src/main/java/org/apache/myfaces/examples/
examples/src/main/webapp/redirectTracker/
Author: imario
Date: Thu Jun 22 06:05:28 2006
New Revision: 416359
URL: http://svn.apache.org/viewvc?rev=416359&view=rev
Log:
RedirectTracker: now also captures request scoped beans
Modified:
myfaces/tomahawk/trunk/sandbox/core/src/main/resources-facesconfig/META-INF/faces-config.xml
myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/RequestTrackerRedirectBean.java
myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/redirectTracker/home.jsp
myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/redirectTracker/requestTrackerRedirect.jsp
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources-facesconfig/META-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources-facesconfig/META-INF/faces-config.xml?rev=416359&r1=416358&r2=416359&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources-facesconfig/META-INF/faces-config.xml (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources-facesconfig/META-INF/faces-config.xml Thu Jun 22 06:05:28 2006
@@ -405,6 +405,10 @@
<faces-context-factory>org.apache.myfaces.custom.redirectTracker.RedirectTrackerFacesContextFactory</faces-context-factory>
</factory>
+ <application>
+ <variable-resolver>org.apache.myfaces.custom.redirectTracker.RedirectTrackerVariableResolver</variable-resolver>
+ </application>
+
<!--custom validators -->
<validator>
<validator-id>org.apache.myfaces.validator.Url</validator-id>
Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/RequestTrackerRedirectBean.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/RequestTrackerRedirectBean.java?rev=416359&r1=416358&r2=416359&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/RequestTrackerRedirectBean.java (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/RequestTrackerRedirectBean.java Thu Jun 22 06:05:28 2006
@@ -20,11 +20,23 @@
public class RequestTrackerRedirectBean
{
+ private String input;
+
+ public String getInput()
+ {
+ return input;
+ }
+
+ public void setInput(String input)
+ {
+ this.input = input;
+ }
+
public String redirectAction()
{
FacesContext.getCurrentInstance().addMessage(null,
new FacesMessage(FacesMessage.SEVERITY_INFO, "requestTrackerRedirect message", "this is the message from the previous http request"));
-
+
return "requestTrackerRedirect";
}
}
Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/redirectTracker/home.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/redirectTracker/home.jsp?rev=416359&r1=416358&r2=416359&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/redirectTracker/home.jsp (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/redirectTracker/home.jsp Thu Jun 22 06:05:28 2006
@@ -10,10 +10,16 @@
<f:view>
<h:form>
- Press the button to issue a redirect navigation request and see how the messages will survive.
+ <h:panelGrid columns="1" >
+ <h:outputText value="Please enter something - this will be put into the REQUEST bean" />
+
+ <h:inputText value="#{requestTrackerRedirectBean.input}" />
+
+ <h:outputText value="Press the button to issue a redirect navigation request and see how the messages and the data will survive." />
+
+ <h:commandButton value="Press Me" action="#{requestTrackerRedirectBean.redirectAction}" />
+ </h:panelGrid>
- <h:commandButton value="Press Me" action="#{requestTrackerRedirectBean.redirectAction}" />
-
</h:form>
</f:view>
</body>
Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/redirectTracker/requestTrackerRedirect.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/redirectTracker/requestTrackerRedirect.jsp?rev=416359&r1=416358&r2=416359&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/redirectTracker/requestTrackerRedirect.jsp (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/redirectTracker/requestTrackerRedirect.jsp Thu Jun 22 06:05:28 2006
@@ -9,7 +9,15 @@
<body>
<f:view>
- Damn cool, isnt it?
+ <h:panelGrid columns="1">
+
+ <h:outputText value="Your input:" />
+
+ <h:outputText value="#{requestTrackerRedirectBean.input}" />
+
+ <h:outputText value="Damn cool, isnt it?" />
+
+ </h:panelGrid>
<f:verbatim><hr /></f:verbatim>