Author: alexsmirnov
Date: 2008-04-30 21:11:18 -0400 (Wed, 30 Apr 2008)
New Revision: 8393
Removed:
branches/3.1.x/extensions/portlet/
branches/3.1.x/extensions/portletbridge/
branches/3.1.x/samples/ajaxPortlet/
branches/3.1.x/samples/seamPortletEar/
Modified:
branches/3.1.x/extensions/pom.xml
branches/3.1.x/samples/pom.xml
branches/3.1.x/samples/useCases/src/main/java/org/ajax4jsf/Bean.java
branches/3.1.x/samples/useCases/src/main/resources/logging.properties
branches/3.1.x/samples/useCases/src/main/webapp/index.jsp
branches/3.1.x/samples/useCases/src/main/webapp/pages/repeater.jsp
Log:
remove obsolette portlet modules
Modified: branches/3.1.x/extensions/pom.xml
===================================================================
--- branches/3.1.x/extensions/pom.xml 2008-04-30 22:35:05 UTC (rev 8392)
+++ branches/3.1.x/extensions/pom.xml 2008-05-01 01:11:18 UTC (rev 8393)
@@ -11,6 +11,5 @@
<name>Richfaces extensions for a different environments</name>
<packaging>pom</packaging>
<modules>
- <module>portletbridge</module>
</modules>
</project>
\ No newline at end of file
Modified: branches/3.1.x/samples/pom.xml
===================================================================
--- branches/3.1.x/samples/pom.xml 2008-04-30 22:35:05 UTC (rev 8392)
+++ branches/3.1.x/samples/pom.xml 2008-05-01 01:11:18 UTC (rev 8393)
@@ -427,8 +427,6 @@
<module>orderingListDemo</module>
<module>listShuttleDemo</module>
<module>contextMenuDemo</module>
- <module>ajaxPortlet</module>
- <module>seamPortletEar</module>
<module>panelmenu-sample</module>
<module>rich-message-demo</module>
<!--
Modified: branches/3.1.x/samples/useCases/src/main/java/org/ajax4jsf/Bean.java
===================================================================
--- branches/3.1.x/samples/useCases/src/main/java/org/ajax4jsf/Bean.java 2008-04-30
22:35:05 UTC (rev 8392)
+++ branches/3.1.x/samples/useCases/src/main/java/org/ajax4jsf/Bean.java 2008-05-01
01:11:18 UTC (rev 8393)
@@ -29,6 +29,7 @@
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
/**
* @author $Autor$
@@ -150,4 +151,14 @@
System.out.println("onChange2");
}
+
+ public String clearSession(){
+ ExternalContext externalContext =
FacesContext.getCurrentInstance().getExternalContext();
+ HttpSession session = (HttpSession) externalContext.getSession(false);
+ if(null != session){
+ session.setMaxInactiveInterval(2);
+ }
+ return null;
+ }
+
}
\ No newline at end of file
Modified: branches/3.1.x/samples/useCases/src/main/resources/logging.properties
===================================================================
--- branches/3.1.x/samples/useCases/src/main/resources/logging.properties 2008-04-30
22:35:05 UTC (rev 8392)
+++ branches/3.1.x/samples/useCases/src/main/resources/logging.properties 2008-05-01
01:11:18 UTC (rev 8393)
@@ -18,4 +18,4 @@
org.ajax4jsf.level=ALL
javax.enterprise.resource.webcontainer.jsf.level=INFO
com.exadel.level=ALL
-
\ No newline at end of file
+org.apache.commons.digester.level=INFO
\ No newline at end of file
Modified: branches/3.1.x/samples/useCases/src/main/webapp/index.jsp
===================================================================
--- branches/3.1.x/samples/useCases/src/main/webapp/index.jsp 2008-04-30 22:35:05 UTC (rev
8392)
+++ branches/3.1.x/samples/useCases/src/main/webapp/index.jsp 2008-05-01 01:11:18 UTC (rev
8393)
@@ -5,7 +5,7 @@
<head></head>
<body>
- <jsp:forward page="/faces/pages/index.jsf" />
+ <jsp:forward page="/faces/pages/index.jsp" />
</body>
</html>
\ No newline at end of file
Modified: branches/3.1.x/samples/useCases/src/main/webapp/pages/repeater.jsp
===================================================================
--- branches/3.1.x/samples/useCases/src/main/webapp/pages/repeater.jsp 2008-04-30 22:35:05
UTC (rev 8392)
+++ branches/3.1.x/samples/useCases/src/main/webapp/pages/repeater.jsp 2008-05-01 01:11:18
UTC (rev 8393)
@@ -1,20 +1,26 @@
<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
-<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
-
-
-<html>
-<head>
-<title>AJAX TEST</title>
-</head>
-<body>
-<f:view>
- <h:form>
- <h:inputText value="#{bean.text}">
- <a4j:support event="onkeyup" reRender="repeater"/>
- </h:inputText>
- <h:outputText id="repeater" value="#{bean.text}" />
- </h:form>
-</f:view>
-</body>
-</html>
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+
+<html>
+<head>
+<title>AJAX TEST</title>
+</head>
+<body>
+<f:view>
+ <h:form>
+ <h:panelGrid columns="3">
+ <h:inputText value="#{bean.text}">
+ <a4j:support event="onkeyup" reRender="repeater" />
+ </h:inputText>
+ <h:outputText id="repeater" value="#{bean.text}" />
+ <h:messages></h:messages>
+ <a4j:commandButton action="#{bean.notExist}" value="Generate
error" />
+ <a4j:commandButton action="#{bean.clearSession}"
+ value="Clear a session" />
+ </h:panelGrid>
+ </h:form>
+</f:view>
+</body>
+</html>