Hubert Trzewik (Prosystel) wrote:
In short:
How to change selection list source for new rows added by repeater widget?
In details:
I'b building a form. There is a selection list in there in repeater widget.
Selection list has a XML source (its items) (in fact it's build by XSP).
But the source may change to another XML (another URI).
I know I can set selection list source by JavaScript in flow for any existing widget.
But I've got no idea how to set selection list for new rows added by repeater action.
Any ideas?
trying to figure out what you are doing I would assume that you want the various widget-instances from the same widget-definition in a repeater-row to have different selection-lists, correct?
thus on row 1 you would want to select from some set-A row 2 you would want to select from some set-B
if so you should have a look at the forms-gui sample and the use of the <union> widget in there.
for completeness: union's naming and use is subject to future refactoring (meaning things will most certainly syntactically change, this does not mean that we are going to stop supporting the feature). For a look ahead into what the future might bring you should check
http://wiki.cocoondev.org/Wiki.jsp?page=WoodyScratchpad
regards, -marc= -- Marc Portier http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
