[jboss-user] [JBoss Seam] - Re: Using non-EJB annotated POJO as backing bean
bdillon
do-not-reply at jboss.com
Thu Jul 5 11:54:27 EDT 2007
Hi,
Here is the code;
package com.bd.test;
import java.io.Serializable;
import org.jboss.seam.annotations.*;
import org.jboss.seam.ScopeType;
@Scope(ScopeType.SESSION)
@Name("FirstPageBB")
public class FirstPageBB implements Serializable {
@Out
private SecondPageParameters params;
private String name = "initValue";
public FirstPageBB() {
System.out.println(" Initialising FirstPageBB !");
}
public String getName() {
System.out.println(" FirstPageBB.getName() > "+name);
return name;
}
public void setName(String name) {
System.out.println(" FirstPageBB.setName("+name+")");
this.name = name;
}
//Action Button
public String submit() {
System.out.println(" FirstPageBB.submit() called ");
params = new SecondPageParameters();
params.setName(name);
return "NavigationScen1";
}
}
Thanks,
Brian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060896#4060896
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060896
More information about the jboss-user
mailing list