Re: how to use formMap.put() ?

2008-07-31 Thread Magsend
Thank tou, Barbara!!! But, what about the repeater parameters? How to pass them? Barbara Slupik-3 wrote: > > I pass parameters to my forms and form widgets like this: > > var form=new Form(myFormDefinition); > form.setAttribute("myAttribute",myAttribute); >

Re: using formMap.put()

2008-07-31 Thread Magsend
I'm trying to pass the parameters from the database to the form. So, I want to use formMap for this purpose. It's my database request: var comp_in_composition = dao.component_in_composition.get(experiment.get("id_compositions")); Then I can pass it, using formMap.putAll(comp_in_composition);

Re: pass repeater from database to the form

2008-08-01 Thread Magsend
Thanks a lot, Ralph!!! It works now!!! Ralph Rauscher-2 wrote: > > Use > > var row = repeater.addRow(); > > instead of > > var row = repeater.getRow(i); > > > Мария Григорьева wrote: >> >> I'm trying to pass the parameters from the database to the repeater in >> the form. >> >> >> >> var

Re: pass repeater from database to the form

2008-08-01 Thread Magsend
I'm using FOR to pass the params to the repeater: for (var i = 0; i < comp_in_composition.size(); i++) { var row = repeater.addRow(i); . } How to create child nodes for the "row" element? I found addWidget() procedure in API, but it doesn't work: For example: row.addWidget("t

Re: pass repeater from database to the form

2008-08-01 Thread Magsend
.getChild("amount").setValue(comp_in_composition.get(i).get("amount")); row.getChild("select").setValue(false); } Magsend wrote: > > I'm using FOR to pass the params to the repeater: > > for (var i =

Re: pass repeater from database to the form

2008-08-01 Thread Magsend
"test" - is the id of the repeater in fd:repeater But, I've got mistake: java.lang.IllegalArgumentException: A repeater cannot be filled with Repeater 'test' How to pass it to the form??? Magsend wrote: > > I've already answer my own question: > Here is

Re: pass repeater from database to the form

2008-08-01 Thread Magsend
Sorry, again... Stupid question... :) I've understood that --- row.getChild("type").setValue(comp_in_composition.get(i).get("type")); --- is the passing params to the form... So I don't need formMap.put()... :) Magsend wrote: > > But now

Re: how to pass params to the repeater's selection list

2008-08-02 Thread Magsend
I've found in Cocoon docs: "To set a default selection, just set the value of the widget containing the selection list." How to set this value? Magsend wrote: > &

Re: how to pass params to the repeater's selection list

2008-08-03 Thread Magsend
an use code similar to > form.getChild("test").getChild("type").setValue("...") before the > form.showForm(), but i think the best solution is the Binding > Framework[1]. > > Bye > Alessandro > > [1] The best solution is the Binding Framework.

Re: how to pass params from flowscript to the widget

2008-08-04 Thread Magsend
And how to execute function from the flowscript in the widget's tag? Magsend wrote: > Variable in the flowscript: var composition_id = > experiment.get("id_compositions"); And the widget: required="true"> Density base="decimal"/> var value = &g

Re: AW: how to pass params from flowscript to the widget

2008-08-05 Thread Magsend
Chris, thank you very much for support. Could you please explain, how to process JAVA-file in the sitemap? And I can't find the samples on this subject with Java. Are you using Java or JavaScript for the form processing? What's better? Thank you!!! Christofer Dutz-3 wrote: > > Hi, > > >

Re: cforms + javaflow + sitemap problem

2008-09-21 Thread Magsend
Hello! When I try to remove this line: the content is still duplicates... but without style Andre Juffer wrote: > > David Legg wrote: >> Hi Maria, >> >> I'm very rusty on XSLT I'm afraid >>> Here is the file main.xsl: >>> >>> ... >>> >> priority="-1">>> select="@*|node()"/> >>> ... >>>