On Fri, Oct 17, 2008 at 1:40 AM, Klemens Muthmann < [EMAIL PROTECTED]> wrote:
> Hi > > I am new to the list and to Tomahawk. I started using it because I needed > the additional capabilities of the t:checkManyCheckboxes spread layout. So > after some hours of research on the web and in the documentation I managed > to get working code and change my standard JSF checkManyCheckbox to the > Tomahawk one. It looks the following way now: > > <h:form> > <t:dataTable rowIndexVar="row" value="#{group.mappings}" var="entry"> > > <t:selectManyCheckbox id="entries" layout="spread" > value="#{group.selected}" > > <t:selectItems value="#{group.mappings}" var="mapping" > itemLabel="#{mapping.title}" itemValue="#{mapping.id}" /> > > </t:selectManyCheckbox> > <h:column> > <t:checkbox index="#{row}" for="entries"></t:checkbox> > ... > </h:column> > > </t:dataTable> > <h:commandButton value="Change" /> > </h:form> > > and a corresponding Backing bean that stores something (Property selected) > to a database if a checkbox is marked and the button "Change" is pressed. > > *public* String[] getSelected() { > *return* selected; > } > > > *public* *void* setSelected(String[] selected) { > this.selected = selected; > ... > } > > But now the setSelected is not called anymore. It worked fine with normal > Java Server Faces selectManyCheckbox, but since I use Tomahawk it is broken. > I found some fuzzy discussions on the web and on this list that this might > have something to do with converters and that no error message is display, > because one has to use <h:message> tag (which I tried but probably wrong). > However conversion should be no problem since I only use string values. The > property mapping to the values of the checkboxes looks like: > > *public* String getId() { > *return* id; > } > > > *public* *void* setId(String id) { > this.id=id; > } > > > I spend the whole evening yesterday on the problem and have no time to > spend another day for it, so has anyone experience with this issue and can > point me to a solution on how to get my setSelected method to be invoked > with the marked IDs as arguments? > Maybe this could help http://www.mail-archive.com/users@myfaces.apache.org/msg12454.html regards Leonardo Uribe > > Thank you >