Trudy Cool wrote:
The "proceed" transition in the OnLine store has a multiple selection list generated from selectedItems tagged as @andromda.struts.view.field.type=select If, instead, the collection were tagged as @andromda.struts.view.field.type=multibox the cartridge could generate a table, with checkboxes in one column and the data of the collection in the other columns. (end of quote) it's doesn't quite work that way; tables are only generated from page variables (= parameters entering a FrontEndView) of a type implementing or extending Collection; you are talking about an event parameter (going out of a FrontEndView) make sure you have read and understood the sections about multibox on these pages: on the latter page you'll see an image, the available column has been modeled as a multibox (it's all explained on that page) I don't know what else I can say to help you out .. Trudy Cool wrote: I'd like to fiddle around with trying to do that over the weekend. Could you help me by telling me WHERE in all that code I would need to focus my efforts? Or am I barking up the wrong tree all together? (end of quote) I will surely help you out where I can, what I would do if I were you (assuming you have read and understand the bpm4struts documentation) is simply generating a table and populating it with real data (all explained in the documentation) next I would edit the JSP page to render an additional column containing a checkbox for each row and also a button that will submit the selected checkboxes (they each have a unique value) if you have modeled an event going out of the page you might give it a parameter called selectedRows of type Collection, in doing so you can name all your checkboxes selectedRowsAsArray so the corresponding form array property will be populated (only arrays can be populated like that) with the values of the selected checkboxes: form.getSelectedRows() will return a collection containing a String for each selected checkbox finally just make sure that clicking that button you added submit to the appropriate action and you're done, you'll just need to take care of handling the selected values I recommend not using struts JSP tags in the column you added, you can do everything with plain HTML good luck -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=722#722 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
