Inheritance of actions and simple actions with the useFormBean annotation
attribute do not behave correctly.
------------------------------------------------------------------------------------------------------------
Key: BEEHIVE-1053
URL: http://issues.apache.org/jira/browse/BEEHIVE-1053
Project: Beehive
Type: Bug
Components: NetUI
Versions: 1.0.1
Reporter: Carlin Rogers
Assigned to: Carlin Rogers
Fix For: 1.0.1
Inheritance of actions and simple actions with the useFormBean annotation
attribute do not behave correctly. The derived class with the inherited action
has a form bean of the correct type but it is not the desired named member
variable for the "flow-scoped form bean".
To reproduce, create page flow with either an action or a simple action that
has the useFormBean attribute. Create a second page flow that just inherits
from the first. No need to override any actions. Then build and deploy the app
with these page flows. Go to derived page flow and a jsp that uses a form for
the action. The form will be displayed ocrrectly. However, if you submit the
form and go abother page that displays the form action with this bean it will
not have the values set in the submit. I.E. this form is not flow scoped.
Also, note the following exception/error...
Throwable: java.lang.NoSuchFieldException: _formOne
Stack Trace:
java.lang.NoSuchFieldException: _formOne
at java.lang.Class.getDeclaredField(Class.java:1854)
at
org.apache.beehive.netui.pageflow.FlowController.getFormBean(FlowController.java:1938)
at org.apache.beehive.netui.tags.html.Form.doStartTag(Form.java:634)
at
org.apache.jsp.pageFlowCore.inheritance.useFormBean.derivedSimpleActions.index_jsp._jspx_meth_netui_form_0(index_jsp.java:109)
at
org.apache.jsp.pageFlowCore.inheritance.useFormBean.derivedSimpleActions.index_jsp._jspService(index_jsp.java:76)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
...
This does not appear to be a recent regression. I verified the same behavior in
svn 349993 in late November.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira