openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r917037 - in /openwebbeans/trunk/samples/jsf2sample/src/main: java/org/apache/webbeans/jsf2/ConversationBean.java java/org/apache/webbeans/jsf2/ConversationData.java webapp/conversation.xhtml
Date Sat, 27 Feb 2010 20:40:32 GMT
Author: gerdogdu
Date: Sat Feb 27 20:40:32 2010
New Revision: 917037

URL: http://svn.apache.org/viewvc?rev=917037&view=rev
Log:
commit for running sample successfully

Modified:
    openwebbeans/trunk/samples/jsf2sample/src/main/java/org/apache/webbeans/jsf2/ConversationBean.java
    openwebbeans/trunk/samples/jsf2sample/src/main/java/org/apache/webbeans/jsf2/ConversationData.java
    openwebbeans/trunk/samples/jsf2sample/src/main/webapp/conversation.xhtml

Modified: openwebbeans/trunk/samples/jsf2sample/src/main/java/org/apache/webbeans/jsf2/ConversationBean.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/samples/jsf2sample/src/main/java/org/apache/webbeans/jsf2/ConversationBean.java?rev=917037&r1=917036&r2=917037&view=diff
==============================================================================
--- openwebbeans/trunk/samples/jsf2sample/src/main/java/org/apache/webbeans/jsf2/ConversationBean.java
(original)
+++ openwebbeans/trunk/samples/jsf2sample/src/main/java/org/apache/webbeans/jsf2/ConversationBean.java
Sat Feb 27 20:40:32 2010
@@ -106,6 +106,10 @@
         this.current = current;
     }
     
+    public String conversationLive()
+    {
+    	return null;
+    }
     
 
 }

Modified: openwebbeans/trunk/samples/jsf2sample/src/main/java/org/apache/webbeans/jsf2/ConversationData.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/samples/jsf2sample/src/main/java/org/apache/webbeans/jsf2/ConversationData.java?rev=917037&r1=917036&r2=917037&view=diff
==============================================================================
--- openwebbeans/trunk/samples/jsf2sample/src/main/java/org/apache/webbeans/jsf2/ConversationData.java
(original)
+++ openwebbeans/trunk/samples/jsf2sample/src/main/java/org/apache/webbeans/jsf2/ConversationData.java
Sat Feb 27 20:40:32 2010
@@ -17,7 +17,6 @@
 
 import javax.enterprise.context.ConversationScoped;
 import javax.enterprise.inject.Produces;
-import javax.inject.Inject;
 import javax.inject.Named;
 
 @ConversationScoped
@@ -25,12 +24,10 @@
 {
     private static final long serialVersionUID = 1L;
     
-    private int i = 0;
+    private int i = 10;
     
-    @Inject
     public ConversationData()
     {
-        i = 10;
     }
     
     @Produces @Named("mynumber")

Modified: openwebbeans/trunk/samples/jsf2sample/src/main/webapp/conversation.xhtml
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/samples/jsf2sample/src/main/webapp/conversation.xhtml?rev=917037&r1=917036&r2=917037&view=diff
==============================================================================
--- openwebbeans/trunk/samples/jsf2sample/src/main/webapp/conversation.xhtml (original)
+++ openwebbeans/trunk/samples/jsf2sample/src/main/webapp/conversation.xhtml Sat Feb 27 20:40:32
2010
@@ -49,16 +49,13 @@
 		</div>		
 			
 		<div style="margin-top: 10px;">
-			<h:commandButton id="button1" value="Start Conversation" actionListener="#{conversationBean.startConversation}"
-			    onclick="jsf.ajax.request(this,event, {execute:'form:button1',render:'form:message
form:status'});return false;">
+			<h:commandButton id="button1" value="Start Conversation" action="#{conversationBean.startConversation}">
 			</h:commandButton>
 			
-			<h:commandButton id="button2" value="End Conversation" actionListener="#{conversationBean.stopConversation}"
-			    onclick="jsf.ajax.request(this,event, {execute:'form:button2',render:'form:message
form:status'});return false;">
+			<h:commandButton id="button2" value="End Conversation" action="#{conversationBean.stopConversation}">
 			</h:commandButton>
 			
-			<h:commandButton id="button3" value="Show Number"
-			    onclick="jsf.ajax.request(this,event, {execute:'form:button3',render:'form:status'});return
false;">
+			<h:commandButton id="button3" value="Show Number" action="#{conversationBean.conversationLive}">
 			</h:commandButton>							
 		</div>
 				



Mime
View raw message