[seam-commits] Seam SVN: r9834 - in trunk/examples/itext: view and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Dec 23 14:46:53 EST 2008


Author: norman.richards at jboss.com
Date: 2008-12-23 14:46:52 -0500 (Tue, 23 Dec 2008)
New Revision: 9834

Modified:
   trunk/examples/itext/src/org/jboss/seam/example/pdf/FillInForms.java
   trunk/examples/itext/view/form.xhtml
Log:
JBSEAM-3808

Modified: trunk/examples/itext/src/org/jboss/seam/example/pdf/FillInForms.java
===================================================================
--- trunk/examples/itext/src/org/jboss/seam/example/pdf/FillInForms.java	2008-12-23 19:46:35 UTC (rev 9833)
+++ trunk/examples/itext/src/org/jboss/seam/example/pdf/FillInForms.java	2008-12-23 19:46:52 UTC (rev 9834)
@@ -11,134 +11,133 @@
 import org.jboss.seam.annotations.Scope;
 
 @Name("fillInForms")
- at Scope(ScopeType.SESSION)
+ at Scope(ScopeType.CONVERSATION)
 public class FillInForms {
-	private String name;
-	private String address;
-	private String postalCode;
-	private String email;
-	private String[] programming;
-	private String language;
-	private String preferred;
-	private List<String> knowledge;
-	private List<SelectItem> programmingLanguages;
-	private List<SelectItem> languages;
-	
-	
-	public List<String> getKnowledge() {
-		return knowledge;
-	}
+    private String name;
+    private String address;
+    private String postalCode;
+    private String email;
+    private String[] programming;
+    private String language;
+    private String preferred;
+    private List<String> knowledge;
+    private List<SelectItem> programmingLanguages;
+    private List<SelectItem> languages;
+    
+    
+    public List<String> getKnowledge() {
+	return knowledge;
+    }
+    
+    public void setKnowledge(List<String> knowledge) {
+	this.knowledge = knowledge;
+    }
+    
+    
+    public List<SelectItem> getLanguages() {
+	return languages;
+    }
+    
+    public void setLanguages(List<SelectItem> languages) {
+	this.languages = languages;
+    }
+    
+    public List<SelectItem> getProgrammingLanguages() {
+	return programmingLanguages;
+    }
+    
+    public void setProgrammingLanguages(List<SelectItem> programmingLanguages) {
+	this.programmingLanguages = programmingLanguages;
+    }
+    
+    @Create
+    public void init() {
+	knowledge = new ArrayList<String>();
+	programmingLanguages = new ArrayList<SelectItem>();
+	programmingLanguages.add(new SelectItem("JAVA", "Java"));
+	programmingLanguages.add(new SelectItem("C", "C/C++"));
+	programmingLanguages.add(new SelectItem("CS", "C#"));
+	programmingLanguages.add(new SelectItem("VB", "VB"));
+	languages = new ArrayList<SelectItem>();
+	languages.add(new SelectItem("EN", "English"));
+	languages.add(new SelectItem("FR", "French"));
+	languages.add(new SelectItem("NL", "Dutch"));
+	knowledge.add("FR");
+	language = "FR";
+	preferred = "FR";
+    }
+    
+    public String getName() {
+	return name;
+    }
+    
+    public void setName(String name) {
+	this.name = name;
+    }
+    
+    public String getAddress() {
+	return address;
+    }
+    
+    public void setAddress(String address) {
+	this.address = address;
+    }
+    
+    public String getPostalCode() {
+	return postalCode;
+    }
+    
+    public void setPostalCode(String postalCode) {
+	this.postalCode = postalCode;
+    }
+    
+    public String getEmail() {
+	return email;
+    }
+    
+    public void setEmail(String email) {
+	this.email = email;
+    }
+    
+    public String[] getProgramming() {
+	return programming;
+    }
 
-	public void setKnowledge(List<String> knowledge) {
-		this.knowledge = knowledge;
-	}
-
-
-	public List<SelectItem> getLanguages() {
-		return languages;
-	}
-
-	public void setLanguages(List<SelectItem> languages) {
-		this.languages = languages;
-	}
-
-	public List<SelectItem> getProgrammingLanguages() {
-		return programmingLanguages;
-	}
-
-	public void setProgrammingLanguages(List<SelectItem> programmingLanguages) {
-		this.programmingLanguages = programmingLanguages;
-	}
-
-	@Create
-	public void init() {
-		knowledge = new ArrayList<String>();
-		programmingLanguages = new ArrayList<SelectItem>();
-		programmingLanguages.add(new SelectItem("JAVA", "Java"));
-		programmingLanguages.add(new SelectItem("C", "C/C++"));
-		programmingLanguages.add(new SelectItem("CS", "C#"));
-		programmingLanguages.add(new SelectItem("VB", "VB"));
-		languages = new ArrayList<SelectItem>();
-		languages.add(new SelectItem("EN", "English"));
-		languages.add(new SelectItem("FR", "French"));
-		languages.add(new SelectItem("NL", "Dutch"));
-        knowledge.add("FR");
-        language = "FR";
-        preferred = "FR";
-	}
-	
-	public String getName() {
-		return name;
-	}
-
-	public void setName(String name) {
-		this.name = name;
-	}
-
-	public String getAddress() {
-		return address;
-	}
-
-	public void setAddress(String address) {
-		this.address = address;
-	}
-
-	public String getPostalCode() {
-		return postalCode;
-	}
-
-	public void setPostalCode(String postalCode) {
-		this.postalCode = postalCode;
-	}
-
-	public String getEmail() {
-		return email;
-	}
-
-	public void setEmail(String email) {
-		this.email = email;
-	}
-
-	public String[] getProgramming() {
-		return programming;
-	}
-
-	public void setProgramming(String[] programming) {
-		this.programming = programming;
-	}
-
-	public String getLanguage() {
-		return language;
-	}
-
-	public void setLanguage(String language) {
-		this.language = language;
-	}
-
-	public String getPreferred() {
-		return preferred;
-	}
-
-	public void setPreferred(String preferred) {
-		this.preferred = preferred;
-	}
-	
-	public String submit() {
-		return "/form.xhtml";
-	}
-	
-	public boolean isKnowsEnglish() {
-	   boolean knows = knowledge.contains("EN");
-	   System.out.println("Retuning " + knows);
-	   return knows;
-	}
-	
-	public boolean isKnowsFrench() {
-	   return knowledge.contains("FR");
-	}
-
-	public boolean isKnowsDutch() {
-	   return knowledge.contains("NL");
-	}
-
+    public void setProgramming(String[] programming) {
+	this.programming = programming;
+    }
+    
+    public String getLanguage() {
+	return language;
+    }
+    
+    public void setLanguage(String language) {
+	this.language = language;
+    }
+    
+    public String getPreferred() {
+	return preferred;
+    }
+    
+    public void setPreferred(String preferred) {
+	this.preferred = preferred;
+    }
+    
+    public String submit() {
+	return "/form.xhtml";
+    }
+    
+    public boolean isKnowsEnglish() {
+	boolean knows = knowledge.contains("EN");
+	return knows;
+    }
+    
+    public boolean isKnowsFrench() {
+	return knowledge.contains("FR");
+    }
+    
+    public boolean isKnowsDutch() {
+	return knowledge.contains("NL");
+    }
+    
 }

Modified: trunk/examples/itext/view/form.xhtml
===================================================================
--- trunk/examples/itext/view/form.xhtml	2008-12-23 19:46:35 UTC (rev 9833)
+++ trunk/examples/itext/view/form.xhtml	2008-12-23 19:46:52 UTC (rev 9834)
@@ -1,6 +1,6 @@
 <p:form
 	xmlns:p="http://jboss.com/products/seam/pdf"
-	URL="form.pdf">
+	URL="/form.pdf">
 	<p:field name="person.name" value="#{fillInForms.name}"/>
 	<p:field name="person.address" value="#{fillInForms.address}"/>
 	<p:field name="person.postal_code" value="#{fillInForms.postalCode}"/>




More information about the seam-commits mailing list