Thanks Kent,
this was the right example !
Ciao
Matze
Coat schrieb:
> Hello,
>
> If your list is created dynamically, you could check out dynamic
> submission parameters here: http://rifers.org/wiki/display/RIFE/Forms#Forms-6
>
> I'm doing something similar in my project. I created a list of html
> inputs like this:
>
> <input type="text" name="item_1" id="item_1"/>
> <input type="text" name="item_2" id="item_2"/>
> <input type="text" name="item_3" id="item_3"/>
> ..etc
>
> where the number is the ID of the object.
>
> Then in my submission handler:
>
> @SubmissionHandler (
> paramRegexps = @ParamRegexp(value = "item_(\\d+)")
> )
> public void doSubmit() {
> // snip
>
> List<String> items = getParameterNames("item_.*");
>
> for (String item : items) {
> cart.updateItem(Integer.parseInt(item.replaceAll("item_",
> "")), getParameterInt(item));
> }
>
> // snip
> }
>
> In your case you could loop through all the parameters and check to
> see if their value indicates that they were checked to see if they
> needed to be deleted. Hopefully this is what you were asking for and
> the best way to do it. I'm still pretty new with RIFE.
>
> Regards,
> Kent
>
> On Aug 15, 10:33 am, Matthias Barmeier
> <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I would like to display a list of objects in a form. Every line has a
>> checkbox, which the user can select if he wants to delete the object.
>> After marking all the objects he wants to delete he submits the form.
>>
>> My question is, is it possible to have a submission that contains a list
>> of objects ? And could someone give me a hint where I find some docs or
>> examples how to achieve this.
>>
>> Thanks in advance.
>>
>> Ciao
>> Matze
>>
>
>
> >
>
>
>
--
-----------------------------------
SOURCEPARK Gesellschaft
für Softwareentwicklung mbH
Dipl.-Inform. Matthias Barmeier
Geschäftsführer
Helmholtzstraße 2-9 Gebäude M
10587 Berlin
Tel: +49 (0)30/398 068 30
Fax: +49 (0)30/398 068 39
e-mail: [EMAIL PROTECTED]
WWW: www.sourcepark.de
-----------------------------------
Sitz der Gesellschaft: Berlin
Handelsregister: Amtsgericht Berlin-Charlottenburg, HRB 80254
Geschäftsführer: Matthias Barmeier, Harald Dürr
-----------------------------------
Diese E-Mail kann vertrauliche und/oder rechtlich geschützte
Informationen enthalten. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtümlich erhalten haben, informieren
Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe
dieser E-Mail ist nicht gestattet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---