I am facing the same problem with selectManyCheckbox. The setter setSharedResources is never called.
Any help is appreciated Michael -----Original Message----- From: Matt Stine [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 6. Juli 2006 18:54 To: [email protected] Subject: Re: How can I display radio buttons in 2 columns? (Solved and Documented Hi, all. I've been trying to solve a similar problem using Paul's wiki documentation. Basically I'm trying to display a set of dynamic checkboxes in multiple columns. Here is a code snippet from my JSP: <t:dataTable newspaperColumns="2" var="row" value="#{publicationForm.sharedResourceDataModel}" rowIndexVar="index"> <t:selectManyCheckbox id="sharedResourceCheckboxes" layout="spread" value="#{publicationForm.sharedResources}"> <f:selectItems value="#{publicationForm.sharedResourceList}"/> </t:selectManyCheckbox> <h:column> <t:checkbox for="sharedResourceCheckboxes" index="#{index}"/> </h:column> </t:dataTable> Now, here's my problem. When I arrive at this JSP, the checkboxes are initialized with the values contained in #{publicationForm.sharedResources}. However, if I modify the selections at all and submit, those changes are ignored. Does anyone have any idea what may be going on? If you need any more information, please let me know. Thanks! Matt Stine Senior Software Engineer St. Jude Children's Research Hospital Memphis, TN [EMAIL PROTECTED] Bruno Aranda wrote: > > Thanks Paul! > > Bruno > > On 6/26/06, Paul Spencer <[EMAIL PROTECTED]> wrote: >> Based on post to this thread and some trail & error, I have found a >> solution and documented it in the wiki. >> http://wiki.apache.org/myfaces/Display_Radio_Buttons_In_Columns >> >> Paul Spencer >> >> >> Paul Spencer wrote: >> > I thought about using a <t:dataTable> inside <h:selectOneRadio>, see >> > below. No error where produced and no output. >> > >> > <h:selectOneRadio id="reportName" value="selectedReport"> >> > <t:dataTable newspaperColumns="2" value="#{predefinedReports}" >> > var="report" > >> > <h:column> >> > <f:selectItem itemValue="#{report.name}" /> >> > </h:column> >> > </t:dataTable> >> > </h:selectOneRadio> >> > >> > Should this work? >> > >> > >> > Paul Spencer >> > >> > >> > Paul Spencer wrote: >> >> Volker, >> >> >> >> The examples are in panelstack.jsp and selectbox.jsp. <t:radio> does >> >> not appear to be work well with a dynamic list of selectItems, i.e. >> >> the select items are from a backing bean and they are to be displayed >> >> in 2 columns. >> >> >> >> >> >> Paul Spencer >> >> >> >> Volker Weber wrote: >> >>> Hi, >> >>> >> >>> see >> >>> http://myfaces.apache.org/tomahawk/tlddoc/t/radio.html >> >>> >> >>> there should be an example in simple.war >> >>> >> >>> regards, >> >>> >> >>> Volker >> >>> >> >>> >> >>> 2006/6/14, Paul Spencer <[EMAIL PROTECTED]>: >> >>>> Fintan, >> >>>> Visually is it is the same concept, but how do I implement it with >> with >> >>>> radio buttons? >> >>>> >> >>>> I have seen references to the layout "spread", but I have not seen >> an >> >>>> example of it's use. So I am not sure if this is the solution. >> >>>> >> >>>> BTW the Newspaper Table has been deprecated. >> >>>> >> >>>> Paul Spencer >> >>>> >> >>>> >> >>>> Conway. Fintan (IT Solutions) wrote: >> >>>> > Hi Paul, >> >>>> > >> >>>> > Would the Newspaper Table component work? >> >>>> > http://myfaces.apache.org/tomahawk/newspaperTable.html >> >>>> > >> >>>> > Regards, >> >>>> > >> >>>> > Fintan >> >>>> > >> >>>> > -----Original Message----- >> >>>> > From: Paul Spencer [mailto:[EMAIL PROTECTED] >> >>>> > Sent: 13 June 2006 17:57 >> >>>> > To: MyFaces Discussion >> >>>> > Subject: How can I display radio buttons in 2 columns? >> >>>> > >> >>>> > >> >>>> > I would like to display a long list of radio buttons in 3 columns? >> >>>> > >> >>>> > Paul Spencer >> >>>> > >> >>>> > >> >>>> > * ** *** ** * ** *** ** * ** *** ** * >> >>>> > This email and any files transmitted with it are confidential and >> >>>> > intended solely for the use of the individual or entity to whom >> they >> >>>> > are addressed. >> >>>> > Any views or opinions presented are solely those of the author, >> >>>> and do not necessarily represent those of ESB. >> >>>> > If you have received this email in error please notify the sender. >> >>>> > >> >>>> > Although ESB scans e-mail and attachments for viruses, it does not >> >>>> guarantee >> >>>> > that either are virus-free and accepts no liability for any damage >> >>>> sustained >> >>>> > as a result of viruses. >> >>>> > >> >>>> > * ** *** ** * ** *** ** * ** *** ** * >> >>>> > >> >>>> > >> >>>> >> >>>> >> >>> >> >> >> >> >> > >> > >> >> > > -- View this message in context: http://www.nabble.com/How-can-I-display-radio-buttons-in-2-columns--tf17 81389.html#a5203554 Sent from the MyFaces - Users forum at Nabble.com.

