Author: mvitenkov
Date: 2008-12-09 13:12:45 -0500 (Tue, 09 Dec 2008)
New Revision: 11674
Modified:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/queue/QueueComponent.java
Log:
Modified:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/queue/QueueComponent.java
===================================================================
---
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/queue/QueueComponent.java 2008-12-09
17:29:40 UTC (rev 11673)
+++
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/queue/QueueComponent.java 2008-12-09
18:12:45 UTC (rev 11674)
@@ -3,14 +3,15 @@
import java.util.ArrayList;
import java.util.Date;
+import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
+import org.jboss.seam.annotations.Synchronized;
@Name("queueComponent")
-(a)Scope(ScopeType.SESSION)
public class QueueComponent {
private String inputValue;
private String inputQueue;
@@ -29,6 +30,15 @@
private String suggestionValue;
private String suggestionQueue;
+ public void sleepThread(ActionEvent event){
+ try {
+ Thread.sleep(5000);
+ } catch (InterruptedException e) {
+ System.out.println("Sleeping for 5 sec failed");
+ e.printStackTrace();
+ }
+ }
+
public String getSuggestionValue() {
return suggestionValue;
}
Show replies by date