[ http://issues.apache.org/jira/browse/BEEHIVE-619?page=all ]
Carlin Rogers updated BEEHIVE-619:
----------------------------------
Assign To: Carlin Rogers
Fix Version: TBD
The actionForm is not available in the example due to the
order in which the tags are processed. The layout.jsp with
the form tag has not been processed at the time that
tips.jsp is included and processed within the section tag
of tipsPage.jsp. Therefor, the form tag has not yet created
the ActionForm bean and called setAttribute() for the
ImplicitObj name "actionForm" and the ActionForm bean.
I don't think that the NetUI templates where originally
designed with this use-case/scenario (template sections
with such fine grained fragments accessing the ActionForm)
in mind.
This is not something that can be fixed for 1.0 but I'll
leave it open and mark it as TBD.
I'll also try to note a work around in here.
> NetUI template and forms
> ------------------------
>
> Key: BEEHIVE-619
> URL: http://issues.apache.org/jira/browse/BEEHIVE-619
> Project: Beehive
> Type: Test
> Components: NetUI
> Versions: V1Beta
> Environment: Tomcat 5.0.28, WinXP
> Reporter: V.Gnanasegaran
> Assignee: Carlin Rogers
> Priority: Trivial
> Fix For: TBD
>
> Pleace lookinto my test code.
> layout.jsp
> <body>
> <netui:form action="goForward" tagId="htmlForm">
> <[EMAIL PROTECTED] file="head.jsp"%>
> <netui-template:includeSection
> name="bodyPage"></netui-template:includeSection>
> <[EMAIL PROTECTED] file="info.jsp"%>
> ${actionForm.aNote}
> <%-- The navigation buttons --%>
> <div id="rightKey"><netui:button value = " Next " type = "submit"
> action = "goForward"/></div>
> <div id="midKey"><netui:button value = " Submit " type = "submit"
> action = "goSubmit"/></div>
> <div id="leftKey"><netui:button value = " Previous " type =
> "submit" action = "goBack"/></div>
> </netui:form>
> </body>
> The layout is used in the following page.
> <netui-data:callMethod object="${pageFlow.currentPage}" method="getPageName"
> resultId="currentPagename"/>
> <c:choose>
> <c:when test="${pageScope.currentPagename == 'tips'}">
> <c:import url="/nae/nae011/tipsPage.jsp"/>
> </c:when>
> </c:choose>
> The tipsPage.jsp (I had to have a seperate file to do this operation.)
> <netui-template:template templatePage="layout.jsp">
> <netui-template:section name="bodyPage">
> <[EMAIL PROTECTED] file="/nae/nae011/tips.jsp"%>
> </netui-template:section>
> </netui-template:template>
> Finally the body page tips.jsp
> tips.jsp
> .....
> <netui:content value="${actionForm.nameLabel}" />
> <netui:textBox value="${actionForm.name}" />
> .....
> My question is why actionForm is NOT available in tips.jsp though I am
> binding the form in the layout.jsp
--
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