• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Wanting to Displaying Empty Data on Initial Search Page

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic