RE: checkboxlist

2009-03-26 Thread Muthu Velappan
s:checkboxlist required=true key=permissions list=activePermissions value=permissions name=permissions s:param name=rowstyle value=%{'row31'} / /s:checkboxlist list=activePermissions hold the entire collection holding MapPermission Id, Perimssion Name. value=permissions holds the

Re: Checkboxlist - bind to ListObject

2007-09-05 Thread Laurie Harper
Moacir Cardoso wrote: Hello!, I´m trying to bind some checkbox values to one parameterized List. Lets say ListCar. Is it possible? in Jsp: s:checkboxlist name=myList.carId list=#{'1':'Car1','2':'Car2','3':'Car3'}/s:checkboxlist in Action: private ListCar myList; ... gets and sets. If

Re: checkboxlist formatted vertically?

2007-05-17 Thread Nuwan Chandrasoma
Hi, Is this struts 2 or 1.x? in struts 2., we can create a theme , i think this may help you, but i am not sure this is the best solution for your problem http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme Thanks, Nuwan - Original Message - From: Allen Gilliland

RE: checkboxlist formatted vertically?

2007-05-17 Thread Al Sutton
If you want to stay with checkboxlist you'll need to define your own theme with a template for checkboxes separated by br/s. You can find information on how to do it at; http://cwiki.apache.org/WW/themes-and-templates.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: checkboxlist formatted vertically?

2007-05-17 Thread Allen Gilliland
yeah, this is for struts2. that's a shame, hacking my own theme just so that my list gets formatted vertically seems overkill :( -- Allen Nuwan Chandrasoma wrote: Hi, Is this struts 2 or 1.x? in struts 2., we can create a theme , i think this may help you, but i am not sure this is the

Re: checkboxlist formatted vertically?

2007-05-17 Thread Josh Vickery
I agree! I would use checkboxes instead of a checkboxlist rather than write my own theme. I did something like that recently: ul s:iterator value=questions li s:checkbox name=assignedQuestionIdMap[%{id}]/jsp:include page=/web/includes/question.jsp/ /li /s:iterator /ul On