myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bjørn T Johansen <...@havleik.no>
Subject Re: Checkbox inside dataList not working?
Date Tue, 25 Apr 2006 08:00:46 GMT
It's a HTML Layout Tag Library containing components for almost all of the standard HTML tags
and
attributes based on the HTML 4.01 specification.

But no, I haven't tried without it, because then I have to rewrite my whole page using another
table tag; I
will do that if I have to...


On Tue, 25 Apr 2006 09:23:41 +0200
Volker Weber <users.myfaces@weber-oldenburg.de> wrote:

> Don't know what this <htm:...> stuff is, have you tryed without this?
> 
> 
> Regards,
>   Volker
> 
> 
> Bjørn T Johansen wrote:
> > No one knows why this is happening?
> > 
> > 
> > On Mon, 24 Apr 2006 10:13:02 +0200
> > Bjørn T Johansen <btj@havleik.no> wrote:
> > 
> > 
> >>I am using t:dataList to display a repeated "record", like this..:
> >>
> >><t:dataList id="listLeveringer" var="var" value="#{orderBean.ordre.leveringer}"
layout="simple" >
> >>   ...........
> >>  <htm:tr>
> >>    <htm:td styleClass="labelgeneral">
> >>      <h:outputLabel value="Andre merknader:" for="notes"></h:outputLabel>
> >>    </htm:td>
> >>    <htm:td colspan="3" styleClass="inputgeneral">
> >>      <h:inputTextarea id="notes" cols="100" rows="3" value="#{var.notes}">
> >>        <f:validateLength minimum="0" maximum="255"/>
> >>      </h:inputTextarea>
> >>    </htm:td>
> >>  </htm:tr>
> >>  <htm:tr>
> >>    <htm:td styleClass="labelgeneral">
> >>      <h:outputLabel value="Velg:" for="leveringer_selected"></h:outputLabel>
> >>    </htm:td>
> >>    <htm:td colspan="3" styleClass="inputgeneral">
> >>      <h:selectBooleanCheckbox id="leveringer_selected" value="#{var.selected}"/>
> >>    </htm:td>
> >>  </htm:tr>
> >></t:dataList>
> >>
> >>The problem is that when I mark one of the records as selected (doesn't matter
which one), it always sets
> >>the first record as selected and all the others as not selected.
> >>
> >>Shouldn't this work or am I doing something wrong?
> >>Or is there another and better way of doing this?
> >>
> >>
> >>
> >>Regards,
> >>
> >>BTJ
> >>
> > 
> > 

Mime
View raw message