ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From consolex <i...@consolex.de>
Subject Re: How to clean formfields using auto-fields-entity ?
Date Mon, 10 Nov 2008 22:25:08 GMT



A change in controller.xml did the trick. 

Problem: 

The form called an event, the request-map of the event redirected to
"success" and success was pointing to the view. Because the form was located
in that view it got filled with the parameters.

Solution:

Simply by redirecting success to the request-map of the menu where the form
is initially shown and type="request-redirect-noparam" the parameters were
ignored.

<response name="success" type="request-redirect-noparam"
value="initialrequestmap"/>


consolex wrote:
> 
> When i create the form-fields with auto-fields-entity and i do a submit
> with the code below the form-fields arent cleaned after success. Please
> how to achieve this?
> 
> <auto-fields-entity entity-name="PersonAndPostalAddress"
> default-field-type="edit" map-name=""/>
> <field name="submitButton" title="Create Person"
> widget-style="standardSubmit">
> 			<submit button-type="button"/>
> </field> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-clean-formfields-using--auto-fields-entity---tp20427609p20429359.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Mime
View raw message