[jboss-cvs] jboss-seam/seam-gen/src ...
Gavin King
gavin.king at jboss.com
Sat Mar 10 15:31:25 EST 2007
User: gavin
Date: 07/03/10 15:31:25
Modified: seam-gen/src Action.java ActionBean.java
ActionJavaBean.java FormAction.java
FormActionBean.java FormActionJavaBean.java
Log:
void return type
Revision Changes Path
1.2 +1 -1 jboss-seam/seam-gen/src/Action.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Action.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/src/Action.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Action.java 6 Nov 2006 20:13:47 -0000 1.1
+++ Action.java 10 Mar 2007 20:31:25 -0000 1.2
@@ -6,7 +6,7 @@
public interface @interfaceName@ {
//seam-gen method
- public String @methodName@();
+ public void @methodName@();
//add additional interface methods here
}
\ No newline at end of file
1.4 +2 -5 jboss-seam/seam-gen/src/ActionBean.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ActionBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/src/ActionBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ActionBean.java 30 Jan 2007 05:56:43 -0000 1.3
+++ ActionBean.java 10 Mar 2007 20:31:25 -0000 1.4
@@ -13,16 +13,13 @@
@Logger private Log log;
- @In
- FacesMessages facesMessages;
+ @In FacesMessages facesMessages;
- //seam-gen method
- public String @methodName@()
+ public void @methodName@()
{
//implement your business logic here
log.info("@componentName at .@methodName@() action called");
facesMessages.add("@methodName@");
- return "success";
}
//add additional action methods
1.2 +2 -5 jboss-seam/seam-gen/src/ActionJavaBean.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ActionJavaBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/src/ActionJavaBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ActionJavaBean.java 30 Jan 2007 05:56:43 -0000 1.1
+++ ActionJavaBean.java 10 Mar 2007 20:31:25 -0000 1.2
@@ -11,16 +11,13 @@
@Logger private Log log;
- @In
- FacesMessages facesMessages;
+ @In FacesMessages facesMessages;
- //seam-gen method
- public String @methodName@()
+ public void @methodName@()
{
//implement your business logic here
log.info("@componentName at .@methodName@() action called");
facesMessages.add("@methodName@");
- return "success";
}
//add additional action methods
1.2 +1 -1 jboss-seam/seam-gen/src/FormAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FormAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/src/FormAction.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- FormAction.java 6 Nov 2006 20:13:47 -0000 1.1
+++ FormAction.java 10 Mar 2007 20:31:25 -0000 1.2
@@ -6,7 +6,7 @@
public interface @interfaceName@ {
//seam-gen methods
- public String @methodName@();
+ public void @methodName@();
public String getValue();
public void setValue(String value);
public void destroy();
1.4 +22 -24 jboss-seam/seam-gen/src/FormActionBean.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FormActionBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/src/FormActionBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- FormActionBean.java 14 Dec 2006 10:40:33 -0000 1.3
+++ FormActionBean.java 10 Mar 2007 20:31:25 -0000 1.4
@@ -16,18 +16,15 @@
@Logger private Log log;
- @In
- FacesMessages facesMessages;
+ @In FacesMessages facesMessages;
private String value;
- //seam-gen method
- public String @methodName@()
+ public void @methodName@()
{
//implement your business logic here
log.info("@componentName at .@methodName@() action called with: #{@componentName at .value}");
facesMessages.add("@methodName@ #{@componentName at .value}");
- return "success";
}
//add additional action methods
@@ -45,4 +42,5 @@
@Destroy @Remove
public void destroy() {}
+
}
1.2 +2 -4 jboss-seam/seam-gen/src/FormActionJavaBean.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FormActionJavaBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/src/FormActionJavaBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- FormActionJavaBean.java 30 Jan 2007 05:56:43 -0000 1.1
+++ FormActionJavaBean.java 10 Mar 2007 20:31:25 -0000 1.2
@@ -12,18 +12,16 @@
@Logger private Log log;
- @In
- FacesMessages facesMessages;
+ @In FacesMessages facesMessages;
private String value;
//seam-gen method
- public String @methodName@()
+ public void @methodName@()
{
//implement your business logic here
log.info("@componentName at .@methodName@() action called with: #{@componentName at .value}");
facesMessages.add("@methodName@ #{@componentName at .value}");
- return "success";
}
//add additional action methods
More information about the jboss-cvs-commits
mailing list