[jboss-cvs] jboss-seam/seam-gen/src ...
Gavin King
gavin.king at jboss.com
Fri Oct 26 05:00:32 EDT 2007
User: gavin
Date: 07/10/26 05:00:32
Added: seam-gen/src ConversationJavaBean.java
Log:
make new-conversation work for war deployments
fix conversation page
Revision Changes Path
1.1 date: 2007/10/26 09:00:32; author: gavin; state: Exp;jboss-seam/seam-gen/src/ConversationJavaBean.java
Index: ConversationJavaBean.java
===================================================================
package @actionPackage@;
import static org.jboss.seam.ScopeType.CONVERSATION;
import javax.ejb.Remove;
import javax.ejb.Stateful;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.End;
import org.jboss.seam.annotations.Destroy;
import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.log.Log;
@Scope(CONVERSATION)
@Name("@componentName@")
public class @beanName@ {
@Logger private Log log;
private int value;
@Begin
public String begin()
{
//implement your begin conversation business logic
log.info("beginning conversation");
return "success";
}
public String increment()
{
log.info("incrementing");
value++;
return "success";
}
//add additional action methods that participate in this conversation
@End
public String end()
{
//implement your end conversation business logic
log.info("ending conversation");
return "home";
}
public int getValue()
{
return value;
}
}
More information about the jboss-cvs-commits
mailing list