Hi,
One of the tricks that I have used in such situations is to use parameter-name in form field tag.

<field parameter-name="partyId" name="partyId_field_name"

In this case the name of the field can be different from the parameter that will be passed, and because of this form widget will not fill the field with the old data.

Hope this helps
Rashko Rejmer

On Oct 29, 2008, at 2:50 PM, consolex wrote:


ok, this is how i always try get forward, the problem is that i dont
understand in which part of the framework (presentation or businesslogic) or
at which state of the framework flow the action has to be taken.

what variable of the servlet-context do i have to delete? Or what
XML-Element is responsible for clearing the data?


thx


BJ Freeman wrote:

Look at how a customer, Employee, person are done in the party component.


consolex sent the following on 10/29/2008 3:42 AM:
Hi,

i built some Demo Application to quickadd a Customer, within ofbiz. I
used
the FormWidget to do this.
The Formdata gets posted to an Event, the Event does the mapping and
calls
the service. But when it returns to the initial view, where data was
collected via the form, the form fields show what was entered previously.

How to achieve that the form is empty again. I tried deleting the
requestAttributes and
requestParameters but without success.

thx for helping me

have a nice day,

Michael


:confused::confused:
--
View this message in context: 
http://www.nabble.com/Howto-clean-Form-Fields-after-Form-is-submitted-tp20224461p20226382.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Reply via email to