[ http://issues.apache.org/jira/browse/COCOON-1337?page=all ]
David Crossley updated COCOON-1337: ----------------------------------- Bugzilla Id: (was: 32169) Other Info: [Patch available] Description: This patch enables CForm to only populate the widgets that has been rendered. Currently it only works if you use the src/blocks/forms/java/org/apache/cocoon/forms/generation/jx-macros.xml macro to render your widgets. It should be fully back-compatible as it introduces an additional flag in the Form.showForm function that flags whether population should be done old-style (recursively through all widgets) or with the new method. To use it in flow do: form.showForm(uri, bizData, true); Where true indicates that selective population should be used. If you instead do: form.showForm(uri, bizData) The recursive behaviour will be used. was: This patch enables CForm to only populate the widgets that has been rendered. Currently it only works if you use the src/blocks/forms/java/org/apache/cocoon/forms/generation/jx-macros.xml macro to render your widgets. It should be fully back-compatible as it introduces an additional flag in the Form.showForm function that flags whether population should be done old-style (recursively through all widgets) or with the new method. To use it in flow do: form.showForm(uri, bizData, true); Where true indicates that selective population should be used. If you instead do: form.showForm(uri, bizData) The recursive behaviour will be used. > [PATCH] Suggestion for widget population > ---------------------------------------- > > Key: COCOON-1337 > URL: http://issues.apache.org/jira/browse/COCOON-1337 > Project: Cocoon > Type: Improvement > Components: Blocks: Forms > Versions: 2.2-dev (Current SVN) > Environment: Operating System: other > Platform: Other > Reporter: Jonas Ekstedt > Assignee: Cocoon Developers Team > Priority: Minor > Attachments: widgetpopulator-samples.patch, widgetpopulator.patch, > widgetpopulator2.patch > > This patch enables CForm to only populate the widgets that has been rendered. > Currently it only works if you use the > src/blocks/forms/java/org/apache/cocoon/forms/generation/jx-macros.xml macro > to > render your widgets. > It should be fully back-compatible as it introduces an additional flag in the > Form.showForm function that flags whether population should be done old-style > (recursively through all widgets) or with the new method. > To use it in flow do: > form.showForm(uri, bizData, true); > Where true indicates that selective population should be used. If you instead > do: > form.showForm(uri, bizData) > The recursive behaviour will be used. -- 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