You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "V.Gnanasegaran (JIRA)" <be...@incubator.apache.org> on 2005/05/09 11:30:10 UTC
[jira] Created: (BEEHIVE-619) NetUI template and forms
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
Priority: Trivial
Pleace lookinto my test code.
layout.jsp
<body>
<netui:form action="goForward" tagId="htmlForm">
<%@include file="head.jsp"%>
<netui-template:includeSection name="bodyPage"></netui-template:includeSection>
<%@include 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">
<%@include 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
[jira] Updated: (BEEHIVE-619) NetUI template and forms
Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
[ 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">
> <%@include file="head.jsp"%>
> <netui-template:includeSection name="bodyPage"></netui-template:includeSection>
> <%@include 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">
> <%@include 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
[jira] Updated: (BEEHIVE-619) NetUI template and forms
Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-619?page=all ]
Carlin Rogers updated BEEHIVE-619:
----------------------------------
Attachment: j619test.zip
This attachement is a simple test case to repro the issue.
> 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">
> <%@include file="head.jsp"%>
> <netui-template:includeSection name="bodyPage"></netui-template:includeSection>
> <%@include 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">
> <%@include 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
[jira] Commented: (BEEHIVE-619) NetUI template and forms
Posted by "V.Gnanasegaran (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-619?page=comments#action_64830 ]
V.Gnanasegaran commented on BEEHIVE-619:
----------------------------------------
As you stated in the example I copied all the code from tips and pasted in tipsPage.jsp
<netui-template:template templatePage="layout.jsp">
<netui-template:section name="bodyPage">
.....
<netui:content value="{actionForm.nameLabel}" />
<netui:textBox value="{actionForm.name}" />
.....
</netui-template:section>
</netui-template:template>
Still the actionForm is NOT available in the above code at runtime. Have you any idea what it could be.
> 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">
> <%@include file="head.jsp"%>
> <netui-template:includeSection name="bodyPage"></netui-template:includeSection>
> <%@include 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">
> <%@include 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
[jira] Commented: (BEEHIVE-619) NetUI template and forms
Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
[ 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">
> <%@include file="head.jsp"%>
> <netui-template:includeSection name="bodyPage"></netui-template:includeSection>
> <%@include 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">
> <%@include 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
[jira] Updated: (BEEHIVE-619) NetUI template and forms
Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-619?page=all ]
Carlin Rogers updated BEEHIVE-619:
----------------------------------
Version: V1
(was: V1Beta)
> NetUI template and forms
> ------------------------
>
> Key: BEEHIVE-619
> URL: http://issues.apache.org/jira/browse/BEEHIVE-619
> Project: Beehive
> Type: Test
> Components: NetUI
> Versions: V1
> 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">
> <%@include file="head.jsp"%>
> <netui-template:includeSection name="bodyPage"></netui-template:includeSection>
> <%@include 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">
> <%@include 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
[jira] Commented: (BEEHIVE-619) NetUI template and forms
Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-619?page=comments#action_64953 ]
Carlin Rogers commented on BEEHIVE-619:
---------------------------------------
To add some additional detail, part of the issue here
is the inability to navigate the tag hierarchy for the
form for this example.
To work around this in your example, rather than
use the netui-template, just directly call the include,
<%@include file="/nae/nae011/tips.jsp"%>
from your layout.jsp.
> NetUI template and forms
> ------------------------
>
> Key: BEEHIVE-619
> URL: http://issues.apache.org/jira/browse/BEEHIVE-619
> Project: Beehive
> Type: Test
> Components: NetUI
> Versions: V1
> 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">
> <%@include file="head.jsp"%>
> <netui-template:includeSection name="bodyPage"></netui-template:includeSection>
> <%@include 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">
> <%@include 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