views:

21

answers:

0

I need to GET a large collection in a form, and POST a large selection of user ids from the collection to a controller.

Q Whats the best way to load a large collection and submit a large amount of params.

Break down:(Getting) there might quite a number to choose from so I wouldn't want to load the complete collection incase memory problems arise. Is there a way to load in batches? or scroll load? in the same display/form

Break down:(Posting) whats the best way of presenting (html form element) a large selection of elements to be selected so they can be submitted in one large map of user ids. (e.g. selectbox, multi-selectbox, checkbox)? so they are received in the controller as:

params.userIds =  ["3452345", "34857457", "34879457" .... into the hundreds]