Author
Wanting to Displaying Empty Data on Initial Search Page
Greg Louvrea
Greenhorn
Joined: Aug 19, 2008
Posts: 4
posted Aug 19, 2008 18:28:00
0
I have a UI that displays a search form. The application is written using struts , adf and JDeveloper10.1.2 but is being migrated to 10.1.3.1. One column on the form is the labels and the other consists of text boxes. The form basically represents a row in a DB table that is defined in a UIModel.xml file. When I bring up the form, I always get all the text boxes prefilled out with data coming from the first row of the DB table. Does anyone know how to prevent this from happening? I basically want the form's text boxes to be empty when the user initially displays this form. Here are some definitions from struts-config.xml: <form-bean name="DataForm" type="oracle.adf.controller.v2.struts.forms.BindingContainerActionForm"/> <action path="/findAliasAction" className="oracle.adf.controller.v2.struts.actions.DataActionMapping" type="oracle.adf.controller.v2.struts.actions.DataAction" name="DataForm"> <set-property property="v1ActionClass" value="gov.llnl.oln.util.view.OlnDataForwardAction"/> <forward name="success" path="/findAlias.do"/> </action> <action path="/findAlias" className="oracle.adf.controller.v2.struts.actions.DataActionMapping" type="oracle.adf.controller.v2.struts.actions.DataForwardAction" name="DataForm" parameter="/findAlias.jsp"> <forward name="Execute" path="/aliasResultsAction.do"/> </action> Here is a snippet from findAlias.jsp: <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ page contentType="text/html;charset=windows-1252"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Find Alias</title> </head> <body> <html:errors/> <html:form action="/findAlias.do" scope="page"> <input type="hidden" name="<c ut value='${bindings.statetokenid}'/>" value="<c ut value='${bindings.statetoken}'/>"/> <input type="hidden" name="sid" value="<c ut value='${requestScope.sid}'/>"/> <input type="hidden" name="sk" value="<c ut value='${requestScope.sk}'/>"/> <table border="0" width="100%" cellpadding="2" cellspacing="0"> <tr> <td> <c ut value="${bindings['Alias1'].label}"/> </td> <td> <html:text property="Alias1"/> </td> </tr> <tr> <td> <c ut value="${bindings['EmailName'].label}"/> </td> <td> <html:text property="EmailName"/> </td> </tr> <tr> <td> <c ut value="${bindings['AliasType'].label}"/> </td> <td> <html:text property="AliasType"/> </td> </tr> . . . . <tr> <td> <c ut value="${bindings['LastChangeOun'].label}"/> </td> <td> <html:text property="LastChangeOun"/> </td> </tr> </table> <c ut value="${bindings.editingMode}"/> <input type="submit" name="event_Execute" value="Find" ><c ut value="${bindings.Execute.enabledString}" />/> </html:form> </body> </html>
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26138
posted Aug 19, 2008 20:29:00
0
Closing accidental duplicate
[Blog ] [JavaRanch FAQ ] [How To Ask Questions The Smart Way ] [Book Promos ]
Blogging on Certs: SCEA Part 1 , Part 2 & 3 , Core Spring 3 , OCAJP , OCPJP beta , TOGAF part 1 and part 2
subject: Wanting to Displaying Empty Data on Initial Search Page