File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/tapestry Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,6 @@ public class ${pojo.shortName}Form {
52
52
@Persist
53
53
private ${pojo.shortName} ${pojoNameLower} ;
54
54
55
- <#-- public ${pojo.shortName} get${pojo.shortName}() {-->
56
- <#-- return ${pojoNameLower};-->
57
- <#-- }-->
58
-
59
55
/**
60
56
* Allows setting ${pojoNameLower} object from another class (i.e. ${pojo.shortName} List)
61
57
*
@@ -93,21 +89,12 @@ public class ${pojo.shortName}Form {
93
89
else {
94
90
throw new IllegalStateException("Invalid Request");
95
91
}
96
-
97
92
}
98
93
99
- <#-- void onActivate(${identifierType} ${pojo.identifierProperty.name}) {-->
100
- <#-- if (${pojo.identifierProperty.name} != null) {-->
101
- <#-- ${pojoNameLower} = ${pojoNameLower}Manager.get(${pojo.identifierProperty.name});-->
102
- <#-- }-->
103
- <#-- }-->
104
-
105
94
Long onPassivate() {
106
- return ${pojoNameLower} != null ? ${pojoNameLower} .getId() : null;
95
+ return ${pojoNameLower} != null ? ${pojoNameLower} .getId() : null;
107
96
}
108
97
109
-
110
-
111
98
void onPrepare() {
112
99
if (${pojoNameLower} == null) {
113
100
${pojoNameLower} = new ${pojo.shortName} ();
@@ -116,7 +103,6 @@ public class ${pojo.shortName}Form {
116
103
117
104
Object onException(Throwable cause) {
118
105
log.error("Exception: " + cause.getMessage());
119
-
120
106
return this;
121
107
}
122
108
You can’t perform that action at this time.
0 commit comments