[ http://issues.apache.org/jira/browse/BEEHIVE-619?page=comments#action_64844 ] Carlin Rogers commented on BEEHIVE-619: ---------------------------------------
Right, the example I have also just has a textBox tag directly within the section tag, as you tried. The problem is still the order or the tag processing. The section in your tipsPage.jsp, <netui-template:section name="bodyPage"> ... </netui-template:section> is processed first. The rendered output from it is then used in the layout.jsp as it is processed. Since the textBox tag in the section is processed and rendered before the form tag in the layout.jsp, the ActionForm bean has not been created or set as an attribute of the PageContext. It is still null until the layout.jsp and the begin form tag get processed. It is the form tag that handles the initial creation of the ActionForm bean and setting it as an attribute on the page using the implicit object name "actionForm". > 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 > Attachments: j619test.zip > > 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